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 int main(int argc, char *argv[])
35 store = bluesky_store_new("file");
36 fs = bluesky_init_fs("export", store);
39 root = bluesky_get_inode(fs, BLUESKY_ROOT_INUM);
41 printf("Initializing fresh root inode...\n");
42 root = bluesky_new_inode(BLUESKY_ROOT_INUM, fs, BLUESKY_DIRECTORY);
45 bluesky_insert_inode(fs, root);
49 fprintf(stderr, "%s", "svc_run returned");