From ba465623d84b9e330f248a477d078b5f280b7943 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 4 May 2016 12:43:35 +0200 Subject: fdisk: add --wipe-partitions=auto|never|default The option allows to remove filesystes/RAIDs from newly created partitions before the partition table is updated (and partition device created). The default is "auto" in this case wipe is enabled in interactive mode only and user's confirmation (yes/no dialog) is required. Note that keep filesystem signature on partition is pretty valid use-case, so we don't erase anything by default. Signed-off-by: Karel Zak --- disk-utils/fdisk.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'disk-utils/fdisk.h') diff --git a/disk-utils/fdisk.h b/disk-utils/fdisk.h index f66404d04..7a7fb85d3 100644 --- a/disk-utils/fdisk.h +++ b/disk-utils/fdisk.h @@ -24,6 +24,8 @@ #define FDISKPROG_DEBUG_ASK (1 << 5) #define FDISKPROG_DEBUG_ALL 0xFFFF +extern int pwipemode; + UL_DEBUG_DECLARE_MASK(fdisk); #define DBG(m, x) __UL_DBG(fdisk, FDISKPROG_DEBUG_, m, x) #define ON_DBG(m, x) __UL_DBG_CALL(fdisk, FDISKPROG_DEBUG_, m, x) -- cgit v1.2.3-55-g7522