diff options
author | Andrew Stormont <astormont@racktopsystems.com> | 2021-06-25 11:16:02 +0100 |
---|---|---|
committer | Andrew Stormont <astormont@racktopsystems.com> | 2021-07-04 11:13:40 +0100 |
commit | 1e9e241fbdc7ae75a7b37c1e7afc8c96d2f43e1e (patch) | |
tree | cb3f5a4be2965b1924288f237b9da74de2146fbe | |
parent | 6b641d7a35808436d7283b7057a01791e2e2a4e2 (diff) | |
download | illumos-joyent-1e9e241fbdc7ae75a7b37c1e7afc8c96d2f43e1e.tar.gz |
13905 zfs holds is quadratic
Reviewed by: Alexander Stetsenko <alex.stetsenko@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Vitaliy Gusev <gusev.vitaliy@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/cmd/zfs/zfs_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <ikozhukhov@gmail.com>. * Copyright 2016 Nexenta Systems, Inc. * Copyright (c) 2018 Datto Inc. + * Copyright 2021 RackTop Systems, Inc. */ #include <assert.h> @@ -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; |