arter97 / exfat-linux

EOL exFAT filesystem module for Linux kernel. Everyone should be using https://github.com/namjaejeon/linux-exfat-oot instead.
Other
262 stars 61 forks source link

Add (fake) symlink support #22

Closed mkst closed 4 years ago

mkst commented 4 years ago

exfat-nofuse supports symlinks.

It doesn't look too difficult to port over the code from nofuse that handles symlinks.

Non-exhaustive list of changes:

I'm hacking my way through the list, if I get to the point where I can get symlinks to work I'll raise a PR. If anyone wants to tackle this in the meantime, that would be swell :)

arter97 commented 4 years ago

Previous branch from this also supports symlink.

It's left out this time to stay more inline with upstream's code and exFAT standard itself.

If you absolutely need symlink support, try out the old branch.

mkst commented 4 years ago

old branch gives me the same response as 5.4 kernel:

ln: failed to create symbolic link 'bar': Unknown error 524

Is there a specific revision of the old branch I should be trying?

arter97 commented 4 years ago

Did you use the symlink mount option?

mkst commented 4 years ago

Aha. symlink=1 sorted it. Thankyou!

piranna commented 3 years ago

What's the reason to don't have the symlinks feature behing a flag, both here or upstream? In fact, symlink hack could be used in all FAT filesystems in upstream kernel...

arter97 commented 3 years ago

https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/commit/drivers/staging/exfat?h=main&id=bb9397a356c6cc9a6e1d45633476fe83cf15a95f