Hi there, 

I have a problem when mounting a CIFS share on Linux (Ubuntu 11.04, kernel 
2.6.38). After mounting the share, a stat or ls on files in the mount show them 
as having 0 hard links. Eg.:

# ls -l capsule-1/test
total 8
-rwxr-xr-x 0 root root 4 2012-07-10 10:35 bar
-rwxr-xr-x 0 root root 4 2012-07-10 10:34 foo



# stat capsule-1/test/foo
File: `capsule-1/test/foo'
Size: 4 Blocks: 8 IO Block: 16384 regular file
Device: 14h/20d Inode: 184726543622203 Links: 0
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-07-10 10:34:57.055600000 +0100
Modify: 2012-07-10 10:34:57.055600000 +0100
Change: 2012-07-10 10:34:57.055600000 +0100



Is this normal behaviour? And if so, under what circumstances might this happen?

I've tried mounting with the noserverino option (and various other options) but 
nothing seems to make a difference. The CIFS server is an Apple Time Capsule 
(proprietary hardware, though, I think it runs NetBSD).

I've had a look through the CIFS VFS source in the kernel but I'm afraid it's a 
bit over my head.

In case it helps, I've attached the kernel log after doing a `echo 7 > 
/proc/fs/cifs/cifsFYI`.

Thanks in advance.

Dan.

Attachment: kern.log.txt
Description: Binary data

Reply via email to