All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] Large (> 16TiB) volumes revisited
@ 2010-06-23  0:11 Patrick J. LoPresti
  2010-06-23  0:49 ` Joel Becker
  0 siblings, 1 reply; 20+ messages in thread
From: Patrick J. LoPresti @ 2010-06-23  0:11 UTC (permalink / raw)
  To: ocfs2-devel

I have just submitted the following bug report:

http://oss.oracle.com/bugzilla/show_bug.cgi?id=1266

This is formally reporting the issue originally identified (and fixed)
by Robert Smith back in December:

http://www.mail-archive.com/ocfs2-devel at oss.oracle.com/msg04728.html

Specifically, even the latest OCFS2 produces an error when you attempt
to mount a volume larger than 16 TiB:

"ocfs2_initialize_super:2157 ERROR: Volume might try to write to
blocks beyond what jbd can address in 32 bits."

I would like to use large volumes in production later this year or
early next, so I am interested in seeing this issue resolved so I can
begin testing.  I believe this check in fs/ocfs2/super.c is the only
known issue standing in the way of large volume support for OCFS2.  I
want to submit a patch to fix it.

The simplest approach is just to delete the check, like so:

diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 0eaa929..0ba41f3 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -2215,14 +2215,6 @@ static int ocfs2_initialize_super(struct super_block *sb,
                goto bail;
        }

-       if (ocfs2_clusters_to_blocks(osb->sb, le32_to_cpu(di->i_clusters) - 1)
-           > (u32)~0UL) {
-               mlog(ML_ERROR, "Volume might try to write to blocks beyond "
-                    "what jbd can address in 32 bits.\n");
-               status = -EINVAL;
-               goto bail;
-       }
-
        if (ocfs2_setup_osb_uuid(osb, di->id2.i_super.s_uuid,
                                 sizeof(di->id2.i_super.s_uuid))) {
                mlog(ML_ERROR, "Out of memory trying to setup our uuid.\n");


Questions for the list:

1) Is this patch sufficient?  Or should I try to modify the check to
take into account the cluster size?  Anything else I need to check
here (e.g. inode64 mount option)?

2) Should mkfs.ocfs2 contain a similar check?  (It may already; I have
not looked yet...)

 - Pat

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

end of thread, other threads:[~2010-06-29 20:22 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-23  0:11 [Ocfs2-devel] Large (> 16TiB) volumes revisited Patrick J. LoPresti
2010-06-23  0:49 ` Joel Becker
2010-06-23  1:12   ` Patrick J. LoPresti
2010-06-23  1:36     ` Joel Becker
2010-06-24  0:04       ` Patrick J. LoPresti
2010-06-24  0:14         ` Joel Becker
2010-06-24  0:45           ` Patrick J. LoPresti
2010-06-24  0:55             ` Joel Becker
2010-06-24 16:53               ` Patrick J. LoPresti
2010-06-24 23:53                 ` Patrick J. LoPresti
2010-06-26 16:49                   ` Patrick J. LoPresti
2010-06-27 19:02                     ` Patrick J. LoPresti
2010-06-28 22:32                       ` Patrick J. LoPresti
2010-06-29  0:47                         ` Sunil Mushran
2010-06-29  1:15                           ` Patrick J. LoPresti
2010-06-29  1:54                             ` Sunil Mushran
2010-06-29  2:50                               ` Patrick J. LoPresti
2010-06-29  4:21                                 ` Sunil Mushran
2010-06-29 19:43                                   ` Patrick J. LoPresti
2010-06-29 20:22                                     ` Sunil Mushran

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.