($INBOX_DIR/description missing)
 help / color / Atom feed
* [xfstests-bld PATCH] test-appliance: add ext4/encrypt_1k test config
@ 2019-10-16 22:15 Eric Biggers
  2019-10-21 19:30 ` Theodore Y. Ts'o
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Biggers @ 2019-10-16 22:15 UTC (permalink / raw)
  To: linux-ext4; +Cc: linux-fscrypt, Chandan Rajendra

From: Eric Biggers <ebiggers@google.com>

Add a test configuration to allow testing ext4 encryption with 1k
blocks, which kernel patches have been proposed to support.

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 .../files/root/fs/ext4/cfg/encrypt_1k         |  5 ++++
 .../files/root/fs/ext4/cfg/encrypt_1k.exclude | 27 +++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 kvm-xfstests/test-appliance/files/root/fs/ext4/cfg/encrypt_1k
 create mode 100644 kvm-xfstests/test-appliance/files/root/fs/ext4/cfg/encrypt_1k.exclude

diff --git a/kvm-xfstests/test-appliance/files/root/fs/ext4/cfg/encrypt_1k b/kvm-xfstests/test-appliance/files/root/fs/ext4/cfg/encrypt_1k
new file mode 100644
index 0000000..5e97cc0
--- /dev/null
+++ b/kvm-xfstests/test-appliance/files/root/fs/ext4/cfg/encrypt_1k
@@ -0,0 +1,5 @@
+SIZE=small
+export EXT_MKFS_OPTIONS="-O encrypt -b 1024"
+export EXT_MOUNT_OPTIONS="test_dummy_encryption"
+REQUIRE_FEATURE=encryption
+TESTNAME="Ext4 encryption 1k block"
diff --git a/kvm-xfstests/test-appliance/files/root/fs/ext4/cfg/encrypt_1k.exclude b/kvm-xfstests/test-appliance/files/root/fs/ext4/cfg/encrypt_1k.exclude
new file mode 100644
index 0000000..e31c371
--- /dev/null
+++ b/kvm-xfstests/test-appliance/files/root/fs/ext4/cfg/encrypt_1k.exclude
@@ -0,0 +1,27 @@
+# These tests are also excluded in encrypt.exclude.
+# See there for the reasons.
+ext4/004
+ext4/022
+ext4/026
+generic/082
+generic/219
+generic/230
+generic/231
+generic/232
+generic/233
+generic/235
+generic/270
+generic/382
+generic/204
+
+# These tests are also excluded in 1k.exclude.
+# See there for the reasons.
+ext4/034
+generic/273
+generic/454
+
+# These tests use _scratch_populate_cached() which tries to create a 1023-byte
+# symlink, which fails with encrypt_1k because encrypted symlinks are limited to
+# blocksize-3 bytes, not blocksize-1 as is the case for no encryption.
+ext4/023
+ext4/028
-- 
2.23.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [xfstests-bld PATCH] test-appliance: add ext4/encrypt_1k test config
  2019-10-16 22:15 [xfstests-bld PATCH] test-appliance: add ext4/encrypt_1k test config Eric Biggers
@ 2019-10-21 19:30 ` Theodore Y. Ts'o
  2019-10-21 19:30   ` Theodore Y. Ts'o
  0 siblings, 1 reply; 3+ messages in thread
From: Theodore Y. Ts'o @ 2019-10-21 19:30 UTC (permalink / raw)
  To: Eric Biggers; +Cc: linux-ext4, linux-fscrypt, Chandan Rajendra

On Wed, Oct 16, 2019 at 03:15:52PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> Add a test configuration to allow testing ext4 encryption with 1k
> blocks, which kernel patches have been proposed to support.
> 
> Signed-off-by: Eric Biggers <ebiggers@google.com>

Thanks, applied.

					- Ted

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [xfstests-bld PATCH] test-appliance: add ext4/encrypt_1k test config
  2019-10-21 19:30 ` Theodore Y. Ts'o
@ 2019-10-21 19:30   ` Theodore Y. Ts'o
  0 siblings, 0 replies; 3+ messages in thread
From: Theodore Y. Ts'o @ 2019-10-21 19:30 UTC (permalink / raw)
  To: Eric Biggers; +Cc: linux-ext4, linux-fscrypt, Chandan Rajendra

On Wed, Oct 16, 2019 at 03:15:52PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> Add a test configuration to allow testing ext4 encryption with 1k
> blocks, which kernel patches have been proposed to support.
> 
> Signed-off-by: Eric Biggers <ebiggers@google.com>

Thanks, applied.

					- Ted

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16 22:15 [xfstests-bld PATCH] test-appliance: add ext4/encrypt_1k test config Eric Biggers
2019-10-21 19:30 ` Theodore Y. Ts'o
2019-10-21 19:30   ` Theodore Y. Ts'o

($INBOX_DIR/description missing)

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-fscrypt/0 linux-fscrypt/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-fscrypt linux-fscrypt/ https://lore.kernel.org/linux-fscrypt \
		linux-fscrypt@vger.kernel.org
	public-inbox-index linux-fscrypt

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-fscrypt


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git