]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
common/rc: specify required device size
authorAnand Jain <anand.jain@oracle.com>
Thu, 7 Mar 2024 11:41:19 +0000 (19:41 +0800)
committerZorro Lang <zlang@kernel.org>
Mon, 11 Mar 2024 04:50:09 +0000 (12:50 +0800)
The current _notrun call states that the scratch device is too small but
does not specify the required size. Simply update the _notrun messages.

Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
common/rc

index 50dde313b85119b1e8e4a7afa54cc0862cf953dc..26212b153bcbfbbeb33a234aef78668d6143a2a4 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -1834,7 +1834,7 @@ _require_scratch_size()
 
        _require_scratch
        local devsize=`_get_device_size $SCRATCH_DEV`
-       [ $devsize -lt $1 ] && _notrun "scratch dev too small"
+       [ $devsize -lt $1 ] && _notrun "scratch device too small, $devsize < $1"
 }
 
 # require a scratch dev of a minimum size (in kb) and should not be checked
@@ -1845,7 +1845,7 @@ _require_scratch_size_nocheck()
 
        _require_scratch_nocheck
        local devsize=`_get_device_size $SCRATCH_DEV`
-       [ $devsize -lt $1 ] && _notrun "scratch dev too small"
+       [ $devsize -lt $1 ] && _notrun "scratch device size too small, $devsize < $1"
 }
 
 # Require scratch fs which supports >16T of filesystem size.