aboutsummaryrefslogtreecommitdiff
path: root/toys/other/fallocate.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-08-08 02:46:45 -0500
committerRob Landley <rob@landley.net>2013-08-08 02:46:45 -0500
commit035f27ae4df2b973b8974730bb1b23a25f6160e8 (patch)
tree12d1520dec29c404882fe915ea94ce76df8e4467 /toys/other/fallocate.c
parent1aa75118c46c8fbe0eeead18974d25e5f13274d5 (diff)
downloadtoybox-035f27ae4df2b973b8974730bb1b23a25f6160e8.tar.gz
Achille Fouilleul pointed out that fdlength wasn't returning the right length in the binary search case.
(This code was originally written for mke2fs, and applies to block devices. The regular file case should just return the length from stat. The ioctl is left commented out in case I want to add back code to check the size of CDROMs without spinning them up again; not sure the sector size is always right these days.)
Diffstat (limited to 'toys/other/fallocate.c')
0 files changed, 0 insertions, 0 deletions