summaryrefslogtreecommitdiffstats
path: root/disk-utils/fdisk.h
diff options
context:
space:
mode:
authorKarel Zak2016-05-04 12:43:35 +0200
committerKarel Zak2016-05-04 12:43:35 +0200
commitba465623d84b9e330f248a477d078b5f280b7943 (patch)
treeddf639b7e8657d27e3a426cdad8ca7c3421952ec /disk-utils/fdisk.h
parentlibfdisk: add fdisk_wipe_partition() (diff)
downloadkernel-qcow2-util-linux-ba465623d84b9e330f248a477d078b5f280b7943.tar.gz
kernel-qcow2-util-linux-ba465623d84b9e330f248a477d078b5f280b7943.tar.xz
kernel-qcow2-util-linux-ba465623d84b9e330f248a477d078b5f280b7943.zip
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 <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fdisk.h')
-rw-r--r--disk-utils/fdisk.h2
1 files changed, 2 insertions, 0 deletions
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)