All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic/247: unmount test device, not scratch device
@ 2017-07-05 20:37 Eric Biggers
  2017-07-06  2:50 ` Eryu Guan
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Biggers @ 2017-07-05 20:37 UTC (permalink / raw)
  To: fstests; +Cc: Brian Foster, Eric Biggers

From: Eric Biggers <ebiggers@google.com>

Commit d55123c080cb ("generic/247: filter out expected XFS warnings for
mixed mmap/direct I/O") made generic/247 start explicitly unmounting the
scratch device.  However, the test doesn't actually use the scratch
device, so it will fail if SCRATCH_DEV is undefined.  Fix it by
unmounting the test device instead.

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 tests/generic/247 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/generic/247 b/tests/generic/247
index 509e8808..aac70780 100755
--- a/tests/generic/247
+++ b/tests/generic/247
@@ -82,7 +82,7 @@ echo "Silence is golden."
 
 # unmount and check dmesg, filtering out expected XFS warnings about mixed
 # mmap/dio
-_scratch_unmount
+_test_unmount
 if [ "$FSTYP" == "xfs" ]; then
 	_check_dmesg _filter_xfs_dmesg
 else
-- 
2.13.2.725.g09c95d1e9-goog


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

* Re: [PATCH] generic/247: unmount test device, not scratch device
  2017-07-05 20:37 [PATCH] generic/247: unmount test device, not scratch device Eric Biggers
@ 2017-07-06  2:50 ` Eryu Guan
  2017-07-06  2:54   ` Eric Biggers
  0 siblings, 1 reply; 4+ messages in thread
From: Eryu Guan @ 2017-07-06  2:50 UTC (permalink / raw)
  To: Eric Biggers; +Cc: fstests, Brian Foster, Eric Biggers

On Wed, Jul 05, 2017 at 01:37:54PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> Commit d55123c080cb ("generic/247: filter out expected XFS warnings for
> mixed mmap/direct I/O") made generic/247 start explicitly unmounting the
> scratch device.  However, the test doesn't actually use the scratch
> device, so it will fail if SCRATCH_DEV is undefined.  Fix it by
> unmounting the test device instead.
> 
> Signed-off-by: Eric Biggers <ebiggers@google.com>

Thanks for the fix! I found this in my review and I remembered I removed
the _scratch_unmount and updated the comments accordingly at commit
time, but clearly I didn't.

Thanks,
Eryu

> ---
>  tests/generic/247 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/generic/247 b/tests/generic/247
> index 509e8808..aac70780 100755
> --- a/tests/generic/247
> +++ b/tests/generic/247
> @@ -82,7 +82,7 @@ echo "Silence is golden."
>  
>  # unmount and check dmesg, filtering out expected XFS warnings about mixed
>  # mmap/dio
> -_scratch_unmount
> +_test_unmount
>  if [ "$FSTYP" == "xfs" ]; then
>  	_check_dmesg _filter_xfs_dmesg
>  else
> -- 
> 2.13.2.725.g09c95d1e9-goog
> 
> --
> 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] 4+ messages in thread

* Re: [PATCH] generic/247: unmount test device, not scratch device
  2017-07-06  2:50 ` Eryu Guan
@ 2017-07-06  2:54   ` Eric Biggers
  2017-07-06  3:10     ` Eryu Guan
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Biggers @ 2017-07-06  2:54 UTC (permalink / raw)
  To: Eryu Guan; +Cc: fstests, Brian Foster, Eric Biggers

On Thu, Jul 06, 2017 at 10:50:59AM +0800, Eryu Guan wrote:
> On Wed, Jul 05, 2017 at 01:37:54PM -0700, Eric Biggers wrote:
> > From: Eric Biggers <ebiggers@google.com>
> > 
> > Commit d55123c080cb ("generic/247: filter out expected XFS warnings for
> > mixed mmap/direct I/O") made generic/247 start explicitly unmounting the
> > scratch device.  However, the test doesn't actually use the scratch
> > device, so it will fail if SCRATCH_DEV is undefined.  Fix it by
> > unmounting the test device instead.
> > 
> > Signed-off-by: Eric Biggers <ebiggers@google.com>
> 
> Thanks for the fix! I found this in my review and I remembered I removed
> the _scratch_unmount and updated the comments accordingly at commit
> time, but clearly I didn't.
> 

It was removed from generic/095 (maybe by accident?) but not generic/247.
Perhaps it needs to be added back to generic/095?

Eric

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

* Re: [PATCH] generic/247: unmount test device, not scratch device
  2017-07-06  2:54   ` Eric Biggers
@ 2017-07-06  3:10     ` Eryu Guan
  0 siblings, 0 replies; 4+ messages in thread
From: Eryu Guan @ 2017-07-06  3:10 UTC (permalink / raw)
  To: Eric Biggers; +Cc: fstests, Brian Foster, Eric Biggers

On Wed, Jul 05, 2017 at 07:54:28PM -0700, Eric Biggers wrote:
> On Thu, Jul 06, 2017 at 10:50:59AM +0800, Eryu Guan wrote:
> > On Wed, Jul 05, 2017 at 01:37:54PM -0700, Eric Biggers wrote:
> > > From: Eric Biggers <ebiggers@google.com>
> > > 
> > > Commit d55123c080cb ("generic/247: filter out expected XFS warnings for
> > > mixed mmap/direct I/O") made generic/247 start explicitly unmounting the
> > > scratch device.  However, the test doesn't actually use the scratch
> > > device, so it will fail if SCRATCH_DEV is undefined.  Fix it by
> > > unmounting the test device instead.
> > > 
> > > Signed-off-by: Eric Biggers <ebiggers@google.com>
> > 
> > Thanks for the fix! I found this in my review and I remembered I removed
> > the _scratch_unmount and updated the comments accordingly at commit
> > time, but clearly I didn't.
> > 
> 
> It was removed from generic/095 (maybe by accident?) but not generic/247.
> Perhaps it needs to be added back to generic/095?

You're right, I updated the wrong test.. Yeah, it should be added back
to generic/095. Would you mind sending a v2 patch to do these edits all
together? i.e. add _scratch_unmount (and comments) back to generic/095
and remove them from generic/247?

Thanks,
Eryu

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

end of thread, other threads:[~2017-07-06  3:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-05 20:37 [PATCH] generic/247: unmount test device, not scratch device Eric Biggers
2017-07-06  2:50 ` Eryu Guan
2017-07-06  2:54   ` Eric Biggers
2017-07-06  3:10     ` Eryu Guan

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.