public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] statx09: Reduce fs-verity blocksize to 1024
@ 2023-07-13 13:28 Martin Doucha
  2023-07-14  3:40 ` Eric Biggers
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Doucha @ 2023-07-13 13:28 UTC (permalink / raw)
  To: Dai Shili, ltp

The kernel requires that fs-verity blocksize must be at most equal
to the filesystem blocksize. Testing on small loop device means that
mkfs.ext4 will very likely default to blocksize of 1024. Set fs-verity
blocksize to the minimum possible value (1024) to avoid blocksize
mismatch.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---

Alternatively, we could add "-b 4096" to .dev_fs_opts.

 testcases/kernel/syscalls/statx/statx09.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/statx/statx09.c b/testcases/kernel/syscalls/statx/statx09.c
index c03d2c91e..dc9786c76 100644
--- a/testcases/kernel/syscalls/statx/statx09.c
+++ b/testcases/kernel/syscalls/statx/statx09.c
@@ -94,7 +94,7 @@ static void flag_setup(void)
 	memset(&enable, 0, sizeof(enable));
 	enable.version = 1;
 	enable.hash_algorithm = hash_algorithms[0];
-	enable.block_size = 4096;
+	enable.block_size = 1024;
 	enable.salt_size = 0;
 	enable.salt_ptr = (intptr_t)NULL;
 	enable.sig_size = 0;
-- 
2.41.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

end of thread, other threads:[~2023-07-14 12:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-13 13:28 [LTP] [PATCH] statx09: Reduce fs-verity blocksize to 1024 Martin Doucha
2023-07-14  3:40 ` Eric Biggers
2023-07-14 11:47   ` Petr Vorel
2023-07-14 11:49     ` Petr Vorel
2023-07-14 12:32     ` Martin Doucha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox