[PATCH 10/12] 141: use TEST_DIR instead of a SCRATCH_DEV

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The test does not require a fresh file system.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
 tests/generic/141 |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/tests/generic/141 b/tests/generic/141
index fa08484..3509c4a 100755
--- a/tests/generic/141
+++ b/tests/generic/141
@@ -39,16 +39,11 @@ trap "exit \$status" 0 1 2 3 15
 _supported_fs generic
 _supported_os Linux
 
-_require_scratch
-_scratch_mkfs >/dev/null 2>&1
-_scratch_mount
-
 # create file, mmap a region and mmap read it
-file=$SCRATCH_MNT/mmap
-
-$XFS_IO_PROG -f -c "pwrite 0 1024k" -c "mmap 64k 64k" -c "mread -r" $file > /dev/null
+file=$TEST_DIR/mmap.$seq
 
 rm -f $file
+$XFS_IO_PROG -f -c "pwrite 0 1024k" -c "mmap 64k 64k" -c "mread -r" $file > /dev/null
 
 status=0
 exit 
-- 
1.7.10.4


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




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux