Instructions
To identify if sparse file support is enabled for all new smb shares:
isi smb settings shares view --zone <zone name>|grep "Sparse File"
To identify if sparse file support is enabled on a specific share:
isi smb shares view --zone <zone name> <share name>|grep "Sparse File"
To check if a specific file is a sparse file (has sparse regions):
isi get -DDd /ifs/<path>|grep "sparse"
If this file contains a sparse region you should get output similar to this, where the number following the '#' represents how many blocks have been zero'd, also indicating there exists sparse blocks:
(sparse)#64
(sparse)#32
Additional Information
Note: When "sparse file support" is enabled for SMB this enables, the IOCTL SMB call FSCTL_SET_SPARSE, primarily for Commvault backup application usage, allows the backup client to "punch sparse holes" into the file, thus inserting sparse regions for compression purposes.
The support for sparse files over SMB is for FSCTL SET_ZERO_DATA for sparse hole punching only, for Commvault backups, other sparse file operations like ‘FSCTL_SET_SPARSE’ isn’t supported. OneFS will send a successful response to FSCTL_SET_SPARSE but does not set the sparse attribute/flag.