Windows clients using SMB 2.x can still access ~snapshot directory even with "showsnapshot" share property disabled
Applies to
- ONTAP 9
- CIFS
Issue
- From Windows client
~snapshot
directory is accessible even without"showsnapshot"
share property set
"showsnapshot"
share property is not set for the share "vol1"
::> cifs share show -vserver vs912 -share-name vol1
Vserver: vs912
Share: vol1
CIFS Server NetBIOS Name: VS912
Path: /vol1
Share Properties: oplocks
browsable
changenotify
access-based-enumeration
show-previous-versions
Symlink Properties: symlinks
File Mode Creation Mask: -
Directory Mode Creation Mask: -
Share Comment: -
Share ACL: Everyone / Full Control
File Attribute Cache Lifetime: -
Volume Name: vol1
Offline Files: manual
Vscan File-Operations Profile: standard
Maximum Tree Connections on Share: 4294967295
UNIX Group for File Create: -
- "snapdir-access" is set to true on the volume
::> vol show -vserver vs912 -volume vol1 -fields snapdir-access
vserver volume snapdir-access
------- ------ --------------
vs912 vol1 true
- In Windows client :
In Registry under the below path there is a DWORD32"DirectoryCacheLifetime"
which is set to zero
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters