From 8c66498dd34a97a5a49eaca827161fba8a9df930 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 d1a367dde..59f816b66 100644 --- a/src/borg/platform/linux.pyx +++ b/src/borg/platform/linux.pyx @@ -126,10 +126,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):