Samba server and fileid

FTP Server, File Server, DDNS, SAMBA, AFP, NFS
Post Reply
ipxip
New here
Posts: 2
Joined: Fri Apr 15, 2022 11:52 pm

Samba server and fileid

Post by ipxip »

We have Qnap TS-231+
Version 5.0.0.1986

For some files the server returns the same file Id as for the folder.
Here's the result of listing a folder from Wireshark. The folder itslef ("." element) and the file ("settings.list") element have the same FileId
(see attached images)
qnap_list_1.png
qnap_list_2.png
This causes issues when Windows client tries to get file information: it returns File not found error until cache expires (~5 seconds)

below are 2 consecutive commands. The second one fails:

Code: Select all

C:\Users\ipx>xcopy /y "\\qnaparm\Public\20211214131220\settings.list" .
\\qnaparm\Public\20211214131220\settings.list
1 File(s) copied

C:\Users\ipx>xcopy /y "\\qnaparm\Public\20211214131220\settings.list" .
File not found - settings.list
0 File(s) copied
If I wait for 5 seconds the command works again

I tried to add option fileid to /etc/smb.conf as described on samba man pages:

Code: Select all

vfs objects = fileid catia fruit qnap_macea streams_depot
fileid:algorithm = fsid
but when I restart smb service the option vfs objects is reset back to

Code: Select all

vfs objects =  catia fruit qnap_macea streams_depot
How to control samba fileId assignment on the QNAP server?
You do not have the required permissions to view the files attached to this post.
PeterT1959
Know my way around
Posts: 201
Joined: Mon Nov 19, 2012 11:16 am

Re: Samba server and fileid

Post by PeterT1959 »

Try searching this forum for smb.conf; you'll find examples of the required steps to make permanent changes to smb.conf

Sent from my Pixel 4a using Tapatalk

ipxip
New here
Posts: 2
Joined: Fri Apr 15, 2022 11:52 pm

Re: Samba server and fileid

Post by ipxip »

Thanks! I was able to "save" the smb.conf by modifying the samba startup script in /etc/init.d

However this didn't fix the problem. The fileid is still not using inode number. Not sure though if this is a problem of samba server itself or samba server on QNAP specifically.
Post Reply

Return to “File Sharing”