Closed vishnuitta closed 4 years ago
Related PR to this in cstor: https://github.com/openebs/cstor/pull/295
Can you update the PR description with updated sample JSON output?
Ok it was updated
merged this, travis the failing as there is dependency on https://github.com/openebs/cstor/pull/295.
This PR adds the LIST_SNAP uzfs ioctl implementation. For command
zfs listsnap <dataset>
, output will be in json format as:This will NOT list the snapshots created through 'zfs snapshot' until the zrepl is restarted. However, it lists the snapshots created through istgt iscsi target.
This command implementation reads the snapshot list from disk once and caches the list. This cache will be updated with snapshot name for every SNAP_CREATE command from istgt. This cache will be served for every trigger of this ioctl.
Working on testcases.