2015-01-19 07:08:00

by Xiaoguang Wang

[permalink] [raw]
Subject: [PATCH] ext4/30[23]: ignore EBUSY error

xfstests ext4/302, ext4/303 are ext4 defragmentation stress test,
which will ioctl(EXT4_IOC_MOVE_EXT), so EBUSY is expected to happen,
for example, when page's corresponding buffer_head's state is BH_Dirty.

Signed-off-by: Xiaoguang Wang <[email protected]>
---
tests/ext4/302 | 2 ++
tests/ext4/303 | 2 ++
2 files changed, 4 insertions(+)

diff --git a/tests/ext4/302 b/tests/ext4/302
index 1e90016..c604c8f 100755
--- a/tests/ext4/302
+++ b/tests/ext4/302
@@ -60,6 +60,8 @@ filesize=${FILE_SIZE}
size=999G
buffered=0
fadvise_hint=0
+continue_on_error=write
+ignore_error=,EBUSY

##########################################
# Test2
diff --git a/tests/ext4/303 b/tests/ext4/303
index 9573872..2d01f0f 100755
--- a/tests/ext4/303
+++ b/tests/ext4/303
@@ -60,6 +60,8 @@ filesize=${FILE_SIZE}
size=999G
buffered=0
fadvise_hint=0
+continue_on_error=write
+ignore_error=,EBUSY

#################################
# Test3
--
1.8.3.1



2015-01-19 12:27:41

by Dmitry Monakhov

[permalink] [raw]
Subject: Re: [PATCH] ext4/30[23]: ignore EBUSY error


Xiaoguang Wang <[email protected]> writes:

Acked-by Dmitry Monakhov <[email protected]>
> xfstests ext4/302, ext4/303 are ext4 defragmentation stress test,
> which will ioctl(EXT4_IOC_MOVE_EXT), so EBUSY is expected to happen,
> for example, when page's corresponding buffer_head's state is BH_Dirty.
>
> Signed-off-by: Xiaoguang Wang <[email protected]>
> ---
> tests/ext4/302 | 2 ++
> tests/ext4/303 | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/tests/ext4/302 b/tests/ext4/302
> index 1e90016..c604c8f 100755
> --- a/tests/ext4/302
> +++ b/tests/ext4/302
> @@ -60,6 +60,8 @@ filesize=${FILE_SIZE}
> size=999G
> buffered=0
> fadvise_hint=0
> +continue_on_error=write
> +ignore_error=,EBUSY
>
> ##########################################
> # Test2
> diff --git a/tests/ext4/303 b/tests/ext4/303
> index 9573872..2d01f0f 100755
> --- a/tests/ext4/303
> +++ b/tests/ext4/303
> @@ -60,6 +60,8 @@ filesize=${FILE_SIZE}
> size=999G
> buffered=0
> fadvise_hint=0
> +continue_on_error=write
> +ignore_error=,EBUSY
>
> #################################
> # Test3
> --
> 1.8.3.1