Make storage backend selectable via environment variable.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 5 Feb 2010 00:03:25 +0000 (16:03 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Fri, 5 Feb 2010 00:03:25 +0000 (16:03 -0800)
nfs3/nfsd.c

index d35c36d..c952c68 100644 (file)
@@ -33,7 +33,11 @@ int main(int argc, char *argv[])
     g_set_prgname("nfsd");
     register_rpc();
 
-    store = bluesky_store_new("s3");
+    const char *target = getenv("BLUESKY_TARGET");
+    if (target == NULL)
+        target = "s3";
+
+    store = bluesky_store_new(target);
     fs = bluesky_init_fs("export", store);
 
     bluesky_debug_dump(fs);