diff options
author | csjp <csjp@FreeBSD.org> | 2006-09-20 20:55:02 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2006-09-20 20:55:02 +0000 |
commit | 2fbe025d48dfd8da7d53d2a174d4c0c49804404e (patch) | |
tree | 9e4b9104d09feca3593bbdbdc9c1ebc5d7c0eb77 /lib/libncp/ncpl_misc.c | |
parent | 2e90bf751206c52079b5cfca2763dde4b65e74e6 (diff) | |
download | FreeBSD-src-2fbe025d48dfd8da7d53d2a174d4c0c49804404e.zip FreeBSD-src-2fbe025d48dfd8da7d53d2a174d4c0c49804404e.tar.gz |
Based on The Open Group Base Specifications Issue 6 IEEE Std 1003.1, our
current implementation of df(1) is does not properly format the output under
certain conditions. Right now -kP and -Pk are not the same thing. Further,
when we set the BLOCKSIZE environment variable, we use "1k" instead of "1024",
making the header display incorrectly.
To quote the specification:
"When both the -k and -P options are specified, the following header line
shall be written (in the POSIX locale):
"Filesystem 1024-blocks Used Available Capacity Mounted on\n"
- If -P has been specified, check to make sure that -k has not already been
specified, if so, simply break instead of clobbering the previous blocksize
- Use 1024 instead of 1k to make the header POSIX compliant
Reported by: Andriy Gapon
Discussed with: bde, ru
MFC after: 1 week
Diffstat (limited to 'lib/libncp/ncpl_misc.c')
0 files changed, 0 insertions, 0 deletions