projects
/
bluesky.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the log benchmark configurable and make a parameter sweep script.
[bluesky.git]
/
nfs3
/
nfsd.c
diff --git
a/nfs3/nfsd.c
b/nfs3/nfsd.c
index
f028459
..
fc1f955
100644
(file)
--- a/
nfs3/nfsd.c
+++ b/
nfs3/nfsd.c
@@
-26,17
+26,33
@@
void register_rpc();
BlueSkyFS *fs;
BlueSkyStore *store;
BlueSkyFS *fs;
BlueSkyStore *store;
+static void shutdown_handler(int num)
+{
+ g_print("SIGINT caught, shutting down...\n");
+ g_print("Proxy statistics:\n");
+ bluesky_stats_dump_all();
+ exit(1);
+}
+
int main(int argc, char *argv[])
{
int i;
int main(int argc, char *argv[])
{
int i;
+
+ signal(SIGPIPE, SIG_IGN);
+ signal(SIGINT, shutdown_handler);
+
bluesky_init();
bluesky_init();
-
register_rpc(
);
+
g_set_prgname("nfsd"
);
- bluesky_options.synchronous_stores = 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);
fs = bluesky_init_fs("export", store);
+ register_rpc();
+
bluesky_debug_dump(fs);
svc_run();
bluesky_debug_dump(fs);
svc_run();