rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rdiff-backup-users] Samba and archfs / fuse


From: cwilper
Subject: [rdiff-backup-users] Samba and archfs / fuse
Date: Sun, 30 Nov 2008 02:53:29 -0500

Hi Dominic and Andrew,

I've also been setting up archfs over samba and found this post helpful.  The 
final problem is actually that the st_nlink information is reported incorrectly 
(always zero) to fuse by archfs.  This causes samba clients to get confused.  
You can fix it by modifying revisions.c, starting at line 15.

Replace this:
        if (stats->type == S_IFDIR)
            stbuf->st_mode = stats->type | 0555;
        else
            stbuf->st_mode = stats->type | 0444;
        stbuf->st_nlink = stats->nlink;

With this:
        if (stats->type == S_IFDIR) {  
                      
                   
            stbuf->st_mode = stats->type | 0555;
            stbuf->st_nlink = 2;
        } else {
            stbuf->st_mode = stats->type | 0444;
            stbuf->st_nlink = 1;
        }


Admittedly, this is a hack because I don't understand the real cause of the 
problem in the code.  But as long as directories are reported to have at least 
two links and files one, my samba client is happy.

Cheers,
Chris

+----------------------------------------------------------------------
|This was sent by address@hidden via Backup Central.
|Forward SPAM to address@hidden
+----------------------------------------------------------------------






reply via email to

[Prev in Thread] Current Thread [Next in Thread]