fruit_rename() prepend ._ again if fruit:ressource=file

Jones Syue jonessyue at qnap.com
Thu Jun 15 10:03:18 UTC 2017


Hello list,

The win8.1 create a text file "newfile.txt" on the the linux box,
then rename it to "._newfile.txt" and get an error alert,
because finally it is renamed to "._._newfile.txt",
not as win8.1 expected "._newfile.txt".

Through the trace log found that
1. 1st rename() is done by vfswrap_rename(): newfile.txt -> ._newfile.txt
2. 2nd rename() is done by fruit_rename(): ._newfile.txt -> ._._newfile.txt

Here are 2 workarounds and each one could help this symptom,
a) remove fruit from vfs objects.
b) add fruit:ressource = xattr

But i might still need to apply vfs_fruit and save resource fork into file,
could we ignore fruit_rename() if vfswrap_rename() is done,
or any suggestion is appreciated,
thank you.

Client windows 8.1
Linux box with samba-4.4.14
vfs objects =  shadow_copy2 catia fruit streams_depot

--
Regards,
Jones Syue | 薛懷宗
QNAP Systems, Inc.


More information about the samba-technical mailing list