mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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>.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
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>.
|
||||||
|
|
||||||
1999-04-16 Thorsten Kukuk <kukuk@suse.de>
|
1999-04-16 Thorsten Kukuk <kukuk@suse.de>
|
||||||
|
|
||||||
* sunrpc/rpc_cout.c (print_header): Use int32_t pointer, not long.
|
* sunrpc/rpc_cout.c (print_header): Use int32_t pointer, not long.
|
||||||
|
@ -26,8 +26,6 @@
|
|||||||
#include <sys/statfs.h>
|
#include <sys/statfs.h>
|
||||||
#include <sys/statvfs.h>
|
#include <sys/statvfs.h>
|
||||||
|
|
||||||
#include "linux_fsinfo.h"
|
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
fstatvfs (int fd, struct statvfs *buf)
|
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,
|
/* What remains to do is to fill the fields f_frsize, f_favail,
|
||||||
and f_flag. */
|
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:
|
/* Linux does not support f_frsize, so set it to zero. */
|
||||||
case AFFS_SUPER_MAGIC:
|
buf->f_frsize = 0;
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* XXX I have no idea how to compute f_favail. Any idea??? */
|
/* XXX I have no idea how to compute f_favail. Any idea??? */
|
||||||
buf->f_favail = buf->f_ffree;
|
buf->f_favail = buf->f_ffree;
|
||||||
|
Reference in New Issue
Block a user