Skip to content

Commit

Permalink
Allow ZVOL bookmarks to be listed recursively
Browse files Browse the repository at this point in the history
Fixes #4503
  • Loading branch information
loli10K committed Sep 7, 2016
1 parent d02ca37 commit 9dbec3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/zfs/zfs_iter.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,13 +444,14 @@ 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 ||
types & ZFS_TYPE_BOOKMARK)
argtype |= ZFS_TYPE_VOLUME;
}

Expand Down

0 comments on commit 9dbec3a

Please sign in to comment.