CMake reorganization.
[bluesky.git] / nfs3 / nfsd.c
index abd1050..ab7b749 100644 (file)
@@ -19,6 +19,7 @@
 #include <netinet/in.h>
 #include <glib.h>
 
+#include "libs3.h"
 #include "bluesky.h"
 
 void register_rpc();
@@ -30,16 +31,18 @@ int main(int argc, char *argv[])
     g_thread_init(NULL);
     register_rpc();
 
+    S3_initialize(NULL, S3_INIT_ALL);
+
     fs = bluesky_new_fs("export");
 
     BlueSkyInode *root;
-    root = bluesky_new_inode(BLUESKY_ROOT_INUM, BLUESKY_DIRECTORY);
+    root = bluesky_new_inode(BLUESKY_ROOT_INUM, fs, BLUESKY_DIRECTORY);
     root->nlink = 1;
     root->mode = 0755;
     bluesky_insert_inode(fs, root);
 
     BlueSkyInode *file;
-    file = bluesky_new_inode(bluesky_fs_alloc_inode(fs), BLUESKY_REGULAR);
+    file = bluesky_new_inode(bluesky_fs_alloc_inode(fs), fs, BLUESKY_REGULAR);
     file->nlink = 1;
     file->mode = 0755;
     bluesky_insert_inode(fs, file);