summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2024-03-07 19:41:19 +0800
committerZorro Lang <zlang@kernel.org>2024-03-11 12:50:09 +0800
commit2b0216017bc2b20bf38bd3461d474c9f752b8aaa (patch)
tree99707229586613a784b5326a4ca79089d9cd1641
parent07fa85f1123203546276040a9fd04a8aeda3f41c (diff)
common/rc: specify required device size
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>
-rw-r--r--common/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rc b/common/rc
index 50dde313..26212b15 100644
--- 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.