On 2024-03-02 18:35, 孟 大兴 wrote:
Is it possible preserve file immutable attribute set by "chattr +i" when using GNU tar in Linux? Or add this function into GNU tar?
It should be possible, yes. The attributes you're talking about are inode flags (see "man ioctl_iflags"). If bsdtar has some way to represent these flags in a tar file, presumably GNU Tar should use the same format.
Is that something you could implement?