]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: add --wipe
authorKarel Zak <kzak@redhat.com>
Thu, 18 Feb 2016 11:50:11 +0000 (12:50 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 18 Feb 2016 11:58:12 +0000 (12:58 +0100)
commitcb9a4b0033eca429689a403be2a192fe2842f2e9
treed2bb843aaa8462e6714fa609aa1c9cc03b6aab27
parent6cbb7371b349c63c6f3ba59a14acb0afc8ca3bde
fdisk: add --wipe

This patch changes fdisk behavior and it wipes foreign signatures
from the device to avoid collisions. The wipe functionality is
automatically enabled in the interactive mode only (user is always
warned about it), otherwise it's possible to control all by --wipe
<auto|never|always>.

The program does not change behavior when executed in scripts (echo
<something> | fdisk), the option "--wipe=always" is required to enable
in this case.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fdisk-list.h
disk-utils/fdisk.8
disk-utils/fdisk.c