Hi, I have created a small virtual filesystem using FUSE, I can mount it and create or delete files. After unmounting all the work I have done is simply gone.
I want to make it persistent so that after unmounting or system reboot, if I mount it again I could see the contents as they were before at the time of unmounting or system reboot.
Is there any method to create an Image, link it to our FUSE based filesystem and the work done is simply saved in that Image, so that if I mount that Image again I can see the contents again.
Thanks
What I have tried:
My main function is simply calling fuse_main() as
return fuse_main(argc, argv, &myStruct, NULL);