diff mbox series

[1/4] rc: debug add _scratch_mount_options to the _scratch_mount

Message ID 339e6b40db7628a8828c78f49c75d12e375d0004.1628818510.git.anand.jain@oracle.com (mailing list archive)
State New, archived
Headers show
Series btrfs/220: make it compatible with older kernels | expand

Commit Message

Anand Jain Aug. 13, 2021, 1:59 a.m. UTC
When the _scratch_mount fails, there isn't any clue on why it failed as
of now, change this and add the $(_scratch_mount_options $*) to the
_fail.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 common/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/common/rc b/common/rc
index e04d9365d902..4e939da37010 100644
--- a/common/rc
+++ b/common/rc
@@ -339,7 +339,7 @@  _try_scratch_mount()
 # mount scratch device with given options and _fail if mount fails
 _scratch_mount()
 {
-	_try_scratch_mount $* || _fail "mount failed"
+	_try_scratch_mount $* || _fail "mount $(_scratch_mount_options $*) failed"
 }
 
 _scratch_mount_idmapped()