From 9ac8c51aa020a12b8a5449a035c18da7332a336a Mon Sep 17 00:00:00 2001 From: Ethan Dye Date: Mon, 23 Dec 2024 21:19:22 -0700 Subject: [PATCH] Add metacopy support Fixes #127 Signed-off-by: Ethan Dye --- zram-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zram-config b/zram-config index f76e41a..ff23633 100755 --- a/zram-config +++ b/zram-config @@ -145,7 +145,7 @@ createZdir() { mkdir -p "${ZDIR}/zram${RAM_DEV}" mount --types "$dirFSType" -o "$dirMountOpt" "/dev/zram${RAM_DEV}" "${ZDIR}/zram${RAM_DEV}/" &> /dev/null || retVal=1 mkdir -p "${ZDIR}/zram${RAM_DEV}/upper" "${ZDIR}/zram${RAM_DEV}/workdir" "$TARGET_DIR" - mount --types overlay -o "redirect_dir=on,lowerdir=${ZDIR}${BIND_DIR},upperdir=${ZDIR}/zram${RAM_DEV}/upper,workdir=${ZDIR}/zram${RAM_DEV}/workdir" "overlay${RAM_DEV}" "$TARGET_DIR" &> /dev/null || retVal=1 + mount --types overlay -o "redirect_dir=on,metacopy=on,lowerdir=${ZDIR}${BIND_DIR},upperdir=${ZDIR}/zram${RAM_DEV}/upper,workdir=${ZDIR}/zram${RAM_DEV}/workdir" "overlay${RAM_DEV}" "$TARGET_DIR" &> /dev/null || retVal=1 chown "${dirUser}:${dirGroup}" "${ZDIR}/zram${RAM_DEV}/upper" "${ZDIR}/zram${RAM_DEV}/workdir" "$TARGET_DIR" &> /dev/null || retVal=1 chmod "$dirPerm" "${ZDIR}/zram${RAM_DEV}/upper" "${ZDIR}/zram${RAM_DEV}/workdir" "$TARGET_DIR" &> /dev/null || retVal=1 if [[ $retVal -ne 0 ]]; then