Inode attributes set with lsattr are not copied to other filesystems in Linux

Some of the common tools like cp/rsync do not support copying of inode attributes, so it is not possible to copy these attributes across or even on the same filesystems.

These are inode flags (attributes) and not the regular attributes.

Some Linux filesystems support inode flags, attributes that modify the semantics of files and directories. These flags can be modified and retrieved using ioctl operations. The lsattr and chattr shell commands provide interfaces to these operations, allowing a user to view and modify the inode flags associated with a file.

Inode flags are a nonstandard Linux extension and may be implemented if desired within a filesystem and in a non-uniform way.

Leave a Reply