From fc307cc932f992369c27966eaf193e63a73c6afd Mon Sep 17 00:00:00 2001 From: braam Date: Thu, 8 Nov 2001 19:54:43 +0000 Subject: [PATCH] Two small changes to support large files. - internally open files with O_LARGEFILE - s_maxbytesize set to 64G (should do info for that). --- lustre/obdfs/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/obdfs/super.c b/lustre/obdfs/super.c index 7a2fa4e..f569f30 100644 --- a/lustre/obdfs/super.c +++ b/lustre/obdfs/super.c @@ -228,6 +228,8 @@ static struct super_block * obdfs_read_super(struct super_block *sb, } CDEBUG(D_INFO, "\n"); + sb->s_maxbytes = 1LL << 36; + printk("Max bytes: %Lx\n", sb->s_maxbytes); sb->s_blocksize = PAGE_SIZE; sb->s_blocksize_bits = (unsigned char)PAGE_SHIFT; sb->s_magic = OBDFS_SUPER_MAGIC; -- 1.8.3.1