Permissions issue
I compiled πfs and tried to mount a directory with it:
$ ls
bin mdd root
$ ./bin/πfs root -o mdd=mdd
$ cd root
-bash: cd: root: No such file or directory
$ ls -lh | grep root
d????????? ? ? ? ? ? root
What's wrong?
I use x86_64 Linux.
@therussianphysicist I didn't say that you did. I linked to this issue because the actual issue both of you are facing is the same. Neither of you are able to access the filesystem once it is mounted, which is the same issue I am facing as well.
I've tried to mount pifs and got the same issue. The reason is in pifs_getattr. It handles root pifs directory incorrectly when metadata directory specified as relative. So quick workaround: use absolute paths:
pifs -o mdd=`pwd`/metadata/ mnt/
Mine wouldn't work with the mount path in my user's /home/username/mountpoint directory. I had to have both the mountpoint & meta directories in /mnt: /mnt/pifs/mountpoint/ & /mnt/second-hdd/pifsmeta/
Then I was able to have it autostart using root's crontab: @reboot /usr/local/bin/πfs -o mdd=/mnt/second-hdd/pifsmeta/ /mnt/pifs/mountpoint/
Doing this allows root access to the pifs mountpoint, but not user access unfortunately. I don't know a solution to that & will have to use the dir as root all the time. Chown user:user /path didn't work.