Daniel Novotny 0c6a7d
diff -up amanda-2.6.1p2/application-src/amgtar_perl.pl.xattrs amanda-2.6.1p2/application-src/amgtar_perl.pl
Daniel Novotny 0c6a7d
--- amanda-2.6.1p2/application-src/amgtar_perl.pl.xattrs	2010-01-20 16:25:16.000000000 +0100
Daniel Novotny 0c6a7d
+++ amanda-2.6.1p2/application-src/amgtar_perl.pl	2010-01-20 16:26:54.000000000 +0100
Daniel Novotny 0c6a7d
@@ -114,7 +114,7 @@ sub command_estimate {
Daniel Novotny 0c6a7d
          }
Daniel Novotny 0c6a7d
       }
Daniel Novotny 0c6a7d
       my($size) = -1;
Daniel Novotny 0c6a7d
-      my(@cmd) = ($self->{runtar}, $self->{'config'}, $self->{'gnutar'}, "--create", "--directory", $self->{'device'}, "--listed-incremental", "$self->{gnulist}/${listdir}_${level}.new", "--sparse", "--one-file-system", "--ignore-failed-read", "--totals", "--file", "/dev/null", ".");
Daniel Novotny 0c6a7d
+      my(@cmd) = ($self->{runtar}, $self->{'config'}, $self->{'gnutar'}, "--create", "--directory", $self->{'device'}, "--listed-incremental", "$self->{gnulist}/${listdir}_${level}.new", "--sparse", "--xattrs", "--one-file-system", "--ignore-failed-read", "--totals", "--file", "/dev/null", ".");
Daniel Novotny 0c6a7d
       debug("cmd:" . join(" ", @cmd));
Daniel Novotny 0c6a7d
       my $wtrfh;
Daniel Novotny 0c6a7d
       my $estimate_fd = Symbol::gensym;
Daniel Novotny 0c6a7d
@@ -180,7 +180,7 @@ sub command_backup {
Daniel Novotny 0c6a7d
    if(defined($self->{index})) {
Daniel Novotny 0c6a7d
       $verbose = "--verbose";
Daniel Novotny 0c6a7d
    }
Daniel Novotny 0c6a7d
-   my(@cmd) = ($self->{runtar}, $self->{config}, $self->{gnutar}, "--create", $verbose, "--directory", $self->{device}, "--listed-incremental", "$self->{gnulist}/${listdir}_${level}.new", "--sparse", "--one-file-system", "--ignore-failed-read", "--totals", "--file", "-", ".");
Daniel Novotny 0c6a7d
+   my(@cmd) = ($self->{runtar}, $self->{config}, $self->{gnutar}, "--create", $verbose, "--directory", $self->{device}, "--listed-incremental", "$self->{gnulist}/${listdir}_${level}.new", "--sparse", "--xattrs", "--one-file-system", "--ignore-failed-read", "--totals", "--file", "-", ".");
Daniel Novotny 0c6a7d
 
Daniel Novotny 0c6a7d
    debug("cmd:" . join(" ", @cmd));
Daniel Novotny 0c6a7d
 
Daniel Novotny 0c6a7d
diff -up amanda-2.6.1p2/client-src/sendbackup-gnutar.c.xattrs amanda-2.6.1p2/client-src/sendbackup-gnutar.c
Daniel Novotny 0c6a7d
--- amanda-2.6.1p2/client-src/sendbackup-gnutar.c.xattrs	2008-12-01 22:17:16.000000000 +0100
Daniel Novotny 0c6a7d
+++ amanda-2.6.1p2/client-src/sendbackup-gnutar.c	2010-01-20 16:23:17.000000000 +0100
Daniel Novotny 0c6a7d
@@ -520,7 +520,7 @@ start_backup(
Daniel Novotny 0c6a7d
 	if (nb_exclude > 0) file_exclude = build_exclude(dle, 0);
Daniel Novotny 0c6a7d
 	if (nb_include > 0) file_include = build_include(dle, 0);
Daniel Novotny 0c6a7d
 
Daniel Novotny 0c6a7d
-	my_argv = alloc(SIZEOF(char *) * (22 + (nb_exclude*2)+(nb_include*2)));
Daniel Novotny 0c6a7d
+	my_argv = alloc(SIZEOF(char *) * (23 + (nb_exclude*2)+(nb_include*2)));
Daniel Novotny 0c6a7d
 
Daniel Novotny 0c6a7d
 	cmd = vstralloc(amlibexecdir, "/", "runtar", versionsuffix(), NULL);
Daniel Novotny 0c6a7d
 	info_tapeheader(dle);
Daniel Novotny 0c6a7d
@@ -561,6 +561,7 @@ start_backup(
Daniel Novotny 0c6a7d
 	my_argv[i++] = "--atime-preserve";
Daniel Novotny 0c6a7d
 #endif
Daniel Novotny 0c6a7d
 	my_argv[i++] = "--sparse";
Daniel Novotny 0c6a7d
+	my_argv[i++] = "--xattrs";
Daniel Novotny 0c6a7d
 	my_argv[i++] = "--ignore-failed-read";
Daniel Novotny 0c6a7d
 	my_argv[i++] = "--totals";
Daniel Novotny 0c6a7d
 
Daniel Novotny 0c6a7d
diff -up amanda-2.6.1p2/client-src/sendsize.c.xattrs amanda-2.6.1p2/client-src/sendsize.c
Daniel Novotny 0c6a7d
--- amanda-2.6.1p2/client-src/sendsize.c.xattrs	2009-11-05 20:57:09.000000000 +0100
Daniel Novotny 0c6a7d
+++ amanda-2.6.1p2/client-src/sendsize.c	2010-01-20 16:23:17.000000000 +0100
Daniel Novotny 0c6a7d
@@ -1931,7 +1931,7 @@ getsize_gnutar(
Daniel Novotny 0c6a7d
     if(nb_exclude > 0) file_exclude = build_exclude(dle, 0);
Daniel Novotny 0c6a7d
     if(nb_include > 0) file_include = build_include(dle, 0);
Daniel Novotny 0c6a7d
 
Daniel Novotny 0c6a7d
-    my_argv = alloc(SIZEOF(char *) * 22);
Daniel Novotny 0c6a7d
+    my_argv = alloc(SIZEOF(char *) * 23);
Daniel Novotny 0c6a7d
     i = 0;
Daniel Novotny 0c6a7d
 
Daniel Novotny 0c6a7d
     gnutar_list_dir = getconf_str(CNF_GNUTAR_LIST_DIR);
Daniel Novotny 0c6a7d
@@ -2070,6 +2070,7 @@ getsize_gnutar(
Daniel Novotny 0c6a7d
     my_argv[i++] = "--atime-preserve";
Daniel Novotny 0c6a7d
 #endif
Daniel Novotny 0c6a7d
     my_argv[i++] = "--sparse";
Daniel Novotny 0c6a7d
+    my_argv[i++] = "--xattrs";
Daniel Novotny 0c6a7d
     my_argv[i++] = "--ignore-failed-read";
Daniel Novotny 0c6a7d
     my_argv[i++] = "--totals";
Daniel Novotny 0c6a7d