|
From: | Paul Eggert |
Subject: | Re: GNU tar can't preserve file immutable attribute set by "chattr +i" in Linux |
Date: | Sun, 3 Mar 2024 14:35:16 -0800 |
User-agent: | Mozilla Thunderbird |
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?
[Prev in Thread] | Current Thread | [Next in Thread] |