Do not start the RPC services until the filesystem is ready.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 19 Feb 2010 00:28:11 +0000 (16:28 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 19 Feb 2010 00:28:11 +0000 (16:28 -0800)
nfs3/nfsd.c

index c952c68..d323fdb 100644 (file)
@@ -31,7 +31,6 @@ int main(int argc, char *argv[])
     int i;
     bluesky_init();
     g_set_prgname("nfsd");
-    register_rpc();
 
     const char *target = getenv("BLUESKY_TARGET");
     if (target == NULL)
@@ -40,6 +39,8 @@ int main(int argc, char *argv[])
     store = bluesky_store_new(target);
     fs = bluesky_init_fs("export", store);
 
+    register_rpc();
+
     bluesky_debug_dump(fs);
 
     svc_run();