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>
# 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
# 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