]> git.ipfire.org Git - thirdparty/util-linux.git/commit
wipefs: cleanup offsets list usage, fix -t filter
authorKarel Zak <kzak@redhat.com>
Thu, 31 Aug 2017 12:47:14 +0000 (14:47 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 31 Aug 2017 12:47:14 +0000 (14:47 +0200)
commit0e45b256ac41257e920e1bcf61ff1a1b30ba5b98
treeafb922ea18413a97f698d7b061aef0bfc7c993ea
parent0158e68fbd97ad6db062abcb3cbf0b3bf06e39b9
wipefs: cleanup offsets list usage, fix -t filter

* move list with offsets specified by -o to the wipe_control struct
* don't clone the list of offsets, just keep it simple and stupid
* apply all filters (-o and -t) in get_desc_for_probe()
* always return offset and len by get_desc_for_probe() and apply
  always use libblkid hide & step-back

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1486777
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/wipefs.c