]> git.proxmox.com Git - mirror_zfs.git/commit
zpool: Provide GUID to zpool-reguid(8) with -g (#16239)
authorMateusz Piotrowski <0mp@FreeBSD.org>
Mon, 26 Aug 2024 16:27:24 +0000 (18:27 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Aug 2024 16:27:24 +0000 (09:27 -0700)
commit6be8bf5552b16475629a15ab62759eb7a6d73e3b
tree952fdb553ed76d231396e80fc72d030d60889b4e
parent2420ee6e12cb4bc4918fc88d44d59b486b86e58b
zpool: Provide GUID to zpool-reguid(8) with -g (#16239)

This commit extends the zpool-reguid(8) command with a -g flag, which
allows the user to specify the GUID to set.

This change also adds some general tests for zpool-reguid(8).

Sponsored-by: Wasabi Technology, Inc.
Sponsored-by: Klara, Inc.
Signed-off-by: Mateusz Piotrowski <0mp@FreeBSD.org>
Reviewed-by: Rob Norris <rob.norris@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
16 files changed:
cmd/zpool/zpool_main.c
cmd/ztest.c
include/libzfs.h
include/sys/fs/zfs.h
include/sys/spa.h
lib/libzfs/libzfs.abi
lib/libzfs/libzfs_pool.c
man/man8/zpool-reguid.8
module/zfs/spa.c
module/zfs/zfs_ioctl.c
tests/runfiles/common.run
tests/zfs-tests/tests/functional/cli_root/zpool_reguid/Makefile.am [new file with mode: 0644]
tests/zfs-tests/tests/functional/cli_root/zpool_reguid/cleanup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_root/zpool_reguid/setup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_root/zpool_reguid/zpool_reguid_001_pos.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_root/zpool_reguid/zpool_reguid_002_neg.ksh [new file with mode: 0755]