NFS cache writeback is now invoked periodically by a timer.
[bluesky.git] / nfs3 / nfsd.c
index 03b39fb..f028459 100644 (file)
 void register_rpc();
 
 BlueSkyFS *fs;
+BlueSkyStore *store;
 
 int main(int argc, char *argv[])
 {
-    g_thread_init(NULL);
+    int i;
+    bluesky_init();
     register_rpc();
 
-    BlueSkyInode *root;
-    root = bluesky_new_inode(BLUESKY_ROOT_INUM, BLUESKY_DIRECTORY);
-    root->nlink = 1;
-    root->mode = 0755;
-    bluesky_insert_inode(fs, root);
+    bluesky_options.synchronous_stores = 1;
 
-    svc_run ();
-    fprintf (stderr, "%s", "svc_run returned");
-    exit (1);
-    /* NOTREACHED */
+    store = bluesky_store_new("s3");
+    fs = bluesky_init_fs("export", store);
+
+    bluesky_debug_dump(fs);
+
+    svc_run();
+    fprintf(stderr, "%s", "svc_run returned");
+    exit(1);
 }