From: Hongchao Zhang Date: Wed, 12 Oct 2016 11:05:13 +0000 (+0800) Subject: LU-9059 utils: skip label check for client X-Git-Tag: 2.9.54~57 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=eecf886f2491af99af66ebde2ef9793f060cf2ff;p=fs%2Flustre-release.git 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 --- 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 "