xfstests: Do not allow step to be zero
authorLukas Czerner <lczerner@redhat.com>
Tue, 16 Oct 2012 09:41:34 +0000 (09:41 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 24 Oct 2012 18:11:56 +0000 (13:11 -0500)
commit0b859273103ebb5cc2c40c02526d2299abf4af04
treec1181a5e8bae8c92b19225800d8c4550503601f8
parent00d1bda60dcfca273f49c298c3a82be1386fa342
xfstests: Do not allow step to be zero

Currently 'step' variable which is used as length of the range to
discard can be zero. However it would result in error returned by the
fstrim.

Fix this by forcing 'step' to be at least 4KB.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
251