[Toybox] [PATCH] fdlength: device size is reported in bytes, not blocks.
enh
enh at google.com
Wed Mar 11 19:13:31 PDT 2020
The shift was a remnant from when BLKGETSIZE (which measures in
blocks) was being used on Linux. The Mac has two separate ioctls
for block count and block size, which we're already multiplying
together. And on Linux we're using BLKGETSIZE64, which returns a
result in bytes, not blocks. So lose the shift.
---
lib/lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fdlength-device-size-is-reported-in-bytes-not-blocks.patch
Type: application/octet-stream
Size: 1149 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200311/7501cdf4/attachment-0002.obj>
More information about the Toybox
mailing list