Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.
This was introduced as a standard samba module in 11.3, and so we'll need to test it going forwards. You can consider it to be testing core NAS functionality.
Eric Turgeon
January 22, 2020 at 2:20 PM
Is it only for TrueNAS, or is it both for FreeNAS and TrueNAS 11.3? Also, do you want it on 12?
Test is to be run locally on TrueNAS server. Syntax is as follows:
"smbtorture //127.0.0.1/zshare -U smbuser%password vfs.shadow_copy_zfs"
returns 0 on success 1 on failure. On failure, details are printed to stderr.
Setup for test requires the following:
1) Create pool "tank"
2) Create user
3) Create dataset "zshare" , and grant user from (2) full_control to dataset
4) Create SMB share "zshare" with shadow copies enabled. Set auxiliary parameter "shadow:ignore_empty_snaps=false" on share.
Test will create a subdataset tank/zshare/TESTDATASET and will not destroy it.