什么文件系统支持Java UserDefinedFileAttributeView? [英] What file sytems support Java UserDefinedFileAttributeView?

查看:533
本文介绍了什么文件系统支持Java UserDefinedFileAttributeView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在文件系统中存储一个文件的自定义数据(每个文件大约有50个字节)。我没有任何其他存储空间来保存数据,也无法为此创建额外的文件。这些是我的要求,我不能改变它。

我已经发现,这可以使用UserDefinedFileAttributeView类。



<什么文件系统支持这个功能? NTFS,FAT,在Linux上的任何其他文件系统?



数据实际存储在哪里,它有多可靠?

NTFS,Ext4,ZFS。其他流行的文件系统也可能支持它们。
在以下文件系统FAT32,HFS +中找不到支持。


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?

解决方案

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+.

这篇关于什么文件系统支持Java UserDefinedFileAttributeView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆