From ac09f1d5e39e89ffe0a8b286e03276c8fffcabf2 Mon Sep 17 00:00:00 2001 From: rread Date: Thu, 20 Nov 2003 21:42:22 +0000 Subject: [PATCH] Override the local_nid in the logs during zeroconf mount. If the local_nid option is not specified, then mount.lustre will use the hostname for socknal, or /proc/elan/device0/position for qswnal. For nettype=elan, if remote_nid isn't set the mount.lustre will attempt to parse the hostname and use the first series of numbers as the nid. So, mdev20-eth1 will become elan id 20. --- lustre/llite/llite_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 4e3210d..bd94fdd 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -512,6 +512,7 @@ int lustre_fill_super(struct super_block *sb, void *data, int silent) cfg.cfg_instance = sbi->ll_instance; cfg.cfg_uuid = sbi->ll_sb_uuid; + cfg.cfg_local_nid = lmd->lmd_local_nid; err = lustre_process_log(lmd, lmd->lmd_profile, &cfg); if (err < 0) { CERROR("Unable to process log: %s\n", lmd->lmd_profile); -- 1.8.3.1