X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=nfs3%2Fnfsd.c;h=d35c36d710882caa91b9736434f03a9918cc9295;hb=aa3638792c059633e2b84d42c2d41bdf17555381;hp=16011f4ab7bd8c5dc091e9188ab56490eeb8df55;hpb=8a2ef6b448a40c790e7df154c12b54932f3e62e0;p=bluesky.git diff --git a/nfs3/nfsd.c b/nfs3/nfsd.c index 16011f4..d35c36d 100644 --- a/nfs3/nfsd.c +++ b/nfs3/nfsd.c @@ -30,22 +30,13 @@ int main(int argc, char *argv[]) { int i; bluesky_init(); + g_set_prgname("nfsd"); register_rpc(); - bluesky_options.synchronous_stores = 1; - - store = bluesky_store_new("file"); + store = bluesky_store_new("s3"); fs = bluesky_init_fs("export", store); - BlueSkyInode *root; - root = bluesky_get_inode(fs, BLUESKY_ROOT_INUM); - if (root == NULL) { - printf("Initializing fresh root inode...\n"); - root = bluesky_new_inode(BLUESKY_ROOT_INUM, fs, BLUESKY_DIRECTORY); - root->nlink = 1; - root->mode = 0755; - bluesky_insert_inode(fs, root); - } + bluesky_debug_dump(fs); svc_run(); fprintf(stderr, "%s", "svc_run returned");