forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore errors from zfs_share when updating properties
On TrueNAS SCALE, for every dataset middleware calls do_update() from ZFSDatasetService. This eventually calls into update_properties from py-libzfs which calls zfs_prop_set_list. When zfs_prop_set_list is called, it tries to update all the properties. On this path, libzfs upon checking for sharesmb and sharenfs properties, it tries to share that particular filesystem and reports error in updating the properties. Due to this, the pool import is un-successful from the UI when middleware tries to run ZFSDatasetService. This commit checks for share status specifically from zfs_prop_set_list and ignores the share errors if any. Once the pool is imported, zfs_share service tries to enable the zfs shares from zfs-share.service. This service is disabled by default from now on. Signed-off-by: Umer Saleem <[email protected]>
- Loading branch information
1 parent
bbaf65a
commit b33f8eb
Showing
5 changed files
with
27 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters