* xfstests ext4/304 failing due to donor inode's i_size == 0
@ 2015-10-19 2:57 Theodore Ts'o
2015-10-20 14:44 ` Dmitry Monakhov
0 siblings, 1 reply; 3+ messages in thread
From: Theodore Ts'o @ 2015-10-19 2:57 UTC (permalink / raw)
To: dmonakhov; +Cc: linux-ext4
Hi Dmitry,
I was investigating why ext4/304 is failing, and it's due to
defrag-fuzzer returning an error:
defrag-fuzzer: (groupid=0, jobs=1): err=22 (file:ioengines.c:309, func=td_io_que
ue, error=Invalid argument): pid=3207: Sun Oct 18 19:43:57 2015
After instrumenting the kernel, it appears that this is due to donor
inode's i_size being set to 0.
Can you reproduce this faiure? And if it's working for you, what
version of fio are you using? I normally use fio 2.1.3, since newer
versions of fio have caused test regressions that appear to be caused
by fio bugs. I tried fio 2.1.14, it was also failing. I could try
using 2.2.x versions of fio, but as I recall, that set of versions was
were I started running into other test failures caused by fio bugs.
(When I asked Dave Chinner about this a while back, he tod me he was
using 2.1.3 because he had run into regressions caused by vio, and
I've been sticking with fio 2.1.3 for quite a while now.)
Thanks,
- Ted
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: xfstests ext4/304 failing due to donor inode's i_size == 0
2015-10-19 2:57 xfstests ext4/304 failing due to donor inode's i_size == 0 Theodore Ts'o
@ 2015-10-20 14:44 ` Dmitry Monakhov
2015-10-25 11:10 ` Theodore Ts'o
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Monakhov @ 2015-10-20 14:44 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: linux-ext4
[-- Attachment #1.1: Type: text/plain, Size: 260 bytes --]
Theodore Ts'o <tytso@mit.edu> writes:
> Hi Dmitry,
>
> I was investigating why ext4/304 is failing, and it's due to
> defrag-fuzzer returning an error:
Yep. You are right. I have out of tree patch which fix that. I'll send it
to xfstests-dev list.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ext4-304-fix.patch --]
[-- Type: text/x-diff, Size: 952 bytes --]
>From ee628504370564704e218ecf089f00c243b6fd12 Mon Sep 17 00:00:00 2001
From: Dmitry Monakhov <dmonakhov@openvz.org>
Date: Tue, 20 Oct 2015 18:32:03 +0400
Subject: [PATCH] ext4/304 handle ENOSPC/EINVAL correctly
'defrag-fuzzer' is task which try to perform inplace defrag, inline-defrag
is basically of {falloc,ioc_swap} and may fail due to ENOSPC on first stage.
In that case IOCTL returns EINVAL (because we try to swap invalid extents)
Since this is hard core test then ENOSPC and corresponding EINVAL is expected.
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
---
tests/ext4/304 | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tests/ext4/304 b/tests/ext4/304
index 7b90f1d..81d69b8 100644
--- a/tests/ext4/304
+++ b/tests/ext4/304
@@ -76,6 +76,7 @@ donorname=test4.def
filename=test4
inplace=1
rw=randwrite
+ignore_error=,EINVAL
numjobs=4*${LOAD_FACTOR}
runtime=30*${TIME_FACTOR}
time_based
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: xfstests ext4/304 failing due to donor inode's i_size == 0
2015-10-20 14:44 ` Dmitry Monakhov
@ 2015-10-25 11:10 ` Theodore Ts'o
0 siblings, 0 replies; 3+ messages in thread
From: Theodore Ts'o @ 2015-10-25 11:10 UTC (permalink / raw)
To: Dmitry Monakhov; +Cc: linux-ext4
On Tue, Oct 20, 2015 at 05:44:03PM +0300, Dmitry Monakhov wrote:
> Theodore Ts'o <tytso@mit.edu> writes:
>
> > Hi Dmitry,
> >
> > I was investigating why ext4/304 is failing, and it's due to
> > defrag-fuzzer returning an error:
> Yep. You are right. I have out of tree patch which fix that. I'll send it
> to xfstests-dev list.
I tried the patch you sent, but ext4/304 is still failing. At the end
of 304.full:
fio: file hash not empty on exit
- Ted
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-25 11:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-19 2:57 xfstests ext4/304 failing due to donor inode's i_size == 0 Theodore Ts'o
2015-10-20 14:44 ` Dmitry Monakhov
2015-10-25 11: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).