[Samba] No Reading files possible from Samba over Fuse mounts

Samuel Gallard samuel.gallard at ve-hotech.com
Thu May 7 13:38:58 GMT 2009


Hi there,

Currently, I am running some tests with Fuse. The aim is to mount a directory
with fuse in a server and access it over samba. 

When I use the direct_io option, this is what I obtain :

- a copy is working fine
- I can't read anything. I obtain an errno 2 (No such file or directory) when
running fuse with -d debug. 

When I don't use this option to mount a directory with Fuse, Samba is working
fine either in reading and writing.

I am currently using fuse version 2.8.0 pre2 in Ubuntu 8.04 with a normal samba
configuration. 

I tried to strace /usr/sbin/smbd -D process and I obtained the following :

select(24, [19 20 21 22 23], NULL, NULL, NULL) = 1 (in [21])
time(NULL)                              = 1241601116
accept(21, {sa_family=AF_INET, sin_port=htons(49312),
sin_addr=inet_addr("192.168.1.84")}, [16]) = 5
getpeername(5, {sa_family=AF_INET, sin_port=htons(49312),
sin_addr=inet_addr("192.168.1.84")}, [16]) = 0
fcntl64(5, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(5, F_SETFL, O_RDWR)             = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD,
child_tidptr=0xb7afd718) = 11643
close(5)                                = 0
select(24, [19 20 21 22 23], NULL, NULL, NULL) = ? ERESTARTNOHAND 
(To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
write(24, "\21", 1)                     = 1
sigreturn()                             = ? (mask now [FPE USR2 PIPE])
waitpid(-1, NULL, WNOHANG)              = 11643
waitpid(-1, NULL, WNOHANG)              = 0

I have no clue if it is related.

Have someone ever experimented the same? Do someone know any workaround?

Anybody can help?

Thanks you in advance.

Samuel




More information about the samba mailing list