Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5750799iob; Tue, 10 May 2022 02:50:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzDMA9qe72gxnECHZTrZku/ijHxWm9oIdmt5AJvfn+hYSGAgGOkFYoz2e8H/ge39/qu/be X-Received: by 2002:a17:90b:610:b0:1d9:4008:cfee with SMTP id gb16-20020a17090b061000b001d94008cfeemr22654572pjb.71.1652176209902; Tue, 10 May 2022 02:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652176209; cv=none; d=google.com; s=arc-20160816; b=MR1rdpwx2bynH38azIeCSOtMRRCtM1AOZk2J2VlbrUiNfpngZdEjj5gYmUD9cXGsbw zWOQD9mRM/yvZgvCXf3T0PKpDT+9kARxed/LSH2GUzCVeGof/BLNTXbKF9NwyBIB5pg7 jd4mCf8uyyVWytaXFrXTixcf6IPm68qTS63qHpz3U2diIbLvlJSAb3Xf4EQc/6uwkQA3 Vhg3pkRgCgahIzEL94Yj3jMaQIl7vXnnTYGhAExQNTvLaH3q3u7FHKxhM5UqQCt+zWAV /9iKeOIf8ENQOl8Wpwt3P0eNLSzn8f/LakkDii4IA+vOuXt+1pslSPzh4YYHCjuvlaYE As9Q== 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=7oZv0qDe8PoR2IcozjQ8ABMi0/YE7k7caegZ0ltZM3c=; b=JOxVLPNsqeKek7wTfBtugv8dTtaM32jFltxniSDCgJELfubgS5b+vcI2tVYQi2wEYb UhT5DmW/NbnpiNgUj2kNoaf4haUhKHmODmyy19MUb6/fjUp3GHmgCbhvbTpJQDwiWSnV p2dswEr/+soIsXHAK6BuX+xEgbWpHuo6Mk8nPLyzGmqJ4m9626uGecc1xOXB229Nm+iY 5k+ARlK4NeSM4mawDd794LvyTuz7/Y7G4+8tTu4Brry/6MNwVZj1ebuPg2NzhaGlckrR 6nzgQ90H1IGWPih5JCeSG5PnaUQIrcsTgnPlIS76Jqdb71kJVeNhmevIuH6z+EKzGvdS mqWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fqxve5YU; 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 hk10-20020a17090b224a00b001d960c22782si2659264pjb.158.2022.05.10.02.49.49; Tue, 10 May 2022 02:50:09 -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=fqxve5YU; 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 S232557AbiEJJrL (ORCPT + 99 others); Tue, 10 May 2022 05:47:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232618AbiEJJrK (ORCPT ); Tue, 10 May 2022 05:47:10 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DC46E6A42B for ; Tue, 10 May 2022 02:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652175793; 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=7oZv0qDe8PoR2IcozjQ8ABMi0/YE7k7caegZ0ltZM3c=; b=fqxve5YUuVxOwA/MF3tRMyiK4ijYLcaqHxLljzGPI8CcYHmYpWGWcKwLoQ3+abDzdR7Su9 TU051qIgNusf3p+fIdGFi3SJ8SQDCtOm3CxI1jJaydQlK244HMj531rvEEMX8U4HGpB3Pv nuUqWPRUq1wjcThLLlFgIADsmRT2kpE= 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-483-Jh8by8wSN_ORnc3JoBFF4w-1; Tue, 10 May 2022 05:43:11 -0400 X-MC-Unique: Jh8by8wSN_ORnc3JoBFF4w-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6E7AB811E75; Tue, 10 May 2022 09:43:11 +0000 (UTC) Received: from fedora (unknown [10.40.193.237]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BE2BB417E3F; Tue, 10 May 2022 09:43:10 +0000 (UTC) Date: Tue, 10 May 2022 11:43:08 +0200 From: Lukas Czerner To: Eric Biggers Cc: fstests@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: [xfstests PATCH] ext4/053: fix the rejected mount option testing Message-ID: <20220510094308.mhzvcgq5wrat5qao@fedora> References: <20220430192130.131842-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 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=ham 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 Mon, May 09, 2022 at 04:42:03PM -0700, Eric Biggers wrote: > On Sat, Apr 30, 2022 at 12:21:30PM -0700, Eric Biggers wrote: > > From: Eric Biggers > > > > 'not_mnt OPTIONS' seems to have been intended to test that the > > filesystem cannot be mounted at all with the given OPTIONS, meaning that > > the mount fails as opposed to the options being ignored. However, this > > doesn't actually work, as shown by the fact that the test case 'not_mnt > > test_dummy_encryption=v3' is passing in the !CONFIG_FS_ENCRYPTION case. > > Actually ext4 ignores this mount option when !CONFIG_FS_ENCRYPTION. > > (The ext4 behavior might be changed, but that is besides the point.) > > > > The problem is that the do_mnt() helper function is being misused in a > > context where a mount failure is expected, and it does some additional > > remount tests that don't make sense in that context. So if the mount > > unexpectedly succeeds, then one of these later tests can still "fail", > > causing the unexpected success to be shadowed by a later failure, which > > causes the overall test case to pass since it expects a failure. > > > > Fix this by reworking not_mnt() and not_remount_noumount() to use > > simple_mount() in cases where they are expecting a failure. Also fix > > up some of the naming and calling conventions to be less confusing. > > Finally, make sure to test that remounting fails too, not just mounting. > > > > Signed-off-by: Eric Biggers > > --- > > tests/ext4/053 | 148 ++++++++++++++++++++++++++----------------------- > > 1 file changed, 78 insertions(+), 70 deletions(-) > > Lukas, any thoughts on this patch? You're the author of this test. > > - Eric Haven't tested it myself but the change looks fine, thanks. You can add Reviewed-by: Lukas Czerner