aboutsummaryrefslogtreecommitdiff
path: root/toys/other/sysctl.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-03-11 19:11:05 -0700
committerRob Landley <rob@landley.net>2020-03-11 21:50:25 -0500
commit42be28f77458618c128d32d9273f6eca7f73a971 (patch)
tree9f21ea1ce1769f3a8aef5f9fc7709234add2b052 /toys/other/sysctl.c
parent8a68f6dd4021986e10760a3a36d453809ac4be36 (diff)
downloadtoybox-42be28f77458618c128d32d9273f6eca7f73a971.tar.gz
fdlength: device size is reported in bytes, not blocks.
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.
Diffstat (limited to 'toys/other/sysctl.c')
0 files changed, 0 insertions, 0 deletions