Whamcloud - gitweb
Change internal statfs calls to pass struct obd_statfs as a parameter
authoradilger <adilger>
Sat, 7 Sep 2002 07:52:46 +0000 (07:52 +0000)
committeradilger <adilger>
Sat, 7 Sep 2002 07:52:46 +0000 (07:52 +0000)
commit9ac6ef3e18cb7977224d411d11ba03b7dcc6d40b
treec552bfd6a3b4c393b03105c42b1ad63868991c09
parent400f57899a671acc7b8643a6d261cb5d8623d8cd
Change internal statfs calls to pass struct obd_statfs as a parameter
instead of the Linux struct statfs.  This allows us to have 64-bit
clean statfs data all the way to the VFS, and avoids problems like
block count overflows in intermediate math in LOV and such.

We still need to resolve the VFS interface to statfs, as it limits the
output to 16TB on 32-bit platforms (4G x 4kb blocks).  The likely
answer is to shift the blocksize up, and the blocks counts down until
we fit in under 4G total blocks.  For MCR this will be around a blocksize
of 64kB which is nice to specify as the block size anyways.
13 files changed:
lustre/include/linux/lustre_lib.h
lustre/include/linux/lustre_mds.h
lustre/include/linux/obd.h
lustre/include/linux/obd_class.h
lustre/lib/ll_pack.c
lustre/llite/super.c
lustre/lov/lov_obd.c
lustre/mdc/mdc_request.c
lustre/mds/handler.c
lustre/obdfilter/Makefile.am
lustre/obdfilter/filter.c
lustre/osc/osc_request.c
lustre/ost/ost_handler.c