[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: df 4.5.3 returning misleading/incorrect info
From: |
Bob Proulx |
Subject: |
Re: df 4.5.3 returning misleading/incorrect info |
Date: |
Sun, 15 Dec 2002 12:15:22 -0700 |
User-agent: |
Mutt/1.4i |
----- Forwarded message from Frank 'xraz' Fricke <address@hidden> -----
From: Frank 'xraz' Fricke <address@hidden>
Date: Sat, 14 Dec 2002 14:57:48 +0100
To: address@hidden (Bob Proulx)
Subject: Re: df 4.5.3 returning misleading/incorrect info
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 13 Dec 2002 10:07:52 -0700
address@hidden (Bob Proulx) wrote:
|Frank 'xraz' Fricke <address@hidden> [2002-12-09 11:36:47 +0100]:
|
|> now if i unmount /dev/hde2:
|>
|> |xr2k:~# umount /dev/hde2
|> |xr2k:~# df -m /dev/hde2
|> |Filesystem 1M-blocks Used Available Use% Mounted on
|> |/dev/hde2 5946 2519 3125 45%
|>
|> it displays the values of /dev/hda1 claiming it's /dev/hde2 !
|
|Yes and no. It displays the values of / and makes no claim as to what
|it is. That looks like a bug. It should list / in the "Mounted on"
|field but that field is empty.
and it should list /dev/hda1 in the first field. saying
|Filesystem
|/dev/hde2
at least looks like a claim to me :)
|At the point in the time that there is no mount associated with
|/dev/hde2 then that file is absolutely no different than any other
|file which is under "/". There is no way to tell the difference.
thats the point - why does it the show a diefference to a normal file
under / ?
shouldn't then
|xr2k:~# df -m /dev/hde2
|Filesystem 1M-blocks Used Available Use% Mounted on
|/dev/hde2 5946 2519 3125 45%
not display the same as:
|xr2k:~# df -m /etc/passwd
|Filesystem 1M-blocks Used Available Use% Mounted on
|/dev/hda1 5946 2519 3125 45% /
?
don't get me wrong: i can absolutely live with this behaviour. it
irritates only one time :)
but it looked more like an inaccuracy in the code wich maybe could
lead to other things...
i'm sorry i don't have the time to look at the sources myself atm.
regards...
...Frank
http://www.gnupg.org | http://xraz.de/gpg.key
Fingerpint: C1E1 0A5C 3733 F4F1 D59B 14F7 57C6 1784 8F78 8A2B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE9+zjcV8YXhI94iisRAoiMAJ9bugU2rOtKqgviJyLbmnKn7drBwACfeqrD
BFf7YdLV1M6NY2aqFau2eno=
=WjgU
-----END PGP SIGNATURE-----
----- End forwarded message -----