From: Christoph Hellwig Date: Wed, 8 Jun 2016 18:17:31 +0000 (+0200) Subject: generic/186-7: fix unreferenced variables X-Git-Tag: v2022.05.01~2500 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=80ff43c05f4f3f39d4628dc7f796bf997ee1253c;p=xfstests-dev.git generic/186-7: fix unreferenced variables There is not i variable in scope, and the comments suggest the operation is to be done on ${file}. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Eryu Guan --- diff --git a/tests/generic/186 b/tests/generic/186 index 70a02809..5de120a2 100755 --- a/tests/generic/186 +++ b/tests/generic/186 @@ -87,7 +87,7 @@ _fragment_freesp() # Try again anyway avail=`_get_available_space $SCRATCH_MNT` - $XFS_IO_PROG -fc "pwrite -S 0x65 0 $avail" ${file}.${i} + $XFS_IO_PROG -fc "pwrite -S 0x65 0 $avail" ${file} # Punch out whatever we need seq 1 $((nr * 4)) | while read f; do diff --git a/tests/generic/187 b/tests/generic/187 index 25cbcd9b..3f534c84 100755 --- a/tests/generic/187 +++ b/tests/generic/187 @@ -88,7 +88,7 @@ _fragment_freesp() # Try again anyway avail=`_get_available_space $SCRATCH_MNT` - $XFS_IO_PROG -fc "pwrite -S 0x65 0 $avail" ${file}.${i} + $XFS_IO_PROG -fc "pwrite -S 0x65 0 $avail" ${file} # Punch out whatever we need seq 1 $((nr * 4)) | while read f; do