#include <lunaix/mm/valloc.h>
#include <lunaix/spike.h>
-#include <sys/mm/pagetable.h>
+#include <asm/pagetable.h>
static struct twifs_node* fs_root;
{
inode->ops = (struct v_inode_ops*)&twifs_inode_ops;
inode->default_fops = (struct v_file_ops*)&twifs_file_ops;
+
+
+ // we set default access right to be 0660.
+ // TODO need a way to allow this to be changed
+
+ fsapi_inode_setaccess(inode, FSACL_DEFAULT);
+ fsapi_inode_setowner(inode, 0, 0);
}
int