From eecf886f2491af99af66ebde2ef9793f060cf2ff Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Wed, 12 Oct 2016 19:05:13 +0800 Subject: [PATCH] LU-9059 utils: skip label check for client When mounting Lustre client, the device label should not be checked. Change-Id: I5018e5361545ed6c4e31e3d85360bb8fa5670b5e Signed-off-by: Hongchao Zhang Reviewed-on: https://review.whamcloud.com/25234 Tested-by: Jenkins Reviewed-by: Fan Yong Reviewed-by: Bob Glossman Reviewed-by: Jian Yu Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/utils/mount_lustre.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 1b36529..8c597cd 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -848,7 +848,8 @@ int main(int argc, char *const argv[]) rc = mount(mop.mo_source, mop.mo_target, "lustre", flags, (void *)options); if (rc == 0) { - label_lustre(&mop); + if (!client) + label_lustre(&mop); } else { if (verbose) { fprintf(stderr, "%s: mount %s at %s " -- 1.8.3.1