Looks like fuse needs to implement FS_IOC_GETFLAGS/SETFLAGS/GETVERSION for attributes set via chattr and read via lsattr)
Following error message displayed,while trying to set a file as immutable. mntpt$chattr +i file.txt chattr: Function not implemented while reading flags on file.txt
chattr is specific to Ext3/4 filesystems. There is no need to implement them in FUSE or GlusterFS. Please mark this as invalid.
chattr is not just a ext based implementation since recent kernels 2.6.31 they are supported on brtfs and xfs implementations i guess they are the below attributes i mentioned in my earlier comment. internally for chattr a ioctl call in invoked which does a FS_IOC_GETFLAGS which is a standard flag for ioctl refer linux/fs.h kernel 2.6.31.
(In reply to comment #3) > chattr is not just a ext based implementation since recent kernels 2.6.31 they > are supported on brtfs and xfs implementations i guess they are the below > attributes i mentioned in my earlier comment. > > internally for chattr a ioctl call in invoked which does a FS_IOC_GETFLAGS > which is a standard flag for ioctl refer linux/fs.h kernel 2.6.31. Hmm, AFAICS it's called EXT2_IOC_SETFLAGS... but yeah, it works on xfs. Recent FUSE has ioctl support so if it's a needed feature I can look if it's feasible (however, if it's needed in one specific setup and not in general, then there is not much we could do if the kernel is older than FUSE got ioctls). Csaba