251: make fstrim call a bit more random
authorLukas Czerner <lczerner@redhat.com>
Thu, 1 Mar 2012 08:15:16 +0000 (09:15 +0100)
committerChristoph Hellwig <hch@lst.de>
Sat, 31 Mar 2012 20:14:06 +0000 (20:14 +0000)
commit09665195439cd83720aebc2115b0636955965e3a
tree9a4df3abae16971d4de1b130e3ede20b1a2fd025
parent65a708d11f8218239e3a87b6d5abe5d2fa418cd9
251: make fstrim call a bit more random

To cover cases when fstrim arguments are not block/block group/file
system size aligned, we can be a bit more random. This commit changes
fstrim argument computing to use $RANDOM bash variable in order to have
different minlen, start, len argument settings and change the full fs
fstrim to be called randomly as well.

Also make kill and wait not complain about non existent process, since
it may have already finished before we attempt to kill it and wait for
it. No reason to fail the test.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
251