diff options
author | loli10K <[email protected]> | 2016-09-07 19:34:20 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-09-12 12:40:53 -0700 |
commit | e33da554c5daf0103b093f44ab5b90ad6c064c3f (patch) | |
tree | 631209d237617a00981862a3c65e886346f6c972 /cmd/zfs/zfs_iter.c | |
parent | 43924bfeaa3e027b26af826ce2b7d6ed3288550c (diff) |
Allow ZVOL bookmarks to be listed recursively
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: loli10K <[email protected]>
Closes #4503
Closes #5072
Diffstat (limited to 'cmd/zfs/zfs_iter.c')
-rw-r--r-- | cmd/zfs/zfs_iter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/zfs/zfs_iter.c b/cmd/zfs/zfs_iter.c index 2c16f6981..e7f162290 100644 --- a/cmd/zfs/zfs_iter.c +++ b/cmd/zfs/zfs_iter.c @@ -444,13 +444,13 @@ zfs_for_each(int argc, char **argv, int flags, zfs_type_t types, /* * If we're recursive, then we always allow filesystems as - * arguments. If we also are interested in snapshots, then we - * can take volumes as well. + * arguments. If we also are interested in snapshots or + * bookmarks, then we can take volumes as well. */ argtype = types; if (flags & ZFS_ITER_RECURSE) { argtype |= ZFS_TYPE_FILESYSTEM; - if (types & ZFS_TYPE_SNAPSHOT) + if (types & (ZFS_TYPE_SNAPSHOT | ZFS_TYPE_BOOKMARK)) argtype |= ZFS_TYPE_VOLUME; } |