Bug 9635 - C : missing directories
Summary: C : missing directories
Status: RESOLVED DUPLICATE of bug 13107
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: kernel fs (show other bugs)
Version: 2.6
Hardware: x64 Linux
: P5 normal
Target Milestone: ---
Assignee: Steve French
QA Contact: cifs QA contact
Depends on:
Reported: 2013-02-06 09:05 UTC by phil_nr
Modified: 2020-07-23 12:01 UTC (History)
2 users (show)

See Also:


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
(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.
(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?

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
1) Name:  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
	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 #2668 Tue Dec 11 12:36:30 CST 2012 armv5tel GNU/Linux synology_88f6282_212+

Samba 3.6.6
Comment 1 Aurélien Aptel 2020-07-23 12:01:41 UTC

*** This bug has been marked as a duplicate of bug 13107 ***