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

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

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


From: Dominic
Subject: Re: [rdiff-backup-users] Samba and archfs / fuse
Date: Wed, 19 Nov 2008 10:38:55 +0000
User-agent: Thunderbird 2.0.0.17 (Windows/20080914)

Andrew Ferguson wrote:

On Nov 18, 2008, at 2:27 PM, Dominic wrote:

After I said that archfs is magical over Samba, I am now struggling to get it to work. :-[

The problem I believe is that fuse (upon which archfs depends) does not normally allow users, other than the user who created the mount, to access its filesystem. This can be overridden by mounting the filesystem with the "-oallow_other" mount option, a/c to the fuse FAQ (http://apps.sourceforge.net/mediawiki/fuse/index.php?title=FAQ#Why_don.27t_other_users_have_access_to_the_mounted_filesystem.3F), but when I try to specify this on the archfs command line it is rejected with 'Error: no such option; see man archfs' (which incidentally does not exist).

You're right -- archfs does not pass options on to the underlying fuse system. It really should.

Here's a quick fix for you:

In archfs.c, around line 27, change:

    args[2] = "-d";

    return fuse_main(2, args, &operations, NULL);

to:

    args[2] = "-d";
    args[3] = strdup("-oallow_other");

    return fuse_main(3, args, &operations, NULL);

If that doesn't work, change the first argument of fuse_main from 3 to 4. (I'm not sure what argc is supposed to be there ...)
Thanks Andrew, after some messing around I found that this works: change line 27-30 to:
    args[2] = strdup("-oallow_other");
    args[3] = "-d";

    return fuse_main(3, args, &operations, NULL);

I think that the first argument in 'return fuse_main' refers to the number of arguments in args, although args[2]="-d" in the previous code this is actually ignored (it is the debug mode). My change still ignores the '-d' but uses the '-oallow_other'. (I could enable '-d' I think by setting the first argument of fuse_main to 4. In fact your 2nd suggestion would have worked - running in debug mode.)

Now I have another problem! I can see the archfs filesystem through Samba (e.g. in Windows Explorer), but it wrongly shows directories as zero-length files. To be more precise, I can see the 'date' directories (e.g. 2008_11_17_18_50_42) but inside these I see directories as zero-length files, and of course I can't navigate into these sub-directories. This is not a fuse problem because sshfs works fine, it must be something in archfs. I have tried archfs with -s option (instead of -t default), but it is just the same (-l option does not seem to work at all). Any suggestions gratefully received...

Dominic

reply via email to

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