mirror_zfs/cmd
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
..
raidz_test build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zdb Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
zed More consistent use of TREE_* macros in AVL comparators 2026-03-03 09:08:23 -08:00
zfs libspl/mnttab: remove struct extmnttab 2026-03-10 13:07:07 -07:00
zinject libspl/mnttab: remove struct extmnttab 2026-03-10 13:07:07 -07:00
zpool zpool clear: remove undocumented rewind flags 2026-03-11 15:15:45 -07:00
zpool_influxdb build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zstream zstream: consolidate shared code 2026-03-05 15:33:03 -08:00
dbufstat.in SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
fsck.zfs.in cmd: move single-file binaries up, extract udev programs to udev/ 2022-05-10 10:20:34 -07:00
Makefile.am Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
mount_zfs.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zarcstat.in cmd: rename arcstat to zarcstat 2025-09-10 10:45:21 -07:00
zarcsummary cmd: rename arc_summary to zarcsummary 2025-09-10 10:45:13 -07:00
zfs_ids_to_path.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zgenhostid.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zhack.c zhack: Fix importing large allocation profiles on small pools (#18256) 2026-02-24 10:24:22 -08:00
zilstat.in ZIL: "crash" the ZIL if the pool suspends during fallback 2025-08-08 16:43:26 -07:00
ztest.c cmd/ztest: avoid PATH_MAX stack allocation in ztest_get_zdb_bin() (#18085) 2025-12-29 11:16:34 -08:00
zvol_wait zvol_wait logic may terminate prematurely 2022-10-11 12:12:04 -07:00