[Samba] Migrate a share from Mac-OSX to NAS ASUSTOR samba 4.4
Marc-Henri Pamiseux
marc-henri.pamiseux at libricks.org
Wed Jul 8 13:24:25 UTC 2020
Hello,
This migration generates several side effects.
I modified the "log level" directive as follows:
log level = 3 smb: 10 vfs: 10 acls: 10 locking: 10
I asked a user to open a document.
He used the document named Unlink_200710_AVA_025_01.
The latter does not have a file extension.
This is an Indesign file:
# file /volume1/Gaia/Production/DOCUMENTS/ Unlink_200710_AVA_025_01
/volume1/Gaia/Production/DOCUMENTS/Unlink_200710_AVA_025_01: Adobe
InDesign Document
InDesign has a special feature regarding file locking. When the
application opens a file, it creates a lock in the form of a file in the
same folder but with the extension .idlk: ~unlink_200710_ava_~ccjye8.idlk
When you quit the InDesign application and close the file, the
application deletes this file with the .idlk extension by itself.
It turns out that since the migration, I notice that the .idlk files are
no longer deleted.
-> Here is an extract of the traces concerning this process:
------------------------------------------------------
[2020/07/08 13:24:40.516349, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs]
../source3/smbd/vfs.c:1316(check_reduced_name) check_reduced_name:
check_reduced_name [Production/DOCUMENTS/Unlink_200710_AVA_025_01]
[/volume1/Gaia]
[2020/07/08 13:24:40.516414, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs]
../source3/smbd/vfs.c:1376(check_reduced_name) check_reduced_name
realpath [Production/DOCUMENTS/Unlink_200710_AVA_025_01] ->
[/volume1/Gaia/Production/DOCUMENTS/Unlink_200710_AVA_025_01]
[2020/07/08 13:24:40.516414, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs]
../source3/smbd/vfs.c:1376(check_reduced_name) check_reduced_name
realpath [Production/DOCUMENTS/Unlink_200710_AVA_025_01] ->
[/volume1/Gaia/Production/DOCUMENTS/Unlink_200710_AVA_025_01]
[2020/07/08 13:24:40.516444, 5, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs] ../source3/smbd/vfs.c:1463(check_reduced_name)
check_reduced_name: Production/DOCUMENTS/Unlink_200710_AVA_025_01
reduced to /volume1/Gaia/Production/DOCUMENTS/Unlink_200710_AVA_025_01
[2020/07/08 13:24:40.516811, 3, pid=4486, effective(10007, 10002),
real(10007, 0)] ../source3/smbd/dir.c:1188(smbd_dirptr_get_entry)
smbd_dirptr_get_entry mask=[Unlink_200710_AVA_025_01] found
Production/DOCUMENTS/Unlink_200710_AVA_025_01
fname=Unlink_200710_AVA_025_01 (Unlink_200710_AVA_025_01)
[2020/07/08 13:24:40.516864, 2, pid=4486, effective(10007, 10002),
real(10007, 0)] ../source3/modules/vfs_fruit.c:895(ad_header_read_rsrc)
open AppleDouble: Production/DOCUMENTS/._Unlink_200710_AVA_025_01, No
such file or directory
[2020/07/08 13:24:40.517046, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=locking]
../source3/locking/share_mode_lock.c:275(share_mode_memcache_fe
fetched entry for file Production/DOCUMENTS seq 0x10792665304706506964
key 15:791901:0
[2020/07/08 13:24:40.517093, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=locking]
../source3/locking/locking.c:1225(find_delete_on_close_token)
find_delete_on_close_token: name_hash = 0x9879a1fe
[2020/07/08 13:24:40.517124, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=locking]
../source3/locking/share_mode_lock.c:147(share_mode_memcache_de
deleting entry for file Production/DOCUMENTS seq
0x10792665304706506964 key 15:791901:0
[2020/07/08 13:24:40.517156, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=locking]
../source3/locking/share_mode_lock.c:370(unparse_share_modes)
No used share mode found
[2020/07/08 13:24:40.515674, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs] ../source3/smbd/vfs.c:1316(check_reduced_name)
check_reduced_name: check_reduced_name [Production/DOCUMENTS]
[/volume1/Gaia]
[2020/07/08 13:24:40.515750, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs] ../source3/smbd/vfs.c:1376(check_reduced_name)
check_reduced_name realpath [Production/DOCUMENTS] ->
[/volume1/Gaia/Production/DOCUMENTS]
[2020/07/08 13:24:40.515780, 5, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs] ../source3/smbd/vfs.c:1463(check_reduced_name)
check_reduced_name: Production/DOCUMENTS reduced to
/volume1/Gaia/Production/DOCUMENTS
[2020/07/08 13:24:40.516012, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs]
../source3/modules/vfs_streams_xattr.c:406(streams_xattr_open)
streams_xattr_open called for Production/DOCUMENTS with flags 0x10000
[2020/07/08 13:24:40.516062, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs]
../source3/modules/vfs_streams_xattr.c:238(streams_xattr_fstat)
streams_xattr_fstat called for 25
[2020/07/08 13:24:40.516110, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=locking]
../source3/locking/share_mode_lock.c:147(share_mode_memcache_delete)
deleting entry for file Production/DOCUMENTS seq
0x10792665304706506963 key 15:791901:0
[2020/07/08 13:24:40.516172, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=locking]
../source3/locking/share_mode_lock.c:161(share_mode_memcache_store)
stored entry for file Production/DOCUMENTS seq 0x10792665304706506964
key 15:791901:0
[2020/07/08 13:24:40.516349, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs] ../source3/smbd/vfs.c:1316(check_reduced_name)
check_reduced_name: check_reduced_name
[Production/DOCUMENTS/Unlink_200710_AVA_025_01] [/volume1/Gaia]
[2020/07/08 13:24:40.516414, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs] ../source3/smbd/vfs.c:1376(check_reduced_name)
check_reduced_name realpath
[Production/DOCUMENTS/Unlink_200710_AVA_025_01] ->
[/volume1/Gaia/Production/DOCUMENTS/Unlink_200710_AVA_025_01]
[2020/07/08 13:24:40.516444, 5, pid=4486, effective(10007, 10002),
real(10007, 0), class=vfs] ../source3/smbd/vfs.c:1463(check_reduced_name)
check_reduced_name: Production/DOCUMENTS/Unlink_200710_AVA_025_01
reduced to /volume1/Gaia/Production/DOCUMENTS/Unlink_200710_AVA_025_01
[2020/07/08 13:24:40.516485, 3, pid=4486, effective(10007, 10002),
real(10007, 0)] ../source3/smbd/dir.c:629(dptr_create)
creating new dirptr 0 for path Production/DOCUMENTS, expect_close = 0
[2020/07/08 13:24:40.516811, 3, pid=4486, effective(10007, 10002),
real(10007, 0)] ../source3/smbd/dir.c:1188(smbd_dirptr_get_entry)
smbd_dirptr_get_entry mask=[Unlink_200710_AVA_025_01] found
Production/DOCUMENTS/Unlink_200710_AVA_025_01
fname=Unlink_200710_AVA_025_01 (Unlink_200710_AVA_025_01)
[2020/07/08 13:24:40.516864, 2, pid=4486, effective(10007, 10002),
real(10007, 0)] ../source3/modules/vfs_fruit.c:895(ad_header_read_rsrc)
open AppleDouble: Production/DOCUMENTS/._Unlink_200710_AVA_025_01, No
such file or directory
[2020/07/08 13:24:40.517046, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=locking]
../source3/locking/share_mode_lock.c:275(share_mode_memcache_fetch)
fetched entry for file Production/DOCUMENTS seq 0x10792665304706506964
key 15:791901:0
[2020/07/08 13:24:40.517093, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=locking]
../source3/locking/locking.c:1225(find_delete_on_close_token)
find_delete_on_close_token: name_hash = 0x9879a1fe
[2020/07/08 13:24:40.517124, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=locking]
../source3/locking/share_mode_lock.c:147(share_mode_memcache_delete)
deleting entry for file Production/DOCUMENTS seq
0x10792665304706506964 key 15:791901:0
[2020/07/08 13:24:40.517156, 10, pid=4486, effective(10007, 10002),
real(10007, 0), class=locking]
../source3/locking/share_mode_lock.c:370(unparse_share_modes)
No used share mode found
------------------------------------------------------
I do not understand.
Thank you in advance for enlightening me.
Yours.
******************************** French ********************************
Bonjour,
Cette migration génère plusieurs effets de bord.
J'ai modifié la directive de "log level" de la manière suivante :
log level = 3 smb:10 vfs:10 acls:10 locking:10
J'ai demandé à un utilisateur d'ouvrir un document.
Il s'agit du document nommé Unlink_200710_AVA_025_01.
Ce dernier ne porte pas d'extension de fichier.
Il s'agit d'un fichier Indesign :
# file /volume1/Gaia/Production/DOCUMENTS/Unlink_200710_AVA_025_01
/volume1/Gaia/Production/DOCUMENTS/Unlink_200710_AVA_025_01: Adobe
InDesign Document
InDesign possède une particularité concernant le verrouillage des
fichiers. Lorsque l'application ouvre un fichier, elle créé un verrou
sous forme d'un fichier dans le même dossier mais portant l'extension
.idlk : ~unlink_200710_ava_~ccjye8.idlk
Lorsque l'on quitte l'application InDesign et que l'on ferme le fichier,
l'application supprime d'elle même ce fichier d'extension .idlk.
Il s'avère que depuis la migration, je constate que les fichier .idlk ne
sont plus supprimés.
-> Voici un extrait des traces concernant ce procédé :
------------------------------------------------------
{... Voir précédement ...}
------------------------------------------------------
Je ne comprends pas.
Merci par avance pour m'éclairer.
Bien à vous.
--
Marc-Henri Pamiseux - SARL Libricks - www.libricks.fr
6 rue Léonard de Vinci - CS 20119, 53001 LAVAL Cedex
Tel. : 02.30.96.15.24 / Mobile : 06.26.71.30.97
More information about the samba
mailing list