From: Karel Zak Date: Wed, 9 Sep 2020 10:00:10 +0000 (+0200) Subject: lsblk: print zero rather than empty SIZE X-Git-Tag: v2.37-rc1~490 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb6c51a650fe3469aee819016826c4f2ed2c97c6;p=thirdparty%2Futil-linux.git lsblk: print zero rather than empty SIZE Addresses: https://github.com/karelzak/util-linux/issues/1118 Signed-off-by: Karel Zak --- diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index 7a48adbe43..49c15ab78e 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -906,8 +906,6 @@ static char *device_get_data( ul_path_read_string(dev->sysfs, &str, "device/vendor"); break; case COL_SIZE: - if (!dev->size) - break; if (lsblk->bytes) xasprintf(&str, "%ju", dev->size); else