273: fix of reading scratch size and removing lost+found
authorTom Marek <tmarek@redhat.com>
Tue, 15 May 2012 15:48:47 +0000 (10:48 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Tue, 15 May 2012 15:48:47 +0000 (10:48 -0500)
commit1fce0780f63ccdd308767e23fe39a18d30d973d6
treedf9f34bb26e1a6b6ad76b4e2c7807f140e0fd5e2
parent3fdaf8c4b0640d69621c9a490ea67716343917d7
273: fix of reading scratch size and removing lost+found

There were two reasons why test 273 was failing. Firstrly, when running on
ext4 fs it was removing everything from SCRATCH_MNT directory at the beginning
of tests including the lost+found directory. This caused error while checking
scratch fs after finishing test. Secondly, obtaining of the partition size was
not counting with with behaviour of df utility which may split the line containg
informations about one partition when it is too long thus it may have returned
nothing.

First problem was solved with removing all unnecessary rm -rf commands and the
second one was fixed with alternative awk script which is able to deal with
any line splitting possible. Also 'umount $SCRATCH_DEV' was substituted for
'_scratch_unmount'.

Cc: sandeen@sandeen.net
Signed-off-by: Tom Marek <tmarek@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
273