Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6635937iob; Wed, 11 May 2022 01:53:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYmJxgRyVkRzd44u9xZIlKD30SJYsY5tjG2oX5vSr/8G4Kmr8LjmPFwkdhrYbZ+qEzpmv0 X-Received: by 2002:a17:907:1c0f:b0:6f5:fd1:39cd with SMTP id nc15-20020a1709071c0f00b006f50fd139cdmr23943500ejc.516.1652259196758; Wed, 11 May 2022 01:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652259196; cv=none; d=google.com; s=arc-20160816; b=WTLK1rjF0Mcf5SlLffUNMwPGPeXflo4ycHZJpo6nlJe+RW/83h9dTT7LvMoYdbA9vv PD93RCTxQFwVBUUPC17ucNzzmebhKAVztxRqUlO/Ylj1cg5K4zDWmgLNDiMLWMhjo4Ss ORQ3WnjEg7Ov2aKmNeUERSN0ireh9evf/4bVotvzuK0XgPR5DYR7o8AYOMmDSeu39una a3bzqJW7Kzi9GjNxShUG79ZZYiszxYUA37gffX09/eA2seOR5BnNSIPYdN1t2ZnUkiAe ZbxarGiUC7VnjULb0o7C+Wek05npWIN1VBluagVZl9o8y0+xkiuw/txTHJs5gXGgKbDb 7qMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Cql7hWPMpwkxr2WZ63RnHCoEyq5kNLOgvXpNPmzbk1w=; b=Riq0kCU4Tf09rlI7b47ixoOhZNTvyK/6ixs1VasJzf3AJVoYwCHpM7G1oXdyR6PzBM ZtUZKNhCZGteO0O3UrM/G2tJntqlidAulaPVlnAlYRPaN8Q4FAz7JD4jefQcE7vZz33G zlLL2qEg3Z6dR2NWXy8Q1pOFWYPDMozWyzmAI9ivafbnpA3/Hife6Plh2Xx65bAy1eX+ ji56vHRVZlfJRSEDGVcPFiL2ddHSgCuAnxY/qxZuUWcE7cq7WPO6SkUnK+kmOveIitp4 kXoqXfLfU2rX14RShRin/d4pveJAQ/FPiQeWO6d1MWs91LmhD7cGdgVmHUctwC1JkCEn Iw2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T5yxDdYR; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x22-20020a05640226d600b00427ccd4bea2si1866095edd.451.2022.05.11.01.52.49; Wed, 11 May 2022 01:53:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T5yxDdYR; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243643AbiEKI1H (ORCPT + 99 others); Wed, 11 May 2022 04:27:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243656AbiEKI1G (ORCPT ); Wed, 11 May 2022 04:27:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 02B765469D for ; Wed, 11 May 2022 01:27:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652257623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Cql7hWPMpwkxr2WZ63RnHCoEyq5kNLOgvXpNPmzbk1w=; b=T5yxDdYRv1vA9bf3QbPExNuyyzFRKgOtXfrNVBkx0KOO+3AvzXXbRyHxYnGxyuPdGpE/+V RhorvSaaaEOYFhYq96uMUabvglr/xkxObxUsKHr/14XFLklXra+549HqFLEAy2KpKcgWlQ farkcMJzr3dlK1mBd9DYoWsAwlvb7zM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-270-uUAJ_SBVNFmDrRLw2nkpqQ-1; Wed, 11 May 2022 04:27:00 -0400 X-MC-Unique: uUAJ_SBVNFmDrRLw2nkpqQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 21267800882; Wed, 11 May 2022 08:27:00 +0000 (UTC) Received: from fedora (unknown [10.40.194.0]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 717591460E2C; Wed, 11 May 2022 08:26:59 +0000 (UTC) Date: Wed, 11 May 2022 10:26:57 +0200 From: Lukas Czerner To: Eric Biggers Cc: linux-ext4@vger.kernel.org, fstests@vger.kernel.org Subject: Re: [PATCH] ext4: reject the 'commit' option on ext2 filesystems Message-ID: <20220511082657.paviz6qq5aj7i7ti@fedora> References: <20220510183232.172615-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220510183232.172615-1-ebiggers@kernel.org> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, May 10, 2022 at 11:32:32AM -0700, Eric Biggers wrote: > From: Eric Biggers > > The 'commit' option is only applicable for ext3 and ext4 filesystems, > and has never been accepted by the ext2 filesystem driver, so the ext4 > driver shouldn't allow it on ext2 filesystems. > > This fixes a failure in xfstest ext4/053. > > Fixes: 8dc0aa8cf0f7 ("ext4: check incompatible mount options while mounting ext2/3") > Signed-off-by: Eric Biggers Good catch, thanks. Reviewed-by: Lukas Czerner > --- > fs/ext4/super.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/ext4/super.c b/fs/ext4/super.c > index 1847b46af8083..69d67724df24f 100644 > --- a/fs/ext4/super.c > +++ b/fs/ext4/super.c > @@ -1913,6 +1913,7 @@ static const struct mount_opts { > MOPT_EXT4_ONLY | MOPT_CLEAR}, > {Opt_warn_on_error, EXT4_MOUNT_WARN_ON_ERROR, MOPT_SET}, > {Opt_nowarn_on_error, EXT4_MOUNT_WARN_ON_ERROR, MOPT_CLEAR}, > + {Opt_commit, 0, MOPT_NO_EXT2}, > {Opt_nojournal_checksum, EXT4_MOUNT_JOURNAL_CHECKSUM, > MOPT_EXT4_ONLY | MOPT_CLEAR}, > {Opt_journal_checksum, EXT4_MOUNT_JOURNAL_CHECKSUM, > > base-commit: 23e3d7f7061f8682c751c46512718f47580ad8f0 > -- > 2.36.1 >