Skip to contentSkip to conversation

generic/361: require that file system uses a real block device

PATCH New Theodore Ts'o 1 participant 1 message Sep 23, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 generic/361: require that file system uses a real block device

This test tries to use _mkfs_dev to format a loop device and then tries to mount it. For file systems that don't use block devices (nfs, tmpfs, etc.) this is doomed to failure. So skip this test if $SCRATCH_DEV is not a block device.

---
 tests/generic/361 | 1 +
 1 file changed, 1 insertion(+)
tests/generic/361 +1 -0
index ad047c6..c09863c 100755
@@ -52,6 +52,7 @@ rm -f $seqres.full
 _supported_fs generic
 _supported_os Linux
 _require_scratch
+_require_block_device $SCRATCH_DEV
 
 # create a small filesystem to hold another filesystem image
 _scratch_mkfs_sized $((512 * 1024 * 1024)) >>$seqres.full 2>&1
Signature · 1 line
2.9.0.243.g5c589a7.dirty