I'm new to FUSE and c and FSs and I'm messing with passthrough FS example which is given in the libfuse package. Can anyone give a hint where in the code it is commanded that FUSE mirror my root dir, please? Cause I found the two base functions - *xmp_init() and main() - pretty laconic.
Here they are:
static void *xmp_init(struct fuse_conn_info *conn,
struct fuse_config *cfg)
{
(void) conn;
cfg->use_ino = 1;
cfg->entry_timeout = 0;
cfg->attr_timeout = 0;
cfg->negative_timeout = 0;
return NULL;
}
int main(int argc, char *argv[])
{
umask(0);
return fuse_main(argc, argv, &xmp_oper, NULL);
}
And other functions are just, like, implementations of libfuse interface...stuff. I need to make my own crippled FS, I need to modify passthrough.c so that mounted FS would be a white sheet and I could make use of implemented functions and manage files and stuff.