From 9dbec3ae92b11700fc69d629771ed27733166aa0 Mon Sep 17 00:00:00 2001 From: loli10K Date: Wed, 7 Sep 2016 19:34:20 +0200 Subject: [PATCH] Allow ZVOL bookmarks to be listed recursively Fixes #4503 --- cmd/zfs/zfs_iter.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/zfs/zfs_iter.c b/cmd/zfs/zfs_iter.c index 2c16f6981bb2..b06addf5c517 100644 --- a/cmd/zfs/zfs_iter.c +++ b/cmd/zfs/zfs_iter.c @@ -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; }