XattrSupport接口主要用来实现文件系统的一些扩展属性,如果所需的文件系统需要一些额外的扩展属性,则可以添加上对XattrSupport的继承。
其成员主要有:
public static final int XATTR_CREATE = 0x1;
public int getxattrsize(String path, String name, FuseSizeSetter sizeSetter)
throws FuseException;
public int getxattr(String path, String name, ByteBuffer dst)
public int listxattr(String path, XattrLister lister) throws FuseException;
public int setxattr(String path, String name, ByteBuffer value, int flags)
throws FuseException;
public int removexattr(String path, String name) throws FuseException;
这些成员主要是对attr值进行的一些操作。