Dr. Hansjörg Maurer
2023-Feb-08 10:42 UTC
[Samba] vfs_shadow_copy2 problem on top level of homes share
Hi we have a problem accessing snapshot in a toplevel of the homes share. Samba Version 4.16.4 In subdirectories of the homes share snapshots could be accessed. In both cases, the snapshots are shown, but if I try to access a certain snapshot in toplevel of the homes share, the folder is empty in explorer The mountpoint of the filesystem is /data/home Filesystem is xfs on top of lvm_thin and snapshots are generated and mounted by snapper In the configured snapdir directory links are generated, which link to the original snapper directory [root at serv01 ~]# ll /data/home/snapshots/ insgesamt 0 lrwxrwxrwx 1 root root 36? 8. Feb 11:05 2023-01-19--0001 -> /data/home/.snapshots/26304/snapshot/ lrwxrwxrwx 1 root root 36? 8. Feb 11:05 2023-01-20--0001 -> /data/home/.snapshots/26328/snapshot/ lrwxrwxrwx 1 root root 36? 8. Feb 11:05 2023-01-21--0001 -> /data/home/.snapshots/26352/snapshot/ lrwxrwxrwx 1 root root 36? 8. Feb 11:05 2023-01-22--0001 -> /data/home/.snapshots/26376/snapshot/ lrwxrwxrwx 1 root root 36? 8. Feb 11:05 2023-01-23--0001 -> /data/home/.snapshots/26400/snapshot/ ... Below the part of smb.conf [homes] ??? path = /data/home/%U ??? read only = no ?? follow symlinks = yes ?? wide links =yes ?? shadow:localtime = yes ?? vfs objects = shadow_copy2 ?? shadow: mountpoint = /data/home ?? shadow: snapdir = /data/home/snapshots ?? shadow: sort = desc ?? shadow: format = %Y-%m-%d--%H%M accessing for example \\SMBSERV\maurer\Downloads (?Gestern, ?7. ?Februar ?2023, ??22:02) in explorer works fine \\SMBSERV\maurer (?Gestern, ?7. ?Februar ?2023, ??22:02) shows "no files" in explorer With other shares I can access snapshots on toplevel in the error case samba logs [2023/02/06 20:57:31.610035,? 5] ../../source3/smbd/trans2.c:1726(smbd_dirptr_lanman2_mode_fn) ? smbd_dirptr_lanman2_mode_fn: Couldn't stat [.. {@GMT-2023.02.06-14.02.00}] (Datei oder Verzeichnis nicht gefunden) [2023/02/06 20:57:31.623352,? 5] ../../source3/smbd/uid.c:327(change_to_user_impersonate) ? change_to_user_impersonate: Skipping user change - already user [2023/02/06 20:57:31.623430,? 5] ../../source3/smbd/uid.c:299(print_impersonation_info) ? print_impersonation_info: Impersonated user: uid=(500,500), gid=(0,500), cwd=[/data/home/maurer] [2023/02/06 20:57:31.623501,? 5] ../../source3/smbd/trans2.c:5174(smbd_do_qfilepathinfo) ? smbd_do_qfilepathinfo: . {@GMT-2023.02.06-14.02.00} (fnum 2744924678) level=1004 max_data=40 [2023/02/06 20:57:31.623551,? 5] ../../source3/smbd/dosmode.c:398(fget_ea_dos_attribute) ? fget_ea_dos_attribute: Cannot get attribute from EA on file . {@GMT-2023.02.06-14.02.00}: Error = Keine Daten verf?gbar The ? smbd_dirptr_lanman2_mode_fn: Couldn't stat line does not occur in the working case Could anyone confirm this problem or am I missing a config option? I have seen, that vfs_shadow_copy2 has now more option then when I created the setup.... Regards hansj?rg ---------------------------- Unser System ist mit einem Mailverschluesselungs-Gateway ausgestattet. Wenn Sie moechten, dass an Sie gerichtete E-Mails verschluesselt werden, senden Sie einfach eine S/MIME-signierte E-Mail oder Ihren PGP Public Key an hansjoerg.maurer at itsd.de. Our system is equipped with an email encryption gateway. If you want email sent to you to be encrypted please send a S/MIME signed email or your PGP public key to hansjoerg.maurer at itsd.de.