On Wednesday, August 27, 2008 10:03 PM +0200 Stephen Day <[EMAIL PROTECTED]> wrote:
> It's failing in getattr for the share. If the backup was a from a windows > machine most likely this is a bug I just fixed. I don't have windows > machines to test this with. I think the issue is actually in listing the shares. (I just realized I could back up more than one "share" per host, and previously thought one needed multiple host entries to back up more than one mount point per host.) In my test case, my share is "D" (rsyncd is sharing the D: partition under that name). In my_getdir you have: } elsif ( @path == 2 ) { # List shares my $host = $path[0]; my $archive = $path[1]; is_host_real($host) || return -ENOENT(); my $archiveref = is_archive_real($host, $archive) || return -ENOENT(); my @archives = ( $archiveref ); my @shares = list_archive_shares($host, [EMAIL PROTECTED], $archive); $shares[0] = 'unix' if ( $shares[0] == '/' ); return ( '.', '..', @shares, 0 ); } else { # List backup data I suspect list_archive_shares is failing to return anything. Here's the code for that: sub list_archive_shares { # Lists shares for a given host, a reference to a list of archive references, and an archive number. # It is assumed both the host and archive exist. my ( $host, $archives, $archive ) = @_; my $view = BackupPC::View->new($bpc, $host, $archives ); return $view->shareList($archive); } ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ BackupPC-devel mailing list BackupPC-devel@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/