#40633 [Asn->Sus]: disk_free_space returns a bad result on filesystems with negative free space
| From: | tony2001@php.net | Date: | Thu, 26 Apr 2007 09:23:18 +0000 |
| Subject: | #40633 [Asn->Sus]: disk_free_space returns a bad result on filesystems with negative free space | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111934@lists.php.net to get a copy of this message | ||
ID: 40633
Updated by: tony2001@php.net
Reported By: adam-phpbugs at adam dot gs
-Status: Assigned
+Status: Suspended
Bug Type: Filesystem function related
Operating System: FreeBSD
PHP Version: 5.2.1
Assigned To: tony2001
Previous Comments:
------------------------------------------------------------------------
[2007-04-10 20:58:25] stas@php.net
Funny thing is that PHP doesn't use any unsigned numbers on the way -
it translates it directly from system call int64 to double. I guess
version of the system and header file defining struct statvfs would be
useful.
------------------------------------------------------------------------
[2007-02-26 15:44:08] tony2001@php.net
Please provide an SSH account on a machine where I can reproduce it.
------------------------------------------------------------------------
[2007-02-26 13:33:03] adam-phpbugs at adam dot gs
changing OS to FreeBSD
------------------------------------------------------------------------
[2007-02-26 13:32:36] adam-phpbugs at adam dot gs
This was FreeBSD
if you look at the FreeBSD manpage for tunefs(8), this is
the intended behaviour.
http://www.freebsd.org/cgi/man.cgi?
query=tunefs&apropos=0&sektion=0&manpath=FreeBSD+6.2-
RELEASE&format=html
Basically, in FreeBSD (under UFS2 at least) avaliable space
is calculated as total minus used minus reserved. A small %
(8 by default) is reserved.
So, this is not really a bug, but actually an intended
feature.
------------------------------------------------------------------------
[2007-02-26 09:33:41] tony2001@php.net
What kind of BSD is that and don't you think that negative free space
is a BSD bug?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/40633
--
Edit this bug report at http://bugs.php.net/?id=40633&edit=1