Skip to contentSkip to conversation

rpc.idmapd: Type of idmap client should be defined by ic_id not ic_clid.

PATCH In review Bian Naimeng 2 participants 2 messages Sep 14, 2010 – Sep 16, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpc.idmapd: Type of idmap client should be defined by ic_id not ic_clid.

The type of idmap_client is defined by idmap_client.ic_id for nfs, so nfsd should have the same style.

---
 utils/idmapd/idmapd.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
utils/idmapd/idmapd.c +4 -4
index 9ecab66..b76607a 100644
@@ -119,8 +119,8 @@ struct idmap_client {
 static struct idmap_client nfsd_ic[2] = {
 {
 	.ic_which = IC_IDNAME, 
-	.ic_clid = "Server", 
-	.ic_id = "", 
+	.ic_clid = "", 
+	.ic_id = "Server", 
 	.ic_path = IC_IDNAME_CHAN, 
 	.ic_fd = -1, 
 	.ic_dirfd = -1, 
@@ -128,8 +128,8 @@ static struct idmap_client nfsd_ic[2] = {
 },
 {
 	.ic_which = IC_NAMEID, 
-	.ic_clid = "Server", 
-	.ic_id = "", 
+	.ic_clid = "", 
+	.ic_id = "Server", 
 	.ic_path = IC_NAMEID_CHAN, 
 	.ic_fd = -1, 
 	.ic_dirfd = -1, 
Signature · 7 lines
1.6.5.2



-- 
Regards
Bian Naimeng
#1 lore raw
Quoted 4 lines · Bian Naimeng

The type of idmap_client is defined by idmap_client.ic_id for nfs, so nfsd should have the same style.

Committed...

steved.

Quoted 33 lines
---
 utils/idmapd/idmapd.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
utils/idmapd/idmapd.c +4 -6
index 9ecab66..b76607a 100644
@@ -119,8 +119,8 @@ struct idmap_client {
 static struct idmap_client nfsd_ic[2] = {
 {
 	.ic_which = IC_IDNAME, 
-	.ic_clid = "Server", 
-	.ic_id = "", 
+	.ic_clid = "", 
+	.ic_id = "Server", 
 	.ic_path = IC_IDNAME_CHAN, 
 	.ic_fd = -1, 
 	.ic_dirfd = -1, 
@@ -128,8 +128,8 @@ static struct idmap_client nfsd_ic[2] = {
 },
 {
 	.ic_which = IC_NAMEID, 
-	.ic_clid = "Server", 
-	.ic_id = "", 
+	.ic_clid = "", 
+	.ic_id = "Server", 
 	.ic_path = IC_NAMEID_CHAN, 
 	.ic_fd = -1, 
 	.ic_dirfd = -1, 
-- 1.6.5.2
-- Regards Bian Naimeng