From: Anand Jain Date: Fri, 13 Aug 2021 01:59:32 +0000 (+0800) Subject: common/rc: debug add _scratch_mount_options to the _scratch_mount X-Git-Tag: v2022.05.01~284 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=705b0e60bcb7f9f27ed851fa2fb00abf06575022;p=xfstests-dev.git common/rc: debug add _scratch_mount_options to the _scratch_mount 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 Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/rc b/common/rc index 7b80820f..84757fc1 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()