LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chattr: Operation not supported (https://www.linuxquestions.org/questions/linux-newbie-8/chattr-operation-not-supported-4175548038/)

chris101.park 07-15-2015 04:36 AM

chattr: Operation not supported
 
Hi, guys. I am a newbie in this world and studying based on RHEL7. Today I have encountered an error when I tried to put extended file attribute like this;

Code:

[root@host1 user1]# ll file1
-r-xr--r--. 1 user1 user1 1056 Jul 15 18:53 file1
[root@host1 user1]# chattr +c file1
chattr: Operation not supported while setting flags on file1

The file is simple text file and the file system is xfs.

Thanks in advance for any comment and advice.
Have a good day =)

Madhu Desai 07-15-2015 06:18 AM

xfs doesn't support chattr compression yet.

Code:

$ man xfs | tail -n21
FILE ATTRIBUTES
      The XFS filesystem supports setting the following file attributes on Linux systems using the chattr(1) utility:

      a - append only
      A - no atime updates
      d - no dump
      i - immutable
      S - synchronous updates

      For descriptions of these attribute flags, please refer to the chattr(1) man page.

SEE ALSO
      chattr(1), xfsctl(3), mount(8), mkfs.xfs(8), xfs_info(8), xfs_admin(8), xfsdump(8), xfsrestore(8).



All times are GMT -5. The time now is 07:48 AM.