Lines Matching refs:tmpfile
202 ## Check free space & calculate tmpfile size.
214 tmpfile="$fsdir/${0##*/}_TMPFILE.$$"
216 ## Clean up tmpfile (if any) and exit:
219 if [ -e $tmpfile ]; then
220 echo "Removing temporary file '$tmpfile'..."
221 $RM -f $tmpfile
222 if [ -e $tmpfile ]; then
223 echo "Failed to remove '$tmpfile'!!!"
231 ## Prepare signal handling, in case we get interrupted while $tmpfile exists:
248 ## but rather simply allocates formerly-free space to the tmpfile.
250 echo -n "Creating temporary file (${tmpsize} KB '$tmpfile') ... "
251 if ! $HDPARM --fallocate "${tmpsize}" $tmpfile ; then
258 ## string to the tmpfile. "date" is used since it is ever changing.
261 echo "$TESTSTR" >> $tmpfile
263 SECTOR_BYTES=`$HDPARM --fibmap $tmpfile | \
266 LAST_EXTENT_SECTOR_COUNT=`$HDPARM --fibmap $tmpfile | \
269 LAST_EXTENT_LBA=`$HDPARM --fibmap $tmpfile | tail -1 | $GAWK '{print $2}'`
273 echo "Test string was not found in last extent of tmpfile, as it should have been. Aborting."
286 echo "Direct I/O of last extent of tmpfile on $slave doesn't match that of $raiddev. Excluding."
307 get_trimlist="$HDPARM --fibmap $tmpfile"