BackupPC-users

Re: [BackupPC-users] Pool is 0.00GB comprising 0 files and 0 directories....

2009-05-27 05:39:33
Subject: Re: [BackupPC-users] Pool is 0.00GB comprising 0 files and 0 directories....
From: Bernhard Ott <bernhard.ott AT gmx DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 27 May 2009 11:35:28 +0200
Ralf Gross wrote:
> Hi,
> 
> I use BackupPC since many years without hassle. But something seems to
> be broken now.
> 
> BackupPC 3.1 (source)
> Debian Etch
> xfs fs
> 

Hi Ralf,
look for the thread "no cpool info shown on web interface" (2008-04)in 
the archives, Tino Schwarze found a solution for a xfs-related issue:

> I found a fix for lib/BackupPC/Lib.pm (the line with "map {...}" is
> the relevant one):
> 
> --- lib/BackupPC/Lib.pm 2007-11-26 04:00:07.000000000 +0100
> +++ lib/BackupPC/Lib.pm       2008-04-13 12:52:03.938619979 +0200
> @@ -485,10 +485,15 @@
>  
>      from_to($path, "utf8", $need->{charsetLegacy})
>                          if ( $need->{charsetLegacy} ne "" );
> -    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}; $_->{type} = undef if ($_->{type} 
> eq BPC_DT_UNKNOWN); } @entries;   # make type numeric, unset unknown types
>      } else {
>          @entries = map { { name => $_} } readdir($fh);
>      }
> @@ -553,9 +559,11 @@
>      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);


HTH,
Bernhard

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/