Re: [Toybox] [PATCH] Add "df -i".

2017-11-17 Thread enh
On Fri, Nov 17, 2017 at 8:39 AM, Rob Landley wrote: > On 11/15/2017 03:11 PM, enh wrote: >> Also switch to u64 for calculations. Some FUSE file systems have inode >> counts large enough to overflow s64. > > 1<<63 = 9,223,372,036,854,775,808 = 9.2 quintillion. > > That's kind of disturbing. (What d

Re: [Toybox] [PATCH] Add "df -i".

2017-11-17 Thread Rob Landley
On 11/15/2017 03:11 PM, enh wrote: > Also switch to u64 for calculations. Some FUSE file systems have inode > counts large enough to overflow s64. 1<<63 = 9,223,372,036,854,775,808 = 9.2 quintillion. That's kind of disturbing. (What does the filesystem have 9.2 quintillion _of_?) Are we going to

[Toybox] [PATCH] Add "df -i".

2017-11-15 Thread enh
Also switch to u64 for calculations. Some FUSE file systems have inode counts large enough to overflow s64. --- toys/posix/df.c | 69 +++-- 1 file changed, 47 insertions(+), 22 deletions(-) From a79e67ab7846bc5f2f3b2389806230e4c13f2e2d Mon Sep 17