]> git.ipfire.org Git - thirdparty/util-linux.git/commit
wipefs: use libsmartcols
authorKarel Zak <kzak@redhat.com>
Thu, 29 Jun 2017 09:57:22 +0000 (11:57 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Jun 2017 09:59:38 +0000 (11:59 +0200)
commitd9921b2a128f17aa9a9a110444d5faa43e1b371c
tree1bd69c60ad1ec6020b44197a04e8a1cb010ff979
parente8fd8c6b9bf53e646b84ae28b123379752fbd3c2
wipefs: use libsmartcols

The old output is horrible and useless when more devices specified.
The old format is also too tricky if more signatures detected. The new
output uses one line for each signature, prefixed by device name.

For example my workstation:

# wipefs /dev/sda* /dev/sdb*
DEVICE OFFSET       TYPE UUID                                 LABEL
sda    0x1fe        PMBR
sda    0x37e4895e00 gpt
sda    0x200        gpt
sda1   0x1fe        vfat F2BC-BFEC                            EFI
sda1   0x0          vfat F2BC-BFEC                            EFI
sda1   0x36         vfat F2BC-BFEC                            EFI
sda2   0x438        ext4 c5490147-2a6c-4c8a-aa1b-33492034f927 BOOT
sda3   0x438        ext4 196972ad-3b13-4bba-ac54-4cb3f7b409a4 HOME
sda4   0x438        ext4 d834bc84-0089-4be1-9013-cd8bf35d5ffa ROOT
sda5   0x438        ext4 e8ce5375-29d4-4e2f-a688-d3bae4b8d162 WINE
sda6   0xff6        swap 210337c6-f8b5-4d65-aab5-a0f343fa9ad4 SWAP
sdb    0x200        gpt
sdb    0x1fe        dos
sdb1   0x438        ext4 6467a684-0d10-4f61-a301-67bb26934d90

This patch add --noheadings, --json and --output.

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
misc-utils/Makemodule.am
misc-utils/wipefs.8
misc-utils/wipefs.c