Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot view archfs through samba #11

Open
GoogleCodeExporter opened this issue Jul 5, 2015 · 5 comments
Open

Cannot view archfs through samba #11

GoogleCodeExporter opened this issue Jul 5, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Same problem here. Ubuntu 12.04 . Any advice?

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

@GoogleCodeExporter
Copy link
Author

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:

@k3dar
Copy link

k3dar commented Oct 14, 2017

This issue was moved to k3dar#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants