From 8243944c991da206b5a809a39c3335504a00d559 Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Tue, 17 Nov 2020 14:20:37 +0100 Subject: [PATCH] sys-kernel: enable metacopy and redirect_dir for overlayfs Enable CONFIG_OVERLAY_FS_METACOPY, metadata only copy up feature in overlayfs. When turned on, overlayfs will only copy up metadata when a metadata specific operation like chown/chmod is performed. Full file will be copied up later when file is opened for WRITE operation. More or less like delayed data copy up operation. Enable CONFIG_OVERLAY_FS_REDIRECT_DIR, which is equivalent to "redirect_dir=on" in the kernel command-line. When turned on, overlayfs will copy up directory first, before the actual contents. See also https://github.com/kinvolk/Flatcar/issues/170 --- .../sys-kernel/coreos-modules/files/commonconfig-5.9 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/commonconfig-5.9 b/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/commonconfig-5.9 index 5f079033b1..fe01a50a73 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/commonconfig-5.9 +++ b/sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-modules/files/commonconfig-5.9 @@ -696,6 +696,8 @@ CONFIG_NVME_TARGET_LOOP=m CONFIG_NVME_TARGET_RDMA=m CONFIG_OPENVSWITCH=m CONFIG_OVERLAY_FS=m +CONFIG_OVERLAY_FS_METACOPY=y +CONFIG_OVERLAY_FS_REDIRECT_DIR=y CONFIG_PACKET=y CONFIG_PACKET_DIAG=m CONFIG_PANIC_ON_OOPS=y