dorimanx / exfat-nofuse

Android ARM Linux non-fuse read/write kernel driver for exFat and VFat Android file systems
GNU General Public License v2.0
707 stars 326 forks source link

Add symlink support #117

Open piranna opened 7 years ago

piranna commented 7 years ago

Althought not part of the spec of ExFAT format, OSX added an extension to FAT filesystems that allow to have symlinks on them, by using special easy to identify ad-hoc files. We could be able to add this functionality too, on a modern UNIX system they are fairly important...

https://groups.google.com/forum/m/#!topic/exfat/vITmn9WcSd4

dorimanx commented 7 years ago

Exfat is a window file system, linux symlinks will not work as expected. You can create windows file links in exfat sdcard, and they will work under windows.

No need to mix different file system types.

piranna commented 7 years ago

Can you explain about "windows symlinks"? So far, I only know they are supported on NTFS, not on ExFAT...

On the other hand, reviewing the code I've find some code to create and read symlinks using some attributes, but found no documentation about how they work. Does already exfat-nofuse support symlinks?

El 21/6/2017 7:03, "Yuri.Sh" notifications@github.com escribió:

Exfat is a window file system, linux symlinks will not work as expected. You can create windows file links in exfat sdcard, and they will work under windows.

No need to mix different file system types.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dorimanx/exfat-nofuse/issues/117#issuecomment-309964032, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgfvqYAtlE3CTP21iJCSYM_TZeE25tQks5sGKQigaJpZM4OAR_P .

piranna commented 7 years ago

I've review the code and seems exfat-nofuse is using a reserved field to store a flag to say that file is in fact a symlink, and I'm not sure if it's doing the same trick with FAT32 filesystems too. Does that means that it support symlinks the UNIX way? In that case, then it would only needs to notify it when reading a file...

I'm thinking to use it as $HOME for NodeOS when booting directly from a pendrive.

piranna commented 6 years ago

@piranna It seems exfat has many hidden surprises.

Not ExFAT, but exfat-nofuse ;-)