about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-04-16 14:17:29 +0000
committerUlrich Drepper <drepper@redhat.com>1999-04-16 14:17:29 +0000
commit7d17e925e92cf4f801ac7c82c8e12b06096828e7 (patch)
treed78f103acd59586921c57f7b116c221c6d5b6e29 /sysdeps
parentafab401e5fafc55d0fa0ae93329dac8e6783cc2d (diff)
downloadglibc-7d17e925e92cf4f801ac7c82c8e12b06096828e7.tar.gz
glibc-7d17e925e92cf4f801ac7c82c8e12b06096828e7.tar.xz
glibc-7d17e925e92cf4f801ac7c82c8e12b06096828e7.zip
Update.
1999-04-15  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* sysdeps/unix/sysv/linux/fstatvfs.c: Set f_frsize to zero.  Don't
	include "linux_fsinfo.h".
	Based on a patch by H.J. Lu <hjl@gnu.org>.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/fstatvfs.c37
1 files changed, 3 insertions, 34 deletions
diff --git a/sysdeps/unix/sysv/linux/fstatvfs.c b/sysdeps/unix/sysv/linux/fstatvfs.c
index 11f6f8eb44..3192c20d0b 100644
--- a/sysdeps/unix/sysv/linux/fstatvfs.c
+++ b/sysdeps/unix/sysv/linux/fstatvfs.c
@@ -26,8 +26,6 @@
 #include <sys/statfs.h>
 #include <sys/statvfs.h>
 
-#include "linux_fsinfo.h"
-
 
 int
 fstatvfs (int fd, struct statvfs *buf)
@@ -52,38 +50,9 @@ fstatvfs (int fd, struct statvfs *buf)
 
   /* What remains to do is to fill the fields f_frsize, f_favail,
      and f_flag.  */
-  switch (fsbuf.f_type)
-    {
-    case EXT2_SUPER_MAGIC:
-      /* This is not really correct since the fragment size can vary.  */
-      buf->f_frsize = 1024;
-      break;
-
-    case ADFS_SUPER_MAGIC:
-    case AFFS_SUPER_MAGIC:
-    case CODA_SUPER_MAGIC:
-    case HPFS_SUPER_MAGIC:
-    case ISOFS_SUPER_MAGIC:
-    case MINIX_SUPER_MAGIC:
-    case MINIX_SUPER_MAGIC2:
-    case MINIX2_SUPER_MAGIC:
-    case MINIX2_SUPER_MAGIC2:
-    case MSDOS_SUPER_MAGIC:
-    case NCP_SUPER_MAGIC:
-    case NFS_SUPER_MAGIC:
-    case PROC_SUPER_MAGIC:
-    case SMB_SUPER_MAGIC:
-    case XENIX_SUPER_MAGIC:
-    case SYSV4_SUPER_MAGIC:
-    case SYSV2_SUPER_MAGIC:
-    case COH_SUPER_MAGIC:
-    case UFS_MAGIC:
-    case UFS_CIGAM:
-    default:
-      /* I hope it's safe to assume no fragmentation.  */
-      buf->f_frsize = buf->f_bsize;
-      break;
-    }
+
+  /* Linux does not support f_frsize, so set it to zero.  */
+  buf->f_frsize = 0;
 
   /* XXX I have no idea how to compute f_favail.  Any idea???  */
   buf->f_favail = buf->f_ffree;