mirror_zfs/lib
Christos Longros d35951b18d
zpool clear: remove undocumented rewind flags
Remove the -F, -n, and -X flags from zpool clear.  These flags were
inherited from OpenSolaris but are not applicable in this context.
Unlike zpool import, where the pool is not yet loaded and a specific
TXG can be selected, zpool clear operates on an already imported pool
whose in-memory state is ahead of what is on disk.  Rewinding
transactions would require force-exporting the pool first.

The rewind policy passed to zpool_clear() is now always
ZPOOL_NO_REWIND.

Tested on FreeBSD 16.0-CURRENT (amd64).  Verified that -F, -n, and
-X are properly rejected as invalid options and that the usage output
reflects the change.

Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Christos Longros <chris.longros@gmail.com>
Closes #13825
Closes #18300
2026-03-11 15:15:45 -07:00
..
libavl build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libbtree Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
libefi build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libicp build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libnvpair build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
librange_tree Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
libspl libspl/mnttab: remove struct extmnttab 2026-03-10 13:07:07 -07:00
libzdb More consistent use of TREE_* macros in AVL comparators 2026-03-03 09:08:23 -08:00
libzfs zpool clear: remove undocumented rewind flags 2026-03-11 15:15:45 -07:00
libzfs_core abi: updates for mnttab cleanup 2026-03-10 13:07:07 -07:00
libzfsbootenv build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
libzpool libzpool: lift zfs_file ops out to separate source file 2026-03-05 18:07:46 -08:00
libzstd Zstd: Integrate v1.5.7 into the ZFS build system 2026-01-20 13:41:06 -08:00
libzutil build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
Makefile.am Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00