mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Bug 571210 Fix GetDiskSpaceAvailable for Solaris r=roc
This commit is contained in:
parent
b3fe610590
commit
c988c4dd44
@ -1234,7 +1234,12 @@ nsLocalFile::GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable)
|
||||
* a non-superuser, minus one as a fudge factor, multiplied by the size
|
||||
* of the aforementioned blocks.
|
||||
*/
|
||||
#ifdef SOLARIS
|
||||
/* On Solaris, unit is f_frsize. */
|
||||
*aDiskSpaceAvailable = (PRInt64)fs_buf.f_frsize * (fs_buf.f_bavail - 1);
|
||||
#else
|
||||
*aDiskSpaceAvailable = (PRInt64)fs_buf.f_bsize * (fs_buf.f_bavail - 1);
|
||||
#endif /* SOLARIS */
|
||||
|
||||
#if defined(USE_LINUX_QUOTACTL)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user