From: Sebastien Piechurski Date: Thu, 4 Feb 2016 16:45:16 +0000 (-0500) Subject: LU-7735 utils: Allow revert of NO_PRIMNODE X-Git-Tag: 2.9.51~19 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9cb507c6061d4d676de27d0b1b1cb471c1f1982d;p=fs%2Flustre-release.git LU-7735 utils: Allow revert of NO_PRIMNODE When formatting a target or modifying an existing one with the parameter "--servicenode", the flag no_primnode is set on the target, modifying the way the target is then registered on the MGS to avoid adding the NID of the node actually registering and let only the nids given with --servicenode parameters. However, if someone wants to revert to the older behavior with the "--failnode" parameter, the no_primnode flag is never unset, and the primary node NID is never added to the mountdata. Test-Parameters: trivial testlist=conf-sanity Signed-off-by: Nathaniel Clark Change-Id: I2251f66236c91365c03e7d138cd8e6508956d73d Reviewed-on: https://review.whamcloud.com/18304 Reviewed-by: Bob Glossman Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c index 1a365e9..d300878 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -359,6 +359,7 @@ int parse_opts(int argc, char *const argv[], struct mkfs_opts *mop, /* Must update the mgs logs */ ldd->ldd_flags |= LDD_F_UPDATE; if (opt == 'f') { + ldd->ldd_flags &= ~LDD_F_NO_PRIMNODE; failnode_set = 1; } else { ldd->ldd_flags |= LDD_F_NO_PRIMNODE;