From 1e9e241fbdc7ae75a7b37c1e7afc8c96d2f43e1e Mon Sep 17 00:00:00 2001 From: Andrew Stormont Date: Fri, 25 Jun 2021 11:16:02 +0100 Subject: 13905 zfs holds is quadratic Reviewed by: Alexander Stetsenko Reviewed by: Toomas Soome Reviewed by: Vitaliy Gusev Approved by: Dan McDonald --- usr/src/cmd/zfs/zfs_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/src/cmd/zfs/zfs_main.c b/usr/src/cmd/zfs/zfs_main.c index 695da7fcbc..f638d106e9 100644 --- a/usr/src/cmd/zfs/zfs_main.c +++ b/usr/src/cmd/zfs/zfs_main.c @@ -30,6 +30,7 @@ * Copyright 2016 Igor Kozhukhov . * Copyright 2016 Nexenta Systems, Inc. * Copyright (c) 2018 Datto Inc. + * Copyright 2021 RackTop Systems, Inc. */ #include @@ -5992,7 +5993,7 @@ zfs_do_holds(int argc, char **argv) /* * 1. collect holds data, set format options */ - ret = zfs_for_each(argc, argv, flags, types, NULL, NULL, limit, + ret = zfs_for_each(1, &argv[i], flags, types, NULL, NULL, limit, holds_callback, &cb); if (ret != 0) ++errors; -- cgit v1.2.3