xfstests: _fail in _scratch_mkfs_sized if device is too small
PATCH 1/1 xfstests: _fail in _scratch_mkfs_sized if device is too small
Without this, 273 was failing in cryptic ways for me if the device size was < 2G.
Signed-off-by Eric Sandeen <[email protected]>
---
common.rc +5 -0
@@ -348,6 +348,11 @@ _scratch_mkfs_sized() [ -z "$blocksize" ] && blocksize=4096 blocks=`expr $fssize / $blocksize` + if [ "$HOSTOS" == "Linux" ]; then + devsize=`blockdev --getsize64 $SCRATCH_DEV` + [ "$fssize" -gt "$devsize" ] && _notrun "Scratch device too small" + fi + case $FSTYP in xfs) _scratch_mkfs_xfs -d size=$fssize -b size=$blocksize
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 4 lines · Eric Sandeen
Without this, 273 was failing in cryptic ways for me if the device size was < 2G.
Signed-off-by Eric Sandeen <[email protected]>
Looks good,
Reviewed-by Christoph Hellwig <[email protected]>
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs