]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blkid: don't return PART_ENTRY_* if partition is empty
authorKarel Zak <kzak@redhat.com>
Thu, 3 Feb 2011 11:12:37 +0000 (12:12 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 3 Feb 2011 11:12:37 +0000 (12:12 +0100)
commit53a4d69ddf98a09e7a658afa03ad9b697ad38082
tree524711c4311a620cd2ef67539f6713ef6317ad7a
parentdbcafb870f9622841d57a7554d8c4af258abc203
blkid: don't return PART_ENTRY_* if partition is empty

The PART_ENTRY_* has nothing to do with the _contents_ of the block
device. So if the device is empty these values should not be printed
and blkid(8) has to return 2.

The PART_ENTRY_* for empty devices should be printed for "-o udev"
output only.

Reported-by: Thomas Bächler <thomas@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/blkid.c