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
This commit is contained in:
Dongsu Park 2020-11-17 14:20:37 +01:00
parent 92a5bb56e8
commit 8243944c99

View File

@ -696,6 +696,8 @@ CONFIG_NVME_TARGET_LOOP=m
CONFIG_NVME_TARGET_RDMA=m CONFIG_NVME_TARGET_RDMA=m
CONFIG_OPENVSWITCH=m CONFIG_OPENVSWITCH=m
CONFIG_OVERLAY_FS=m CONFIG_OVERLAY_FS=m
CONFIG_OVERLAY_FS_METACOPY=y
CONFIG_OVERLAY_FS_REDIRECT_DIR=y
CONFIG_PACKET=y CONFIG_PACKET=y
CONFIG_PACKET_DIAG=m CONFIG_PACKET_DIAG=m
CONFIG_PANIC_ON_OOPS=y CONFIG_PANIC_ON_OOPS=y