linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xfstests-bld: specify inode size in inline test scenario conf
@ 2014-09-26 22:16 Eric Whitney
  2014-09-27 18:10 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Whitney @ 2014-09-26 22:16 UTC (permalink / raw)
  To: linux-ext4; +Cc: tytso

Some xfstests use test file systems that are smaller than 512 MB, and
per the mke2fs.conf default, contain 128 byte inodes.  These tests
include xfstests generic/015, generic/077, generic/083, and shared/298.
All of them fail at mkfs time when run in xfstest-bld's inline test
scenario because the inline data feature requires a minimum inode size
of 256 bytes.

Fix this problem by specifying an inode size of 256 bytes in the inline
conf file.  This allows the tester more flexibility than modifying the
xfstests themselves.

This change also makes it possible to run generic/027 successfully and
in a reasonable amount of time (less than 20 minutes on one x86-64 VM).
It also fails silently when mkfs'ing its test file system, but then
proceeds to run and reports success erroneously.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
---
 kvm-xfstests/test-appliance/files/root/conf/inline | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kvm-xfstests/test-appliance/files/root/conf/inline b/kvm-xfstests/test-appliance/files/root/conf/inline
index 52b0609..9ba088f 100644
--- a/kvm-xfstests/test-appliance/files/root/conf/inline
+++ b/kvm-xfstests/test-appliance/files/root/conf/inline
@@ -1,7 +1,7 @@
 export FS=ext4
 export TEST_DEV=$VDD
 export TEST_DIR=/vdd
-export MKFS_OPTIONS="-q -O inline_data,metadata_csum,64bit"
+export MKFS_OPTIONS="-q -I 256 -O inline_data,metadata_csum,64bit"
 export EXT_MOUNT_OPTIONS="-o block_validity"
 TESTNAME="Ext4 4k block w/inline"
 
-- 
1.9.1


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

* Re: [PATCH] xfstests-bld: specify inode size in inline test scenario conf
  2014-09-26 22:16 [PATCH] xfstests-bld: specify inode size in inline test scenario conf Eric Whitney
@ 2014-09-27 18:10 ` Theodore Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2014-09-27 18:10 UTC (permalink / raw)
  To: Eric Whitney; +Cc: linux-ext4

On Fri, Sep 26, 2014 at 06:16:46PM -0400, Eric Whitney wrote:
> Some xfstests use test file systems that are smaller than 512 MB, and
> per the mke2fs.conf default, contain 128 byte inodes.  These tests
> include xfstests generic/015, generic/077, generic/083, and shared/298.
> All of them fail at mkfs time when run in xfstest-bld's inline test
> scenario because the inline data feature requires a minimum inode size
> of 256 bytes.
> 
> Fix this problem by specifying an inode size of 256 bytes in the inline
> conf file.  This allows the tester more flexibility than modifying the
> xfstests themselves.
> 
> This change also makes it possible to run generic/027 successfully and
> in a reasonable amount of time (less than 20 minutes on one x86-64 VM).
> It also fails silently when mkfs'ing its test file system, but then
> proceeds to run and reports success erroneously.
> 
> Signed-off-by: Eric Whitney <enwlinux@gmail.com>

Applied, thanks.

						- Ted

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

end of thread, other threads:[~2014-09-27 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-26 22:16 [PATCH] xfstests-bld: specify inode size in inline test scenario conf Eric Whitney
2014-09-27 18:10 ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).