common: add _require_block_device() helper
authorEryu Guan <eguan@redhat.com>
Mon, 10 Nov 2014 07:06:23 +0000 (18:06 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 10 Nov 2014 07:06:23 +0000 (18:06 +1100)
commit129444c39346c2339d64d8cf04819353c7201c19
treecf1195082aae23467e450c4a5456900d0e475014
parent76c5f3c06233be43430f465ae14250ffc7878ae3
common: add _require_block_device() helper

Add _require_block_device() helper and use it in _require_dm_flakey()
and generic/076.

_require_dm_flakey() assumes $SCRATCH_DEV is a block device, now it can
also be a NFS export.

generic/076 does "cat $SCRATCH_DEV" which will fail when testing on NFS.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc
tests/generic/076