1 /* Blue Sky: File Systems in the Cloud
3 * Copyright (C) 2009 The Regents of the University of California
4 * Written by Michael Vrable <mvrable@cs.ucsd.edu>
9 /* Main entry point for an NFSv3 server which will proxy requests to a cloud
12 #include "mount_prot.h"
15 #include <rpc/pmap_clnt.h>
18 #include <sys/socket.h>
19 #include <netinet/in.h>
29 static void shutdown_handler(int num)
31 g_print("SIGINT caught, shutting down...\n");
32 g_print("Proxy statistics:\n");
33 bluesky_stats_dump_all();
37 int main(int argc, char *argv[])
41 signal(SIGPIPE, SIG_IGN);
42 signal(SIGINT, shutdown_handler);
45 g_set_prgname("nfsd");
47 const char *target = getenv("BLUESKY_TARGET");
51 store = bluesky_store_new(target);
52 fs = bluesky_init_fs("export", store);
56 bluesky_debug_dump(fs);
59 fprintf(stderr, "%s", "svc_run returned");