public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfstests: fix _filter_ro_mount and make xfs/200 pass with old mount
@ 2013-10-31 10:55 Eryu Guan
  2013-10-31 11:15 ` Christoph Hellwig
  2013-11-04 20:45 ` Rich Johnston
  0 siblings, 2 replies; 3+ messages in thread
From: Eryu Guan @ 2013-10-31 10:55 UTC (permalink / raw)
  To: xfs; +Cc: Eryu Guan

We just want to remove "block device" in _filter_ro_mount(), so add
"mount:" back.

Add one more call of _filter_ro_mount() in xfs/200 to match 200.out.

Signed-off-by: Eryu Guan <eguan@redhat.com>
---
 common/filter | 2 +-
 tests/xfs/200 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/filter b/common/filter
index 2390ec0..e37ce69 100644
--- a/common/filter
+++ b/common/filter
@@ -308,7 +308,7 @@ _filter_fstrim()
 # Older mount output referred to "block device" when mounting RO devices
 # It's gone in newer versions
 _filter_ro_mount() {
-	sed -e "s/mount: block device//g" \
+	sed -e "s/mount: block device/mount:/g" \
 	    -e "s/mount: cannot mount block device/mount: cannot mount/g"
 }
 
diff --git a/tests/xfs/200 b/tests/xfs/200
index f573481..f4db64f 100755
--- a/tests/xfs/200
+++ b/tests/xfs/200
@@ -58,7 +58,7 @@ blockdev --setro $SCRATCH_DEV
 # Mount it, and make sure we can't write to it, and we can unmount it again
 #
 echo "mounting read-only block device:"
-_scratch_mount 2>&1 | _filter_scratch
+_scratch_mount 2>&1 | _filter_scratch | _filter_ro_mount
 
 echo "touching file on read-only filesystem (should fail)"
 touch $SCRATCH_MNT/foo 2>&1 | _filter_scratch
-- 
1.8.3.1

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: [PATCH] xfstests: fix _filter_ro_mount and make xfs/200 pass with old mount
  2013-10-31 10:55 [PATCH] xfstests: fix _filter_ro_mount and make xfs/200 pass with old mount Eryu Guan
@ 2013-10-31 11:15 ` Christoph Hellwig
  2013-11-04 20:45 ` Rich Johnston
  1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2013-10-31 11:15 UTC (permalink / raw)
  To: Eryu Guan; +Cc: xfs

On Thu, Oct 31, 2013 at 06:55:16PM +0800, Eryu Guan wrote:
> We just want to remove "block device" in _filter_ro_mount(), so add
> "mount:" back.
> 
> Add one more call of _filter_ro_mount() in xfs/200 to match 200.out.

Thanks, I've seen this issue too but didn't have time to debug it yet.

Reviewed-by: Christoph Hellwig <hch@lst.de>

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: [PATCH] xfstests: fix _filter_ro_mount and make xfs/200 pass with old mount
  2013-10-31 10:55 [PATCH] xfstests: fix _filter_ro_mount and make xfs/200 pass with old mount Eryu Guan
  2013-10-31 11:15 ` Christoph Hellwig
@ 2013-11-04 20:45 ` Rich Johnston
  1 sibling, 0 replies; 3+ messages in thread
From: Rich Johnston @ 2013-11-04 20:45 UTC (permalink / raw)
  To: Eryu Guan, xfs

This has been committed.

Thanks
--Rich

commit fa74b4bdba5a8ecf0c81c65307e1a9af53616370
Author: Eryu Guan <eguan@redhat.com>
Date:   Thu Oct 31 10:55:16 2013 +0000

     xfstests: fix _filter_ro_mount and make xfs/200 pass with old mount

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2013-11-04 20:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-31 10:55 [PATCH] xfstests: fix _filter_ro_mount and make xfs/200 pass with old mount Eryu Guan
2013-10-31 11:15 ` Christoph Hellwig
2013-11-04 20:45 ` Rich Johnston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox