tnt / rdiff-backup-fs

Automatically exported from code.google.com/p/rdiff-backup-fs
GNU General Public License v3.0
0 stars 0 forks source link

Cannot view archfs through samba #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a samba share that contains the mounted archfs
2. mount the previous samba share
3. cd to the mounted share

What is the expected output? What do you see instead?
The files/folders inside the share but I see nothing (only . and .. entries)

What version of the product are you using? On what operating system?
Linux Ubuntu 10.04.3 LTS 2.6.32-35-generic
smbd --version: Version 3.4.7
archfs -v: version 0.5.3

source folder shows 0.5.4 version and is patched with these:
archfs.c
    args[0] = argv[0];
    args[1] = mount;
    args[2] = strdup("-oallow_other");

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

revisions.c
    if (stats->type == S_IFDIR){
        stbuf->st_mode = stats->type | 0755;
        stbuf->st_nlink = 2;
    }
    else{
        stbuf->st_mode = stats->type | 0444;
        stbuf->st_nlink = 1;
    }

Please provide any additional information below.

/var/log/samba/log.xxx
   [2011/11/16 17:48:51,  1] smbd/vfs.c:932(check_reduced_name)
    reduce_name: couldn't get realpath for archfs/*
   [2011/11/16 17:48:51,  1] smbd/vfs.c:932(check_reduced_name)
    reduce_name: couldn't get realpath for archfs/*

Original issue reported on code.google.com by nsilvest...@gmail.com on 16 Nov 2011 at 4:05

GoogleCodeExporter commented 8 years ago
This is still an issue using rdiff-backup-fs 1.0.0.

Using "--debug 4" with rdiff-backup-fs the output is the same when using 
samba/cifs or sshfs (where it works).

I have filed this bug in Launchpad for Ubuntu at: 
https://bugs.launchpad.net/ubuntu/+source/rdiff-backup-fs/+bug/1011315

Original comment by dhahler@gmail.com on 21 Jun 2012 at 10:33

GoogleCodeExporter commented 8 years ago
That's the output with debug 4:

http://pastebin.com/raw.php?i=VAgZRGdW

these lines seems rellevant to me:

unique: 3, opcode: ACCESS (34), nodeid: 1, insize: 48
   unique: 3, error: -38 (Function not implemented), outsize: 16
unique: 4, opcode: LOOKUP (1), nodeid: 1, insize: 42
LOOKUP /*
getattr /*
[operations.c, 18, revs_getattr] Attributes for path /*;
[operations.c, 20, revs_getattr] Failed to retrieve stats;
   unique: 4, error: -1 (Operation not permitted), outsize: 16

Original comment by tictac...@gmail.com on 2 Jul 2012 at 1:13

GoogleCodeExporter commented 8 years ago
Same problem here. Ubuntu 12.04 . Any advice?

Original comment by persua...@gmail.com on 25 Nov 2014 at 10:00

GoogleCodeExporter commented 8 years ago
Here are three patches that work for me to solve that issue.

Please note that I am *not* a C-developer and know only partially what I did.
But hey, it works :-)

I appreciate any comments and / or improvements,

Original comment by ckowar...@googlemail.com on 25 Apr 2015 at 7:33

Attachments: