-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow ZVOL bookmarks to be listed recursively #5072
Conversation
*/ | ||
argtype = types; | ||
if (flags & ZFS_ITER_RECURSE) { | ||
argtype |= ZFS_TYPE_FILESYSTEM; | ||
if (types & ZFS_TYPE_SNAPSHOT) | ||
if (types & ZFS_TYPE_SNAPSHOT || | ||
types & ZFS_TYPE_BOOKMARK) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be rewritten more clearly one a single line as:
if (types & (ZFS_TYPE_SNAPSHOT | ZFS_TYPE_BOOKMARK))
@loli10K could you rebase this against the latest master, make the suggested style change, and force update the PR. Then you should get a clean test run. The fix itself looks reasonable. |
Sorry, i'm not a good C programmer. EDIT: i kind of knew there was a better way to write that conditional statement, but wouldn't dare try my hand |
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes openzfs#4503 Closes openzfs#5072
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes openzfs#4503 Closes openzfs#5072
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes openzfs#4503 Closes openzfs#5072
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes openzfs#4503 Closes openzfs#5072
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #4503 Closes #5072
When trying to list bookmarks recursively, if the parent dataset (
-r tank/path
) is a ZVOL the command fails:Fix issue #4503
EDIT: fixed checkstyle warning