Closed mkst closed 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.
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?
Did you use the symlink mount option?
Aha. symlink=1
sorted it. Thankyou!
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...
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:
TYPE_SYMLINK
andATTR_SYMLINK
toexfat_fs.h
andexfat_raw.h
target
toexfat_inode_info
struct (?)exfat_set_entry_type
to set attributes when encountering a symlinkexfat_make_mode
inexfat_super.h
exfat_symlink_inode_operations
infile.c
along with definitions ofexfat_follow_link
/exfat_get_link
exfat_fill_inode
ininode.c
to call exfat_symlink_inode_operations when dealing with a symlinkexfat_symlink
tonamei.c
to handle symlink creationinode_operations
to add.symlink
exfat_lookup
to handle symlinksI'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 :)