matteoserva/MegaFuse

Inconsistent behavior when removing and possibly modifying symlinks

Opened this issue · 0 comments

After I create and then unlink a symlink any further actions on that path and on the parent path is broken:

~ > ln -s /tmp /run/user/1000/megafuse/mnt/mylink
~ > stat /run/user/1000/megafuse/mnt/mylink
  File: /run/user/1000/megafuse/mnt/mylink -> /tmp
  Size: 1         	Blocks: 0          IO Block: 4096   symbolic link
Device: 31h/49d	Inode: 68          Links: 1
Access: (0666/lrw-rw-rw-)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 1970-01-01 04:00:00.000000000 +0400
Modify: 2018-04-30 23:02:57.000000000 +0400
Change: 1970-01-01 04:00:00.000000000 +0400
 Birth: -
~ > rm /run/user/1000/megafuse/mnt/mylink
~ > ln -s /tmp /run/user/1000/megafuse/mnt/mylink
ln: failed to create symbolic link '/run/user/1000/megafuse/mnt/mylink': No such file or directory
~ > ls -l /run/user/1000/megafuse/mnt
ls: cannot access '/run/user/1000/megafuse/mnt/mylink': No such file or directory
?????????? ? ?    ?            ?            ?  mylink
drwxrwxrwx 1 root root      4096 Jun 29  2017 'Camera Uploads'
...

For now going to opt out of using symlincs there completely.