public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfstests 100: do not use scratch
@ 2013-02-18  7:51 Lukas Czerner
  2013-02-18 22:12 ` Dave Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: Lukas Czerner @ 2013-02-18  7:51 UTC (permalink / raw)
  To: xfs; +Cc: Lukas Czerner

Test #100 does not use scratch device at all but it still
_require_scratch and _check_scratch_fs. This might also be a problem if
the test before this one failed and corrupted scratch partition.

Remove the _require_scratch() and _check_scratch_fs() from the test.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
---
 100 |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/100 b/100
index f3504ce..ad61823 100755
--- a/100
+++ b/100
@@ -69,7 +69,6 @@ _populate_fs -n $NDIRS -f $NFILES -d $DEPTH -r $POPULATED_DIR -s $SIZE >>$here/$
 tar -cvf $TEMP_DIR/$TAR_FILE $POPULATED_DIR >>$here/$seq.full 2>&1
 
 # create f/s
-_require_scratch
 _setup_testdir
 
 # untar on f/s
@@ -84,7 +83,6 @@ diff -qr $POPULATED_DIR ${testdir}${POPULATED_DIR}
 
 cd /
 _cleanup_testdir
-_check_scratch_fs
 
 status=0
 exit
-- 
1.7.7.6

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

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

* Re: [PATCH] xfstests 100: do not use scratch
  2013-02-18  7:51 [PATCH] xfstests 100: do not use scratch Lukas Czerner
@ 2013-02-18 22:12 ` Dave Chinner
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2013-02-18 22:12 UTC (permalink / raw)
  To: Lukas Czerner; +Cc: xfs

On Mon, Feb 18, 2013 at 08:51:51AM +0100, Lukas Czerner wrote:
> Test #100 does not use scratch device at all but it still
> _require_scratch and _check_scratch_fs. This might also be a problem if
> the test before this one failed and corrupted scratch partition.
> 
> Remove the _require_scratch() and _check_scratch_fs() from the test.

Actaully, I think it should be using scratch - have  a look at where
TEMP_DIR is located. Yeah, it's /tmp, not the scratch device.

i.e. it should be using the TEST_DIR rather than tmp for building
the tarball, and scratch for restoring it....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

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

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

end of thread, other threads:[~2013-02-18 22:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-18  7:51 [PATCH] xfstests 100: do not use scratch Lukas Czerner
2013-02-18 22:12 ` Dave Chinner

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