summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorloli10K <ezomori.nozomu@gmail.com>2020-12-23 17:23:44 +0000
committerAndy Fiddaman <omnios@citrus-it.co.uk>2020-12-24 14:29:26 +0000
commit1473b8d60e902819558a8b0e8a257eb0d754c3c3 (patch)
tree5271caabc1ca2ab09e8ffea049f27059c3f7f4c0 /usr/src
parent4bba12ca5cd6f92aaf0d4c0d19d05528110bc095 (diff)
downloadillumos-joyent-1473b8d60e902819558a8b0e8a257eb0d754c3c3.tar.gz
13388 ZFS list bookmark not working on zvols
Reviewed by: Andy Fiddaman <andy@omnios.org> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Jason King <jason.king@joyent.com> Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/zfs/zfs_iter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/zfs/zfs_iter.c b/usr/src/cmd/zfs/zfs_iter.c
index e32748d290..4430913b0c 100644
--- a/usr/src/cmd/zfs/zfs_iter.c
+++ b/usr/src/cmd/zfs/zfs_iter.c
@@ -445,13 +445,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;
}