From e29880dee2be718e5c1d1e175708f922962dbed2 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 27 Sep 2018 16:09:54 -0700 Subject: blockdev: BLKRAGET returns 512-byte sectors. Bug: https://github.com/landley/toybox/issues/104 --- toys/other/blockdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') diff --git a/toys/other/blockdev.c b/toys/other/blockdev.c index e5fd0c3c..c2e10a22 100644 --- a/toys/other/blockdev.c +++ b/toys/other/blockdev.c @@ -65,7 +65,7 @@ void blockdev_main(void) xioctl(fd, cmds[i], &val); flag &= FLAG_setbsz|FLAG_setro|FLAG_flushbufs|FLAG_rereadpt|FLAG_setrw|FLAG_setbsz; - if (!flag) printf("%lld\n", (toys.optflags & (FLAG_getsz|FLAG_getra)) ? val >> 9: val); + if (!flag) printf("%lld\n", (toys.optflags & FLAG_getsz) ? val >> 9: val); } xclose(fd); } -- cgit v1.2.3