add uid and gid URL param to specify alternate uid and/or gid
[deb_libnfs.git] / lib / libnfs.c
index ec11ba5558ca30d592eea1069ee3e322e08864e2..f7a2bf07ea4698f8f152e1b6e6a05b446b0db5f5 100644 (file)
@@ -280,6 +280,13 @@ flags:
                if (strp2) {
                        *strp2 = 0;
                        strp2++;
+                       if (!strncmp(strp, "tcp-syncnt", 10)) {
+                               rpc_set_tcp_syncnt(nfs->rpc, atoi(strp2));
+                       } else if (!strncmp(strp, "uid", 3)) {
+                               rpc_set_uid(nfs->rpc, atoi(strp2));
+                       } else if (!strncmp(strp, "gid", 3)) {
+                               rpc_set_gid(nfs->rpc, atoi(strp2));
+                       }
                }
        }