]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blkzone: Report all zones if length is not specified
authorDamien Le Moal <damien.lemoal@wdc.com>
Fri, 24 Feb 2017 03:36:08 +0000 (12:36 +0900)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Feb 2017 10:53:45 +0000 (11:53 +0100)
commit6e1958d8dd58ddc7c613466531df968d8eba27eb
tree06b4d122a164ae35a873b74a982f807af0b53ad4
parent72a73102334a7e531e566defcd92dcb822c4e388
blkzone: Report all zones if length is not specified

Report all zones of the block device when length is not specified
on the command line. To do this, introduce an inner loop in
blkzone_report to repeatedly issue report zone ioctl to the
device.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
sys-utils/blkzone.c