]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: debug add _scratch_mount_options to the _scratch_mount
authorAnand Jain <anand.jain@oracle.com>
Fri, 13 Aug 2021 01:59:32 +0000 (09:59 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 15 Aug 2021 15:51:19 +0000 (23:51 +0800)
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>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc

index 7b80820ff680ddfacf151c6aac2d914d6233d525..84757fc1755ec46c9429b7f93977f930d3e0f48b 100644 (file)
--- 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()