Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3318829iob; Sun, 1 May 2022 13:25:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQlze8yBsKmUiBOvRdMXrw5h/+KIN6pVfExbqLTRnbjJQZhT23jsGKdL48/HiiQVmlGrrA X-Received: by 2002:a2e:8245:0:b0:24b:48b1:a1ab with SMTP id j5-20020a2e8245000000b0024b48b1a1abmr6234897ljh.152.1651436740436; Sun, 01 May 2022 13:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651436740; cv=none; d=google.com; s=arc-20160816; b=gDL4JH+LfsN4oUItGFmMmQeqt8Nw+zt0M+EfGTaRnPYOWO6mzh3MmMeSWAptCOjkp5 iq6ztvj87ifZG9vAs8BUV53fD6OjTWAvA4yiZCkTHlJ+jIhSsj1ipFtQIK2GbK1Z/yfA jQxZIaJOoH1D155T+P2tGMUs033++uUQxhrpKqRs7mac8ejCMfs0BR3tBu4okZRLElOb J0xHifyQLf96E3/jnk9o3XwuWpndhthQ0Ghp6tQ88hFHN2tfVYvBmj0eqvAogHGghCqS YUKBL+rnCnivviCOEf4YkL6D/EXES8c+q4rqEwS6ZMCnhdUIbOEPw8g8bMy2rPYarcCe of3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Iwo3URKlmF9vflr6VsMWwCmNCYduT/gf+XpxZ1XRMNQ=; b=GI62uAaxvT30AuQuOPGdOGkvN0Zi09jUCZ93op77gnpMM0rZwBMzb0KetOYAWBtAhf GgT3T70jsSHKHqL/jtQBQUlES96gnayt6F/78JLNvj+vXIiO6TGy60Zm0ax2i1c8grFH LxzvxZlSg5GC+N8Zqyk7qYA3hcDvZiQssfFwtO8v4zshpK2cHrk5aoQuJawUDCY3c7CL nXZ3TzUrtkUIkRUoYSLUzayOasCZ3I2Q9ONoCBVMpAPeB7tKb+LgBRiZZgdHHV/KDv35 iSbpshT7awtZzoFvFDwBnZzwCllXXNOxgYpAKOdwcpkuxbsUGONcf78gvW6JODt0QzdU ZTWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IZXy0A8y; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a0565123f1200b0047231efcdbfsi14406220lfa.286.2022.05.01.13.24.59; Sun, 01 May 2022 13:25:40 -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=@kernel.org header.s=k20201202 header.b=IZXy0A8y; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241046AbiEAFY6 (ORCPT + 99 others); Sun, 1 May 2022 01:24:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241129AbiEAFYx (ORCPT ); Sun, 1 May 2022 01:24:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CFC813D4A; Sat, 30 Apr 2022 22:21:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2AB0DB80CB7; Sun, 1 May 2022 05:21:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D6D0C385A9; Sun, 1 May 2022 05:21:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651382486; bh=jqXB6Jkq9HrDfu4rbkwhKs3qEhNsFNKmueB2odaCHew=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IZXy0A8ysk0ShzbALiZZJWmt/Y/PUvx93pim0D8oXHV+wX7dB7BDoCtumgSj+bwhu w8MDeR7PBQkGwx036fWilzUoE37oMZHUdKOeJzjXVJxCHs0hGWeQDUrNwENRTu0xSP zSUGZmXbj6Ii0RVfkOhy0cqE8qjUkhjX++/gs07zDW8DnNVnI1ANr7v5E46VTZKdY5 iKgGUn/y5A5LxerpOlUETfiQH1HGUZWPD8KCqc/SSTU+ZpEMzRDSMnuZ2/GvwyYofj bO+SbXhh0+DyWuV3INC09myXanTsYd05mb40xfz2UecOh9OIZXxgh7p4UGV0PDtFIk kbg4ZIFliKSIw== From: Eric Biggers To: fstests@vger.kernel.org Cc: linux-fscrypt@vger.kernel.org, linux-ext4@vger.kernel.org, Lukas Czerner Subject: [xfstests PATCH 2/2] ext4/053: test changing test_dummy_encryption on remount Date: Sat, 30 Apr 2022 22:19:28 -0700 Message-Id: <20220501051928.540278-3-ebiggers@kernel.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220501051928.540278-1-ebiggers@kernel.org> References: <20220501051928.540278-1-ebiggers@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 From: Eric Biggers The test_dummy_encryption mount option isn't supposed to be settable or changeable via a remount, so add test cases for this. Signed-off-by: Eric Biggers --- tests/ext4/053 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ext4/053 b/tests/ext4/053 index 84f3eab9..3d530953 100755 --- a/tests/ext4/053 +++ b/tests/ext4/053 @@ -686,6 +686,9 @@ for fstype in ext2 ext3 ext4; do mnt test_dummy_encryption=v2 not_mnt test_dummy_encryption=bad not_mnt test_dummy_encryption= + # Can't be set or changed on remount. + mnt_then_not_remount defaults test_dummy_encryption + mnt_then_not_remount test_dummy_encryption=v1 test_dummy_encryption=v2 do_mkfs -O ^encrypt $SCRATCH_DEV ${SIZE}k fi not_mnt test_dummy_encryption -- 2.36.0