[Samba] Missing Files/Missing Folders from an NFS Share
Rowland Penny
rpenny at samba.org
Wed Feb 15 13:14:47 UTC 2023
On 15/02/2023 13:06, Conor Armstrong via samba wrote:
> Folks
>
> I'm having trouble with a samba share of a folder. When the number of
> entries in the folder is large, then large numbers of entries are missing
> when viewed from a Windows 10 client. For example a folder with 5000 sub
> folders, only about 550 show up.
>
> If I share an identical folder, which is backed on local block storage on
> the server all the folders appear as expected on the windows client.
>
> If I access the share locally on the server using smbclient, then I can see
> all the folders as expected.
>
> It is not a permissions issue - there is full read/write for owner, group &
> world on all folders, parent folder etc. Also, folder names are not long -
> just a 4 digit number.
>
> The server is Unbuntu 22.04 and the Samba version is 4.15.13.
>
> I have run the server at Debug Level 10 and captured the logs of the folder
> mounted via an NFS share and then compare it to the same folder mounted
> from a local block storage device, I can see that the error seems to be
> arising within the smbd_marshall_dir_entry function in trans2.c as follows:
>
> [2023/02/15 00:03:11.268209, 9, pid=2573823, efective(33, 33), real(33,
> 0)] ../../source3/smbd/trans2.c:2426(smbd_marshall_dir_entry)
>
> smbd_marshall_dir_entry: out of space (wanted 112, had 8)
Is there any way you can try a later version of Samba ? I ask this
because trans2.c has been replaced by smb1_trans2.c and smb2_trans2.c in
later versions (the portion of code you are referring to is in
smb2_trans2.c now).
I would also like to point out that sharing an NFS share with Samba, has
never been a good idea.
Rowland
More information about the samba
mailing list