Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755537Ab0GGANd (ORCPT ); Tue, 6 Jul 2010 20:13:33 -0400 Received: from mail-vw0-f46.google.com ([209.85.212.46]:51396 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755008Ab0GGAN2 convert rfc822-to-8bit (ORCPT ); Tue, 6 Jul 2010 20:13:28 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=sfi64BrY4FnNpkgQTQAZeK4kkqvTZ2wM7AZWBKxzaNDpvgRtdPdoIJQ5QkDEugGSnc qjFMs1EBKBCb8xJj6ZBvZZkUh25uz54Cb2hfecWMIWyVV5MCsPseNKsxVvb2umYCCvn+ dF95POnITwhfc5OdrE3P0cXUHyhWGx5morQFY= MIME-Version: 1.0 In-Reply-To: <20100706200438.GF17961@mail.oracle.com> References: <87mxud74tw.fsf@gmail.com> <20100706200438.GF17961@mail.oracle.com> Date: Tue, 6 Jul 2010 17:13:27 -0700 Message-ID: Subject: Re: [Ocfs2-devel] [PATCH] OCFS2: Allow huge (> 16 TiB) volumes to mount From: "Patrick J. LoPresti" To: ocfs2-devel@oss.oracle.com, linux-kernel@vger.kernel.org, Jan Kara , linux-ext4@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1364 Lines: 37 On Tue, Jul 6, 2010 at 1:04 PM, Joel Becker 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/