Bug 9635 - C : missing directories
C : missing directories
Status: NEW
Product: CifsVFS
Classification: Unclassified
Component: kernel fs
2.6
x64 Linux
: P5 normal
: ---
Assigned To: Steve French
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-06 09:05 UTC by phil_nr
Modified: 2013-02-06 09:17 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description phil_nr 2013-02-06 09:05:51 UTC
hello,
(sorry google translation)

I mount shares with the following command:

mount -t cifs //${HOST}/${DIR} /run/media/${USER}/${HOST}/${DIR} -o credentials=/etc/smbpasswd

I use the following code example to test reading the contents of the mount point.
http://www.kernel.org/doc/man-pages/online/pages/man2/getdents.2.html
(gcc version 4.7.2 (GCC) Modèle de thread: posix)

But the result shows that lack of information, it seems that between each call syscal_getdents there is a problem.

if I reduce the size "BUFFER" there is a larger number of iteration shows that each iteration we lose information.

If I mounted shares with gvfs
gvfs-mount smb :/ / $ {HOST} / $ {DIR}
the result is correct.

My question: is it the problem with cifs?

---------------------------------------------------------------------------------
client:
OS: Archlinux 32 bit

uname -a
Linux asus 3.7.5-1-ARCH #1 SMP PREEMPT Mon Jan 28 10:38:12 CET 2013 i686 GNU/Linux

cat DebugData 
Display Internal CIFS Data Structures for Debugging
---------------------------------------------------
CIFS Version 2.0
Features: dfs fscache lanman posix spnego xattr acl
Active VFS Requests: 0
Servers:
1) Name: 192.168.1.5  Domain: MAISON Uses: 6 OS: Unix
	NOS: Samba 3.6.6	Capability: 0x80f3fd
	SMB session status: 1	TCP status: 1
	Local Users To Server: 1 SecMode: 0x3 Req On Wire: 0
	Shares:
	1) \\ds212\test2 Mounts: 1 Type: NTFS DevInfo: 0x20 Attributes: 0x50027
PathComponentMax: 255 Status: 0x1 type: DISK 

	2) \\ds212\test1 Mounts: 1 Type: NTFS DevInfo: 0x20 Attributes: 0x50027
PathComponentMax: 255 Status: 0x1 type: DISK 
...


Server :
NAS Synology DS212+

uname -a
Linux ds212 2.6.32.12 #2668 Tue Dec 11 12:36:30 CST 2012 armv5tel GNU/Linux synology_88f6282_212+

Samba 3.6.6