diff options
author | Alek P <[email protected]> | 2018-10-11 00:13:13 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-10-10 21:13:13 -0700 |
commit | 50a343d85c04698d51c154375a00994dea81e6db (patch) | |
tree | 4495b175447ed0a18a8540e7eb7461bfb4d52183 /include | |
parent | 5b3bfd86a4acd0fd572802de6eb8bfed322dd470 (diff) |
Fix changelist mounted-dataset iteration
Commit 0c6d093 caused a regression in the inherit codepath.
The fix is to restrict the changelist iteration on mountpoints and
add proper handling for 'legacy' mountpoints
Reviewed by: Serapheim Dimitropoulos <[email protected]>
Reviewed by: Brian Behlendorf <[email protected]>
Signed-off-by: Alek Pinchuk <[email protected]>
Closes #7988
Closes #7991
Diffstat (limited to 'include')
-rw-r--r-- | include/libzfs_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libzfs_impl.h b/include/libzfs_impl.h index 959ba85b7..568103f4b 100644 --- a/include/libzfs_impl.h +++ b/include/libzfs_impl.h @@ -22,6 +22,7 @@ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2011, 2015 by Delphix. All rights reserved. + * Copyright (c) 2018 Datto Inc. */ #ifndef _LIBZFS_IMPL_H @@ -146,6 +147,10 @@ int zprop_expand_list(libzfs_handle_t *hdl, zprop_list_t **plp, * mounted. */ #define CL_GATHER_MOUNT_ALWAYS 1 +/* + * changelist_gather() flag to force it to iterate on mounted datasets only + */ +#define CL_GATHER_ITER_MOUNTED 2 typedef struct prop_changelist prop_changelist_t; |