journal: preserve acls when rotating user journals with NOCOW attribute set
authorFranck Bui <fbui@suse.com>
Mon, 14 Mar 2022 17:03:02 +0000 (18:03 +0100)
committerFranck Bui <fbui@suse.com>
Mon, 14 Mar 2022 17:03:02 +0000 (18:03 +0100)
commit11ee11dbb34587edcde5020c5baf1402dcc4ffdf
tree13018141dd725e816c6c2124bfa50389999b7f0c
parent43c893e73e461dd2df6fddbbd1808bb178adf833
journal: preserve acls when rotating user journals with NOCOW attribute set

When restoring the COW flag for journals on BTRFS, the full journal contents
are copied into new files. But during these operations, the acls of the
previous files were lost and users were not able to access to their old
journal contents anymore.
src/journal/managed-journal-file.c