* [PATCH] generic/475: fix confusing comment
@ 2018-05-21 16:07 Darrick J. Wong
2018-05-21 16:23 ` Zorro Lang
0 siblings, 1 reply; 2+ messages in thread
From: Darrick J. Wong @ 2018-05-21 16:07 UTC (permalink / raw)
To: Eryu Guan; +Cc: zlang, fstests
From: Darrick J. Wong <darrick.wong@oracle.com>
The comment about the dmerror switcheroo is hard to understand and
wrong. Fix both problems by rewriting it.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
tests/generic/475 | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tests/generic/475 b/tests/generic/475
index e31f1251..45072278 100755
--- a/tests/generic/475
+++ b/tests/generic/475
@@ -73,9 +73,11 @@ for i in $(seq 1 $((50 * TIME_FACTOR)) ); do
# recovery
sleep $((RANDOM % 3))
- # Loading error table without "--nolockfs" option. Because "--nolockfs"
- # won't freeze fs, then some running I/Os may cause XFS to shutdown
- # prematurely. That's not what we want to test.
+ # This test aims to simulate sudden disk failure, which means that we
+ # do not want to quiesce the filesystem or otherwise give it a chance
+ # to flush its logs. Therefore we want to call dmsetup with the
+ # --nolockfs parameter; to make this happen we must call the load
+ # error table helper *without* 'lockfs'.
_dmerror_load_error_table
ps -e | grep fsstress > /dev/null 2>&1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] generic/475: fix confusing comment
2018-05-21 16:07 [PATCH] generic/475: fix confusing comment Darrick J. Wong
@ 2018-05-21 16:23 ` Zorro Lang
0 siblings, 0 replies; 2+ messages in thread
From: Zorro Lang @ 2018-05-21 16:23 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: Eryu Guan, fstests
On Mon, May 21, 2018 at 09:07:34AM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
>
> The comment about the dmerror switcheroo is hard to understand and
> wrong. Fix both problems by rewriting it.
>
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
> ---
> tests/generic/475 | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/tests/generic/475 b/tests/generic/475
> index e31f1251..45072278 100755
> --- a/tests/generic/475
> +++ b/tests/generic/475
> @@ -73,9 +73,11 @@ for i in $(seq 1 $((50 * TIME_FACTOR)) ); do
> # recovery
> sleep $((RANDOM % 3))
>
> - # Loading error table without "--nolockfs" option. Because "--nolockfs"
> - # won't freeze fs, then some running I/Os may cause XFS to shutdown
> - # prematurely. That's not what we want to test.
> + # This test aims to simulate sudden disk failure, which means that we
> + # do not want to quiesce the filesystem or otherwise give it a chance
> + # to flush its logs. Therefore we want to call dmsetup with the
> + # --nolockfs parameter; to make this happen we must call the load
> + # error table helper *without* 'lockfs'.
Thanks! This looks good to me!
> _dmerror_load_error_table
>
> ps -e | grep fsstress > /dev/null 2>&1
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-21 16:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-21 16:07 [PATCH] generic/475: fix confusing comment Darrick J. Wong
2018-05-21 16:23 ` Zorro Lang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.