Package: backuppc
Version: 3.1.0-8
Severity: minor
Tags: patch


i have a backuppc setup, using reiserfs base volume for backups.

the backups are running fine, but the cpool and rdd graphs arent being updated.

after some time, i found this post:

http://www.adsm.org/lists/html/BackupPC-users/2008-04/msg00101.html

This post is about xfs, but it also fixes my problem. Probably this may also 
affect other file systems.

AFAIK, this is fixed upstream in the next version, dont know if its exactly the
same patch.


here is the patch:

--- lib/BackupPC/Lib.pm 2009-11-17 14:26:24.000000000 +0000
+++ lib/BackupPC/Lib.pm.new     2009-11-17 14:31:47.000000000 +0000
@@ -485,10 +485,18 @@
 
     from_to($path, "utf8", $need->{charsetLegacy})
                         if ( $need->{charsetLegacy} ne "" );
-    return if ( !opendir(my $fh, $path) );
+#    return if ( !opendir(my $fh, $path) );
+    my ($fh);
+    if ( !opendir($fh, $path) ) {
+       print "log ERROR: opendir ($path) failed\n";
+       return;
+    }
+
     if ( $IODirentOk ) {
         @entries = sort({ $a->{inode} <=> $b->{inode} } readdirent($fh));
-        map { $_->{type} = 0 + $_->{type} } @entries;   # make type numeric
+#        map { $_->{type} = 0 + $_->{type} } @entries;   # make type numeric
+        map { $_->{type} = 0 + $_->{type}; $_->{type} = undef if ($_->{type} 
eq BPC_DT_UNKNOWN); } @entries;   # make type numeric, unset unknown types
+
     } else {
         @entries = map { { name => $_} } readdir($fh);
     }
@@ -553,9 +561,12 @@
     return if ( !chdir($dir) );
     my $entries = $bpc->dirRead(".", {inode => 1, type => 1});
     #print Dumper($entries);
+    #print ("log got ",scalar(@$entries)," entries for $dir\n");
     foreach my $f ( @$entries ) {
         next if ( $f->{name} eq ".." || $f->{name} eq "." && $dontDoCwd );
         $param->{wanted}($f->{name}, "$dir/$f->{name}");
+        #if ( $f->{type} != BPC_DT_DIR ) { print ("log skipping non-directory 
", $f->{name}, " type: ", $f->{type}, "\n"); }
+
         next if ( $f->{type} != BPC_DT_DIR || $f->{name} eq "." );
         chdir($f->{name});
         $bpc->find($param, "$dir/$f->{name}", 1);



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=pt_PT.UTF-8, LC_CTYPE=pt_PT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages backuppc depends on:
ii  adduser                 3.111            add and remove users and groups
ii  apache [httpd]          1.3.34-4.1+etch1 versatile, high-performance HTTP s
ii  bzip2                   1.0.5-3          high-quality block-sorting file co
ii  debconf [debconf-2.0]   1.5.28           Debian configuration management sy
ii  dpkg                    1.15.4.1         Debian package management system
ii  iputils-ping            3:20071127-2     Tools to test the reachability of 
ii  libarchive-zip-perl     1.30-1           Perl module for manipulation of ZI
ii  libcompress-zlib-perl   2.021-1          Transitional dummy package for Com
ii  perl [libdigest-md5-per 5.10.1-5         Larry Wall's Practical Extraction 
ii  perl-suid               5.10.1-5         Runs setuid Perl scripts
ii  postfix [mail-transport 2.6.5-3          High-performance mail transport ag
ii  samba-common            2:3.4.2-1        common files used by both the Samb
ii  smbclient               2:3.4.2-1        command-line SMB/CIFS clients for 
ii  tar                     1.22-2           GNU version of the tar archiving u
ii  ucf                     3.0024           Update Configuration File: preserv

Versions of packages backuppc recommends:
ii  libfile-rsyncp-perl          0.68-1.1+b1 A perl based implementation of an 
ii  libio-dirent-perl            0.04-2+b1   Perl module for accessing dirent s
ii  openssh-client [ssh-client]  1:5.1p1-8   secure shell client, an rlogin/rsh
ii  rrdtool                      1.3.8-1     Time-series data storage and displ
ii  rsync                        3.0.6-1     fast remote file copy program (lik

Versions of packages backuppc suggests:
ii  lynx-cur [www-browser]      2.8.8dev.1-1 Text-mode WWW Browser with NLS sup
ii  par2                        0.4-11       Parity Archive Volume Set, for che
ii  w3m [www-browser]           0.5.2-2.1    WWW browsable pager with excellent

-- debconf information:
  backuppc/tmppass: (password omitted)
  backuppc/restart-webserver: true
* backuppc/configuration-note:
* backuppc/reconfigure-webserver: apache

-- debsums errors found:
debsums: changed file /usr/share/backuppc/lib/BackupPC/Lib.pm (from backuppc 
package)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to