Commit Message

Currently we only attempt to wipe old raid signatures at the end of the
device. However this might not be enough because some file system
(btrfs) may still have their signatures on the device which can be
confusing for userspace possibly resulting in the unmountable file
system.
This patch adds a function which uses libblkid library to wipe all the
signatures from the device. In case that libblkid lack the capability to
do so we still use the old method of wiping off raid signatures and new
method of wiping btrfs signatures (originally written by Eric Sandeed).
We attempt to wipe off signatures before creating the file system.
Information about existing signatures is printed only in verbose mode.
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
---
configure | 2 +-
configure.in | 1 +
lib/config.h.in | 3 +
misc/mke2fs.c | 210 +++++++++++++++++++++++++++++++++++++++++++++----------
4 files changed, 178 insertions(+), 38 deletions(-)