All of lore.kernel.org
 help / color / mirror / Atom feed
* ReiserFS Maximum file size (in practice)
@ 2004-05-18 20:40 Jeff Mahoney
  2004-05-19  0:45 ` Chris Mason
  2004-05-19  5:39 ` Hans Reiser
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Mahoney @ 2004-05-18 20:40 UTC (permalink / raw)
  To: Reiserfs mail-list

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]


Hey all -

The ReiserFS FAQ that we quote and point people to when they ask 
questions about limits in ReiserFS states that the maxmimum file size 
for a reiserfs v3 filesystem is 2^60-1. However, the actual limits, in 
practice, are far less.

I tried to create a 3 TB sparse file, and ended up getting told it was 
too large. 2 TB was too large also, just under 2 TB was ok.

This is a result of super->s_maxbytes = (512LL << 32) - s->s_blocksize;, 
in fs/reiserfs/super.c, which is set so that i_blocks isn't overflowed.

Other filesystems that have the ability to cross the 2 TB limit on file 
sizes simply ignore the limit and allow i_blocks to wrap. There's really 
no reason we can't do the same.

The patch is attached.

-Jeff

-- 
Jeff Mahoney
SuSE Labs

[-- Attachment #2: reiserfs-large-file.diff --]
[-- Type: text/plain, Size: 402 bytes --]

--- linux-2.6.5/fs/reiserfs/super.c	2004-05-14 15:32:49.000000000 -0400
+++ linux-2.6.5.fix/fs/reiserfs/super.c	2004-05-18 12:07:25.000000000 -0400
@@ -1204,7 +1204,7 @@
     /* new format is limited by the 32 bit wide i_blocks field, want to
     ** be one full block below that.
     */
-    s->s_maxbytes = (512LL << 32) - s->s_blocksize ;
+    s->s_maxbytes = MAX_LFS_FILESIZE;
     return 0;
 }
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-05-19 20:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-18 20:40 ReiserFS Maximum file size (in practice) Jeff Mahoney
2004-05-19  0:45 ` Chris Mason
2004-05-19  8:33   ` Alex Zarochentsev
2004-05-19 12:13   ` Jeffrey Mahoney
2004-05-19 12:57     ` Chris Mason
2004-05-19 20:04       ` Jeff Mahoney
2004-05-19  5:39 ` Hans Reiser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.