[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9140: fsusage: add large volume support on glibc/Hurd, HP-UX 11, Sol
From: |
Bruno Haible |
Subject: |
bug#9140: fsusage: add large volume support on glibc/Hurd, HP-UX 11, Solaris, MacOS X |
Date: |
Sat, 23 Jul 2011 16:32:37 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
> 1) To require AC_SYS_LARGEFILE, and a module dependency to 'largefile'.
> This will make statvfs() use a 64-bit f_blocks on
> glibc/Hurd, MacOS X >= 10.4, HP-UX, Solaris.
Here's the first proposed patch. I verified that
- on HP-UX 11.00 and 11.31, Solaris 7 and 10, it causes statvfs() to be used
again:
checking for statvfs function (SVR4)... no
becomes
checking for statvfs function (SVR4)... yes
Since the check_f_blocks_size is in place, it proves that this causes
f_blocks to be 64-bit.
- on MacOS X 10.5, it causes fsusage.o to call statfs$INODE64 instead of
statfs, thus also supporting large volumes.
2011-07-23 Bruno Haible <address@hidden>
fsusage: Enable large volume support on glibc/Hurd, HP-UX, Solaris,
MacOS X.
* m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
* modules/fsusage (Depends-on): Add largefile.
--- m4/fsusage.m4.orig Sat Jul 23 16:25:19 2011
+++ m4/fsusage.m4 Sat Jul 23 16:24:57 2011
@@ -1,4 +1,4 @@
-# serial 28
+# serial 29
# Obtaining file system usage information.
# Copyright (C) 1997-1998, 2000-2001, 2003-2011 Free Software Foundation, Inc.
@@ -29,6 +29,12 @@
AC_DEFUN([gl_FILE_SYSTEM_USAGE],
[
+dnl Enable large-file support. This has the effect of changing the size
+dnl of field f_blocks in 'struct statvfs' from 32 bit to 64 bit on
+dnl glibc/Hurd, HP-UX 11, Solaris (32-bit mode). It also changes the size
+dnl of field f_blocks in 'struct statfs' from 32 bit to 64 bit on
+dnl MacOS X >= 10.5 (32-bit mode).
+AC_REQUIRE([AC_SYS_LARGEFILE])
AC_MSG_NOTICE([checking how to get file system space usage])
ac_fsusage_space=no
--- modules/fsusage.orig Sat Jul 23 16:25:19 2011
+++ modules/fsusage Sat Jul 23 16:06:17 2011
@@ -7,6 +7,7 @@
m4/fsusage.m4
Depends-on:
+largefile
stdbool
stdint
full-read [test $gl_cv_fs_space = yes]
--
In memoriam Adam Czerniaków <http://en.wikipedia.org/wiki/Adam_Czerniaków>
- bug#9141: [PATCH 1/3] extensions: Enable extensions on MacOS X 10.5 and later., (continued)
bug#9141: fdatasync module proposal, Paul Eggert, 2011/07/22
bug#9140: Coreutils Bug on OSX 10.7 (Lion), Paul Eggert, 2011/07/21
- bug#9140: Coreutils Bug on OSX 10.7 (Lion), Herb Wartens, 2011/07/21
- bug#9140: Coreutils Bug on OSX 10.7 (Lion), Paul Eggert, 2011/07/22
- bug#9140: Coreutils Bug on OSX 10.7 (Lion), Jim Meyering, 2011/07/22
- bug#9140: Coreutils Bug on OSX 10.7 (Lion), Bruno Haible, 2011/07/23
- bug#9140: fsusage: add large volume support on glibc/Hurd, HP-UX 11, Solaris, MacOS X,
Bruno Haible <=
- bug#9140: fsusage: add large volume support on glibc/Hurd, HP-UX 11, Solaris, MacOS X, Jim Meyering, 2011/07/23
- bug#9140: fsusage: revert unintended change on AIX, Cygwin, Interix, Bruno Haible, 2011/07/23
- bug#9140: fsusage: revert unintended change on AIX, Cygwin, Interix, Jim Meyering, 2011/07/23
bug#9140: Coreutils Bug on OSX 10.7 (Lion), Jim Meyering, 2011/07/23
bug#9140: fsusage: add large volume support on AIX, Bruno Haible, 2011/07/23
bug#9140: fsusage: add large volume support on AIX, Paul Eggert, 2011/07/23
bug#9140: fsusage: add large volume support on AIX, Bruno Haible, 2011/07/24
bug#9140: fsusage: add large volume support on AIX, Jim Meyering, 2011/07/24
bug#9140: Coreutils Bug on OSX 10.7 (Lion), Bruno Haible, 2011/07/24
bug#9140: Coreutils Bug on OSX 10.7 (Lion), Paul Eggert, 2011/07/25