]> git.ipfire.org Git - thirdparty/util-linux.git/commit
wipefs: print all signature permutations
authorKarel Zak <kzak@redhat.com>
Fri, 26 May 2017 11:11:37 +0000 (13:11 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 28 Jun 2017 08:28:41 +0000 (10:28 +0200)
commit92296e9ba2bf95259520fa7537ff8edc2aa9edbc
treef4e80ea53db450e94f9605f733be64cc7dfce90a
parentd2b0c6587d729a8e838821cb70d4de18c6969868
wipefs: print all signature permutations

The same FS/RAID/PT signature may be detected by more ways and on more
places on the device. The libblkid returns only the first detected
signature by default. This patch use blkid_probe_hide_range() to
re-scan device for all possible permutations of the same signature.

For example the default wipefs(8) output as well as --no-act output will
contains primary as well as backup GPT signature now.

Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/wipefs.8
misc-utils/wipefs.c