Search code examples
javafilesystemsmetadatanio

What file sytems support Java UserDefinedFileAttributeView?


I need to store custom data with a file in file system (about 50 bytes with each file). I do not have any other storage to keep the data and can not create an extra file for this. These are my requirements I can not change it.

I have found that this can be done using UserDefinedFileAttributeView class.

What file systems support this feature? NTFS, FAT, any other file systems on Linux?

Where the data is actually stored and how reliable is it?


Solution

  • I have tested that custom attributes are supported by following file systems via UserDefinedFileAttributeView: NTFS, Ext4, ZFS. Other popular file systems may support them also. No support was found within following file systems FAT32, HFS+.