Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip iterating over snapshots for share properties
Setting sharenfs and sharesmb properties on a dataset can become costly if there are large number of snapshots, since setting the share properties iterates over all snapshots present for a dataset. If it is the root dataset for which we are trying to set the share property, snapshots for all child datasets and their children will also be iterated. There is no need to iterate over snapshots for share properties because we do not allow share properties or any other property, to be set on a snapshot itself execpt for user properties. This commit skips iterating over snapshots for share properties, instead iterate over all child dataset and their children for share properties. Signed-off-by: Umer Saleem <[email protected]>
- Loading branch information