From: Christian Kujau Date: Fri, 31 Jan 2020 20:55:47 +0000 (-0800) Subject: shared/032: add options for reiser4 X-Git-Tag: v2022.05.01~869 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=e28ee0bdac4cbe65694d4933b1bcf76c5c6ec5c1 shared/032: add options for reiser4 Last night I had xfstests running and after a while it hung at shared/032 because I had reiser4progs installed and it was waiting for input: ----------------------------------------------------------------- mkfs -t reiser4 /dev/ram0 mkfs.reiser4 1.2.1 Format release: 4.0.2 Copyright (C) 2001-2005 by Hans Reiser, licensing governed by reiser4progs/COPYING. Block size 4096 will be used. Linux 5.5.0-rc5-amd64 is detected. Uuid 2006a590-832a-49f5-9317-cf91bf866dd7 will be used. Reiser4 is going to be created on /dev/ram0. (Yes/No): ----------------------------------------------------------------- The patch below adds an option (cf. reiserfs the line above) so that the test continues. Curiously enough the test still "succeeds" for reiser{fs,4} (and jfs too) because the userspace tools don't appear to have a routine to check for "contains an existing filesystem", but that could be addressed in a different patch. Signed-off-by: Christian Kujau Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/shared/032 b/tests/shared/032 index 493845f7..ca85b189 100755 --- a/tests/shared/032 +++ b/tests/shared/032 @@ -49,6 +49,7 @@ do [ $fs = gfs ] && preop="echo y |" && preargs="-p lock_nolock -j 1" [ $fs = gfs2 ] && preop="echo y |" && preargs="-p lock_nolock -j 1" [ $fs = reiserfs ] && preop="echo y |" && preargs="-f" + [ $fs = reiser4 ] && preop="echo y |" && preargs="-f" # cramfs mkfs requires a directory argument [ $fs = cramfs ] && preargs=/proc/fs [ $fs = ext2 ] && preargs="-F"