[Ocfs2-devel] [PATCH] OCFS2: Allow huge (> 16 TiB) volumes to mount
Patrick J. LoPresti
lopresti at gmail.com
Tue Jul 6 17:13:27 PDT 2010
On Tue, Jul 6, 2010 at 1:04 PM, Joel Becker <Joel.Becker at oracle.com> wrote:
>
> Thus, I propose the following jbd2 patch. jbd2 people, what do you
> think:
>
> diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
> index bc2ff59..7922d87 100644
> --- a/fs/jbd2/journal.c
> +++ b/fs/jbd2/journal.c
> @@ -1365,6 +1365,8 @@ int jbd2_journal_check_used_features (journal_t
> *journal,
>
> if (!compat && !ro && !incompat)
> return 1;
> + if (journal_get_superblock(journal))
> + return 0
> if (journal->j_format_version == 1)
> return 0;
As an alternative, could jbd2_journal_init_inode() just call
journal_get_superblock() itself? That would naturally make the
feature bits valid as soon as the journal is initialized. It would
also preserve all error checking, instead of converting superblock
read errors into "this journal has no features".
JBD2 developers, please advise. OCFS2 needs to examine JBD2 journal
feature bits *before* the journal is recovered, which is not possible
at present. What is the best approach to fixing this?
Thanks.
- Pat
More information about the Ocfs2-devel
mailing list