]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/186-7: fix unreferenced variables
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Jun 2016 18:17:31 +0000 (20:17 +0200)
committerEryu Guan <eguan@redhat.com>
Wed, 15 Jun 2016 07:35:57 +0000 (15:35 +0800)
There is not i variable in scope, and the comments suggest the
operation is to be done on ${file}.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/186
tests/generic/187

index 70a02809c4e49fec45b951b1b4e413bd689499a9..5de120a28bf2616fc995d47ae8ee81e0804ead16 100755 (executable)
@@ -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
index 25cbcd9bf74c004794b83382bf295ec0bead7ff2..3f534c844d3ce2f36d9aedc23b744f76f3728e3e 100755 (executable)
@@ -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