]> git.proxmox.com Git - mirror_zfs.git/commit
Add the ability to uninitialize
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 18 May 2023 17:02:20 +0000 (10:02 -0700)
committerGitHub <noreply@github.com>
Thu, 18 May 2023 17:02:20 +0000 (10:02 -0700)
commite34e15ed6d1882d29e314321b7642305d99f1b78
tree8600f5bff9f383090a15901f50fb22aacca2282b
parente0d5007bcf7e4425d43ba2ad56489c7db5c4a4c5
Add the ability to uninitialize

zpool initialize functions well for touching every free byte...once.
But if we want to do it again, we're currently out of luck.

So let's add zpool initialize -u to clear it.

Co-authored-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #12451
Closes #14873
13 files changed:
cmd/zpool/zpool_main.c
include/sys/fs/zfs.h
include/sys/vdev_initialize.h
lib/libzfs/libzfs.abi
lib/libzfs/libzfs_pool.c
lib/libzfs_core/libzfs_core.abi
man/man8/zpool-initialize.8
module/zfs/spa.c
module/zfs/vdev_initialize.c
module/zfs/zfs_ioctl.c
tests/runfiles/common.run
tests/zfs-tests/tests/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zpool_initialize/zpool_initialize_uninit.ksh [new file with mode: 0755]