From 6c3947c32b6ac0245761f4e643137fb2266757f7 Mon Sep 17 00:00:00 2001 From: rread Date: Wed, 12 Nov 2003 06:16:30 +0000 Subject: [PATCH] fix cut-n-paste error --- lustre/obdclass/obd_config.c | 2 +- lustre/utils/llmount.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index 5a996de..91090a1 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -102,7 +102,7 @@ int class_attach(struct lustre_cfg *lcfg) } obd = class_newdev(&dev); - if (dev == -1) + if (obd == NULL) RETURN(-EINVAL); /* have we attached a type to this device */ diff --git a/lustre/utils/llmount.c b/lustre/utils/llmount.c index abe44c7..f78d3c8 100644 --- a/lustre/utils/llmount.c +++ b/lustre/utils/llmount.c @@ -120,13 +120,14 @@ int set_peer(char *hostname, struct lustre_mount_data *lmd) { ptl_nid_t nid = 0; - + if (lmd->lmd_server_nid == 0) { if (ptl_parse_nid (&nid, hostname) != 0) { fprintf (stderr, "mount: can't parse NID %s\n", hostname); return (-1); } + lmd->lmd_server_nid = nid; } if (!lmd->lmd_nal) @@ -142,11 +143,10 @@ set_peer(char *hostname, struct lustre_mount_data *lmd) } } - if (verbose) + if (verbose) { printf("nal %d\n", lmd->lmd_nal); - - - lmd->lmd_server_nid = nid; + printf("server_nid: %d\n", lmd->lmd_server_nid); + } return 0; } -- 1.8.3.1