]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: add API to control signatures wiping
authorKarel Zak <kzak@redhat.com>
Thu, 18 Feb 2016 11:42:06 +0000 (12:42 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 18 Feb 2016 11:58:12 +0000 (12:58 +0100)
commit6cbb7371b349c63c6f3ba59a14acb0afc8ca3bde
tree5aaf4727f1285dc7eec602a51c7144b8c160abaf
parent99fcafdf5f9c8cf7dedeeb1246210013da58dfd7
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 <kzak@redhat.com>
libfdisk/docs/libfdisk-sections.txt
libfdisk/src/context.c
libfdisk/src/fdiskP.h
libfdisk/src/label.c
libfdisk/src/libfdisk.h.in
libfdisk/src/libfdisk.sym