xfstests: use value of FSTYP if defined externally
authorDavid Sterba <dsterba@suse.cz>
Fri, 24 Jan 2014 01:05:01 +0000 (12:05 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 24 Jan 2014 01:05:01 +0000 (12:05 +1100)
commit586a06c5b9ef996e5d6dbc5874e6106083a49e6f
tree8146dcc5fce5c79a7f69346f2e7c4728dcecd5cc
parent80622a6b4aaee6b4b72c09530367ca7ca3542a3f
xfstests: use value of FSTYP if defined externally

The initial value of FSTYP is unconditionally set to 'xfs' and the
filesystem type is taken from the TEST_DEV. This could lead to confusion
if the device hasn't been formatted yet, eg. an empty image in VM, or
a different test setup took place before.

Now one can specify the desired FSTYP in advance and be safe. If unset,
the fallback to TEST_DEV type continues to work.

Signed-off-by: David Sterba <dsterba@suse.cz>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
README
check