Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3978764iob; Mon, 2 May 2022 10:02:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzTjz1Sv2rDXVXzJlRstftkm8JiUBRz47vz8PpigNjebpjGMRHUnx9Xl9RpuOIlE6b+N2w X-Received: by 2002:a63:4e45:0:b0:39d:4d2d:815e with SMTP id o5-20020a634e45000000b0039d4d2d815emr10324478pgl.198.1651510931449; Mon, 02 May 2022 10:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651510931; cv=none; d=google.com; s=arc-20160816; b=dgEHlEafC3EcNlsEA1Lteb/GVf7KyiXwNQK5tvwdRLsCw+KVoTikPEGGFkXw+iGCKC ca6K9qMbLV+gVt1oSzsuDnGhn3yHM7lgbn8uPMPXhp8GwTeLoqRVH6AAypARtzqXW6l8 N7WxQG5TMobvr/yC9LpOFh33nwlvCFrypHjo5bGqedPqON4qvbKojBHWKh6Qgtg81w0v 50RL24jOtSpstWxqigs+z66qWwzrhYTall2GI1sxgE8A1h55T/dH6k69+CbGPtXXzpIv Mtc/0wiusDjzHWaQW9tVvNzmXuXlENtCQMilDWLlTNSEteTpVyTfEFsrU+1q4Zuzgk9C Gitg== 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; bh=GBTCREFRzMfMZ9p4BlQaRNPR4rz/P1vS/3ipA+ubBZI=; b=hMkq++iO3GDBiBdKosMs+7yqVH3X4vOwRnSMZuN6NH51Zm9aauuU1MXEijrFCDjfYl ATxNHaRMqTY6yVbla3vORE22ViXrGk/vNqae8gi5HrqBtF6DHIA/MqKjKfSgdjecDiwN uqe/T8NirMMeBLrt3XBDG+AQshqAiLHZXxfcHF1xtIyrXEuiSln2ZlJhA/3vkm/6lm6p p85kGbTY8s5CYfSanTieZ4d9kXLG98T8vbGnBq7t++Psb0wpeVXmzYeq09jLUjUp2ERD F064com9rFMJjJBS6aD0Cuf3qGtHpT1MGs9kQdvaxK2XJuMNo+7EIMVVzo3XfdgrNL0V GENA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a17090282cc00b0015ce750db24si12911778plz.486.2022.05.02.10.01.15; Mon, 02 May 2022 10:02:11 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349364AbiEBMtz (ORCPT + 99 others); Mon, 2 May 2022 08:49:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239224AbiEBMty (ORCPT ); Mon, 2 May 2022 08:49:54 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95ED614000; Mon, 2 May 2022 05:46:25 -0700 (PDT) Received: from penguin.thunk.org (cn-8-34-116-185.paclightwave.com [8.34.116.185] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 242CkG5a001996 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 2 May 2022 08:46:17 -0400 Received: by penguin.thunk.org (Postfix, from userid 1000) id 14746403C0; Mon, 2 May 2022 05:46:12 -0700 (PDT) Date: Mon, 2 May 2022 05:46:11 -0700 From: tytso To: Eric Biggers Cc: fstests@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, Lukas Czerner Subject: Re: [xfstests PATCH 1/2] ext4/053: update the test_dummy_encryption tests Message-ID: References: <20220501051928.540278-1-ebiggers@kernel.org> <20220501051928.540278-2-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220501051928.540278-2-ebiggers@kernel.org> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 Sat, Apr 30, 2022 at 10:19:27PM -0700, Eric Biggers wrote: > > The kernel patch "ext4: only allow test_dummy_encryption when supported" > will tighten the requirements on when the test_dummy_encryption mount > option will be accepted. Update ext4/053 accordingly. One of the problems with ext4/053 is that it is very implementation dependent. It was useful when we were making the change to the new mount API, but the problem is any future changes to the mount option handling is going to break the patch. So for example, the kernel patch which Eric has proposed, "ext4: only allow test_dummy_encryption when supported", breaks ext4/053, which I noted in the review the patch. But then this patch will break kernels as they currently stand without this patch, and for kernels that haven't moved to the new mount API, fixing it is going to be a mess. Perhaps ext4/053 is still useful in that it will flag changes that might unintentionally make user-visible changes mount options handling in ext4, but for cases like this one, where we are changing a mount option which is really intended for kernel developers, perhaps the right approach here is to just remove the parts of ext4/053 that are testing the behaviour of test_dummy_encryption in such a super-nit-picky way? What do folks think? > Move the test cases to later in the file to group them with the other > test cases that use do_mkfs to add custom mkfs options instead of using > the "default" filesystem that the test creates at the beginning. Note: this patch doesn't apply because ext4/053 currently has this line: not_mnt test_dummy_encryption=v3 and the patch is trying to remove this line in the first patch chunk: mnt test_dummy_encryption=v3 ^test_dummy_encryption=v3 I checked the upstream version of ext4/053 just in case I had some local modification of ext4/053 in my tree via "git diff -r origin/master tests/ext4/053" but that returned no deltas. Eric, do you have a local modification to this test in your tree already, perhaps? - Ted