]> git.ipfire.org Git - thirdparty/linux.git/commit
ovl: Ensure that all layers have the same encoding
authorAndré Almeida <andrealmeid@igalia.com>
Thu, 14 Aug 2025 17:22:16 +0000 (14:22 -0300)
committerAmir Goldstein <amir73il@gmail.com>
Tue, 23 Sep 2025 10:29:35 +0000 (12:29 +0200)
commit1f7168b28f667c0920fd83151ae35ce593950663
treea328ba152c12bacf3b76ce7b31c9e9b5eef75671
parentee95c5fc86ddd10c354da554442582a2d12a1b90
ovl: Ensure that all layers have the same encoding

When merging layers from different filesystems with casefold enabled,
all layers should use the same encoding version and have the same flags
to avoid any kind of incompatibility issues.

Also, set the encoding and the encoding flags for the ovl super block as
the same as used by the first valid layer.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
fs/overlayfs/super.c