xfstests: fix test 259
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Sep 2011 11:44:58 +0000 (11:44 +0000)
committerAlex Elder <aelder@sgi.com>
Tue, 27 Sep 2011 04:01:23 +0000 (23:01 -0500)
commit49414ce7d1c9fdcf379860d3edab0647eae3861f
tree57111d5eb2dd2e3978c2b546f89b30c55fce4491
parent1844fe5e7e13af4a8a1b6fb62857812979cd55be
xfstests: fix test 259

Move the assignment of testfile after the sourcing of the common.* files to
make sure TEST_DIR is already defined - without this we end up creating
the file on the root filesystem, which may not support large enough files.

Also add a sync after the mkfs.xfs invocation, as losetup -d might fail
the loop device deletion with -EBUSY otherwise.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
259