NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/41541: df -P is broken on netbsd-5
>Number: 41541
>Category: bin
>Synopsis: df is broken with the -P option
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 04 17:30:00 +0000 2009
>Originator: Louis Guillaume
>Release: NetBSD 5.0_STABLE
>Organization:
>Environment:
System: NetBSD shodo.berklee.net 5.0_STABLE NetBSD 5.0_STABLE (GENERIC) #7: Fri
May 1 18:09:20 EDT 2009
louis%shodo.berklee.net@localhost:/usr/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
The df -P command is broken. For example, on this system:
$ df -Pk /
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/wd0a 4068920 953824 2911656 24% /
$ df -k /
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/wd0a 508615 119228 363957 24% /
$ df -Pm /
df: non-standard block size incompatible with -P
Notice that the amounts are incorrect when using the -P option.
This problem does not happen on a netbsd-4 machine.
I'm quite sure the problem is with -P and not without it. But to be honest,
this is an assumption, as df is my only way of checking this now. And the
-m option to df fails with -P, so -P becomes suspect. df -Pm works on netbsd-4
as it does on other platforms (AIX, Darwin, Linux).
I tested on 2 different netbsd-5 machines and see the same problem.
>How-To-Repeat:
Try the df command with the -P option.
>Fix:
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index