From aea883b700f29fbb9ddfdcb5330c79cf30a3c20a Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 17 Oct 2025 02:41:53 +0200 Subject: [PATCH] set_flags: remove compression flag This flag needs to be set BEFORE writing to the file. But "borg extract" sets the flags last (to support IMMUTABLE), thus the compression flag would not work as expected. (cherry picked from commit 56dda841623f90556b37798e85f9371ebe4a3de2) --- src/borg/platform/linux.pyx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/borg/platform/linux.pyx b/src/borg/platform/linux.pyx index a76b36388..e3f0d3859 100644 --- a/src/borg/platform/linux.pyx +++ b/src/borg/platform/linux.pyx @@ -124,10 +124,9 @@ BSD_TO_LINUX_FLAGS = { stat.UF_NODUMP: FS_NODUMP_FL, stat.UF_IMMUTABLE: FS_IMMUTABLE_FL, stat.UF_APPEND: FS_APPEND_FL, - stat.UF_COMPRESSED: FS_COMPR_FL, } # must be a bitwise OR of all values in BSD_TO_LINUX_FLAGS. -LINUX_MASK = FS_NODUMP_FL | FS_IMMUTABLE_FL | FS_APPEND_FL | FS_COMPR_FL +LINUX_MASK = FS_NODUMP_FL | FS_IMMUTABLE_FL | FS_APPEND_FL def set_flags(path, bsd_flags, fd=None):