The fdisk(8) program's man page says it doesn't write the partition table when the -t option is used, but it does do so if the -I option is also used, or at least that seems clear to me from the -I code in the "main" function in "/usr/src/sbin/i386/fdisk/fdisk.c" and following the functions calls to write_s0 and write_disk which don't use the "t_flag" to protect against writing the partition table. (The .../pc98/... version doesn't have a -I option.) ================ Fix: (untested) How-To-Repeat: If you have a free disk that can have all it's data destroyed, you could try "fdisk -I -t <disk-to-wipe-out>". ================
State Changed From-To: open->analyzed A talk with bde has started a reaction which will lead to the closing of all current fdisk(8) PR's.
Responsible Changed From-To: freebsd-doc->trhodes A talk with bde has started a reaction which will lead to the closing of all current fdisk(8) PR's.
State Changed From-To: analyzed->patched I have applied a different patch to CURRENT which fixes the problem. Thanks for the submission!
State Changed From-To: patched->closed A slightly different patch committed to current and stable, one that conformed more towards style(9). Thanks alot for pointing this out!