I'm trying to mount my filesystem to a empty directory. The directory is /home/test
. I have the following functions already written:
- access
- getattr
- readdir
- statfs
- mkdir
- rmdir
- create
- write
- read
I use the command ./fusetest /home/test -d
to mount my filesystem. When I try to ls
under the directory of /home/test
, I get the error information:
ls: cannot open directory .: Input/output error"
Like the following image shows :
And the debug information is here:
What is the problem and how do I fix it?