Commit Diff


commit - fc7d38e3ca8a449df04dea2a97e6fc28a175c3db
commit + bb3f9866fc5d2dc7db6a3b491decacfc28a146bd
blob - 260330f9657045166ee87fff0b43be01721b8806
blob + 28aafc3f7de68b1fbefc3a4b3ea1739aa95063c7
--- Makefile
+++ Makefile
@@ -2,7 +2,7 @@
 # See LICENSE file for copyright and license details.
 .POSIX:
 
-VERSION = 0.1.2
+VERSION = 0.1.3
 PREFIX = /usr/local
 MANPREFIX = ${PREFIX}/man
 CFLAGS = -pipe -O2 -Wall -Werror
blob - 4ca173cf5a05c74057e3aeb581885443156ef86c
blob + 1dbbbdc4b299946d22d1769a5a3c6ce03f2bb22a
--- lsblk.c
+++ lsblk.c
@@ -172,7 +172,7 @@ int main (int argc, char *argv[])
         char *letter = name + strlen (name) - 1;
 
         printf ("%s    ", disk);
-        printsize ((uint64_t)label.d_nsectors * ss);
+        printsize ((((uint64_t)label.d_secperunith << 32) | label.d_secperunit) * ss);
         printf (" %s\n", label.d_typename);
         for (uint16_t i = 0; i < label.d_npartitions; ++i) {
             const struct partition *p = &label.d_partitions[i];