[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
df: the inode format and various block-size arguments
From: |
Bernhard Voelker |
Subject: |
df: the inode format and various block-size arguments |
Date: |
Mon, 17 Sep 2012 08:39:45 +0200 (CEST) |
Working on the new --output option for df, I realized that
'df -i' only honors the --block-size arguments 'si' and
'human-readable', but not arbitrary values like '1M':
$ for o in human-readable si M 1M ; do \
src/df -i --block-size=$o . ; \
done
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb 256K 21K 236K 9% /home
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb 263k 22k 241k 9% /home
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb 262144 21406 240738 9% /home
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb 262144 21406 240738 9% /home
There's nothing helpful about this in the .texi file.
Is this correct behavior? If true, then it should at
least be documented.
But here's an even stranger example: df appends the
'B' suffix to the inode values while not taking the
factor into account:
src/df -i --block-size=MiB .
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb 262144B 21406B 240738B 9% /home
What about this?
Have a nice day,
Berny
- df: the inode format and various block-size arguments,
Bernhard Voelker <=