From 798d9415c40b6daf7fcfeb224f9f10da4cfebdce Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Thu, 4 Feb 2010 16:03:25 -0800 Subject: [PATCH] Make storage backend selectable via environment variable. --- nfs3/nfsd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.20.1