]> git.neil.brown.name Git - history.git/commit
[PATCH] Add system calls statfs64 and fstatfs64
authorAndrew Morton <akpm@digeo.com>
Fri, 20 Jun 2003 15:13:06 +0000 (08:13 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 20 Jun 2003 15:13:06 +0000 (08:13 -0700)
commit244f36266d58f4c26d707fdbcff592209d56aa80
treec10a9aa05d24ed3dcb2f4462bd7edbb28937f26b
parentd717623aa373ea2b4c261c72ff6add6c2ade8234
[PATCH] Add system calls statfs64 and fstatfs64

From: Peter Chubb <peter@chubb.wattle.id.au>

Add two new system calls, statfs64 and fstatfs64.  This has been needed
sincew the 64-bit sector_t merge - the current structures will overflow.

- Use a common interface (vfs_statfs) with the rest of the kernel,

- convert to 32-bit at (f)statfs time.

- New field f_frsize gives underlying fragment size for the filesystem.
  (Solaris has this, and the Open Group describe it).

- The old statfs syscalls will now return -EOVERFLOW if the device was
  too large to be represented inthe old data structures.

The new system calls take a size_t argument, which is the size of the
structure to be filled in (as requested by Ben LaHaise), to `futureproof' the
interface.

Has been reviewed by the arch maintainers and by Ulrich Drepper.
81 files changed:
arch/alpha/kernel/osf_sys.c
arch/i386/kernel/entry.S
arch/ia64/ia32/ia32_entry.S
arch/ia64/kernel/entry.S
arch/ia64/kernel/ivt.S
fs/adfs/super.c
fs/affs/super.c
fs/befs/linuxvfs.c
fs/bfs/inode.c
fs/cifs/cifsfs.c
fs/coda/inode.c
fs/coda/upcall.c
fs/compat.c
fs/cramfs/inode.c
fs/efs/super.c
fs/ext2/super.c
fs/ext3/super.c
fs/fat/inode.c
fs/freevxfs/vxfs_super.c
fs/hfs/super.c
fs/hpfs/hpfs_fn.h
fs/hpfs/super.c
fs/intermezzo/intermezzo_fs.h
fs/isofs/inode.c
fs/jfs/super.c
fs/libfs.c
fs/minix/inode.c
fs/ncpfs/inode.c
fs/nfs/inode.c
fs/nfsd/nfs3xdr.c
fs/nfsd/nfs4xdr.c
fs/nfsd/nfsxdr.c
fs/nfsd/vfs.c
fs/ntfs/super.c
fs/open.c
fs/qnx4/inode.c
fs/reiserfs/super.c
fs/romfs/inode.c
fs/smbfs/inode.c
fs/smbfs/proc.c
fs/smbfs/proto.h
fs/super.c
fs/sysv/inode.c
fs/udf/super.c
fs/ufs/super.c
fs/xfs/linux/xfs_super.c
fs/xfs/linux/xfs_vfs.c
fs/xfs/linux/xfs_vfs.h
fs/xfs/xfs_vfsops.c
include/asm-alpha/statfs.h
include/asm-arm/statfs.h
include/asm-cris/statfs.h
include/asm-generic/statfs.h [new file with mode: 0644]
include/asm-h8300/statfs.h
include/asm-i386/statfs.h
include/asm-i386/unistd.h
include/asm-ia64/compat.h
include/asm-ia64/statfs.h
include/asm-ia64/unistd.h
include/asm-m68k/statfs.h
include/asm-parisc/compat.h
include/asm-parisc/statfs.h
include/asm-ppc/statfs.h
include/asm-ppc64/compat.h
include/asm-ppc64/statfs.h
include/asm-sparc/statfs.h
include/asm-sparc64/statfs.h
include/asm-x86_64/compat.h
include/asm-x86_64/statfs.h
include/linux/coda_psdev.h
include/linux/efs_fs.h
include/linux/ext3_fs.h
include/linux/fs.h
include/linux/msdos_fs.h
include/linux/nfsd/nfsd.h
include/linux/nfsd/xdr.h
include/linux/nfsd/xdr3.h
include/linux/statfs.h [new file with mode: 0644]
include/linux/vfs.h
kernel/acct.c
mm/shmem.c