diff --git a/changelogs/unreleased/440-lowjoel b/changelogs/unreleased/440-lowjoel new file mode 100644 index 0000000..dacd704 --- /dev/null +++ b/changelogs/unreleased/440-lowjoel @@ -0,0 +1 @@ +optimise pool listing for pools with many datasets diff --git a/pkg/zfs/zfs_util.go b/pkg/zfs/zfs_util.go index 2f156fa..4ae9a63 100644 --- a/pkg/zfs/zfs_util.go +++ b/pkg/zfs/zfs_util.go @@ -921,7 +921,7 @@ func CreateRestore(rstr *apis.ZFSRestore) error { // pools in the node. func ListZFSPool() ([]apis.Pool, error) { args := []string{ - ZFSListArg, "-s", "name", + ZFSListArg, "-d", "1", "-s", "name", "-o", "name,guid,available", "-H", "-p", }