Make kvstore backend in BlueSky asynchronous.
[bluesky.git] / nfs3 / nfsd.c
index 9b6ba39..c952c68 100644 (file)
@@ -33,9 +33,11 @@ int main(int argc, char *argv[])
     g_set_prgname("nfsd");
     register_rpc();
 
-    bluesky_options.async_inode_fetches = 1;
+    const char *target = getenv("BLUESKY_TARGET");
+    if (target == NULL)
+        target = "s3";
 
-    store = bluesky_store_new("s3");
+    store = bluesky_store_new(target);
     fs = bluesky_init_fs("export", store);
 
     bluesky_debug_dump(fs);