From 6cbb7371b349c63c6f3ba59a14acb0afc8ca3bde Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 18 Feb 2016 12:42:06 +0100 Subject: libfdisk: add API to control signatures wiping Now libfdisk warns if another filesystem/RAID/PT signature is detected on the device. It seems better and user-friendly to make it possible to wipe the signatures when we write a new disk label to the device. This patch adds to the library API fdisk_enable_wipe() fdisk_has_wipe() fdisk_get_collision() to control this new feature. The device modification is done by libblkid (the same we use in some mkfs-like utils). Signed-off-by: Karel Zak --- libfdisk/docs/libfdisk-sections.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libfdisk/docs/libfdisk-sections.txt') diff --git a/libfdisk/docs/libfdisk-sections.txt b/libfdisk/docs/libfdisk-sections.txt index f69c6671c..dd8df21ef 100644 --- a/libfdisk/docs/libfdisk-sections.txt +++ b/libfdisk/docs/libfdisk-sections.txt @@ -293,7 +293,9 @@ fdisk_deassign_device fdisk_enable_bootbits_protection fdisk_enable_details fdisk_enable_listonly +fdisk_enable_wipe fdisk_get_alignment_offset +fdisk_get_collision fdisk_get_devfd fdisk_get_devname fdisk_get_first_lba @@ -313,6 +315,7 @@ fdisk_get_unit fdisk_get_units_per_sector fdisk_has_label fdisk_has_protected_bootbits +fdisk_has_wipe fdisk_is_details fdisk_is_labeltype fdisk_is_listonly -- cgit v1.2.3-55-g7522