projects
/
bluesky.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b114ba6
)
Make storage backend selectable via environment variable.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Fri, 5 Feb 2010 00:03:25 +0000
(16:03 -0800)
committer
Michael Vrable
<mvrable@cs.ucsd.edu>
Fri, 5 Feb 2010 00:03:25 +0000
(16:03 -0800)
nfs3/nfsd.c
patch
|
blob
|
history
diff --git
a/nfs3/nfsd.c
b/nfs3/nfsd.c
index
d35c36d
..
c952c68
100644
(file)
--- 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);