From: Michael Vrable Date: Fri, 5 Feb 2010 00:03:25 +0000 (-0800) Subject: Make storage backend selectable via environment variable. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=798d9415c40b6daf7fcfeb224f9f10da4cfebdce;p=bluesky.git Make storage backend selectable via environment variable. --- diff --git a/nfs3/nfsd.c b/nfs3/nfsd.c index d35c36d..c952c68 100644 --- a/nfs3/nfsd.c +++ b/nfs3/nfsd.c @@ -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);