On Thu, Jun 15, 2017 at 04:47:06PM +0200, Ruediger Meier wrote: > On Friday 26 May 2017, Karel Zak wrote: > > On Wed, May 10, 2017 at 01:03:10PM +0200, Ruediger Meier wrote: > > > > It would be probably possible to extend libblkid to work in some > > > > "ignore previous result" mode to to gather all permutation for > > > > the FS/RAID/etc, but it won't be trivial task... > > > > > > This would be nice. > > > > Implemented (and it was relatively easy to implement :-) > > > > Try "blkid-hide" branch from github, will be in v2.31. > > > # wipefs -a --no-act /dev/sdc > > > Thanks, this looks good. There are still a few issues- Thanks for testing! > > $ truncate -s 100M /tmp/test.img > $ echo "label: gpt" | ./sfdisk /tmp/test.img > > ### this hangs indefinitely > $ wipefs -t gpt /tmp/test.img Fixed. > ### the default list shows too many newlines > $ ./wipefs /tmp/test.img > offset type > ---------------------------------------------------------------- > 0x1fe PMBR [partition table] > > 0x63ffe00 gpt [partition table] > > 0x200 gpt [partition table] All the output is ugly. I'll probably link it with libsmartcols, because we support "wipefs /dev/sd*" to list more devices and then the output is absolutely useless. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html