[lustre-devel] [PATCH 429/622] lnet: create existing net returns EEXIST
James Simmons
jsimmons at infradead.org
Thu Feb 27 13:14:57 PST 2020
From: Olaf Faaland <faaland1 at llnl.gov>
When "lnetctl net add" is called for an interface/net pair that
already exists, the error returned should be EEXIST, so the
user knows that the net is already configured.
WC-bug-id: https://jira.whamcloud.com/browse/LU-12626
Lustre-commit: 4aa71267cc03 ("LU-12626 lnet: create existing net returns EEXIST")
Signed-off-by: Olaf Faaland <faaland1 at llnl.gov>
Reviewed-on: https://review.whamcloud.com/35681
Reviewed-by: Chris Horn <hornc at cray.com>
Reviewed-by: Amir Shehata <ashehata at whamcloud.com>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
net/lnet/lnet/api-ni.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/lnet/lnet/api-ni.c b/net/lnet/lnet/api-ni.c
index e773839..79deaac 100644
--- a/net/lnet/lnet/api-ni.c
+++ b/net/lnet/lnet/api-ni.c
@@ -2301,7 +2301,7 @@ static void lnet_push_target_fini(void)
* up is actually unique. if it's not fail. */
if (!lnet_ni_unique_net(&net_l->net_ni_list,
ni->ni_interfaces[0])) {
- rc = -EINVAL;
+ rc = -EEXIST;
goto failed1;
}
--
1.8.3.1
More information about the lustre-devel
mailing list