Skip to content

Instantly share code, notes, and snippets.

@dougvj
Last active November 9, 2022 22:17
Show Gist options
  • Save dougvj/e866760bb41b1d43aab79130ba1be1b3 to your computer and use it in GitHub Desktop.
Save dougvj/e866760bb41b1d43aab79130ba1be1b3 to your computer and use it in GitHub Desktop.
Patch to disable overlay in-use check
From e3f1af9e14f8311fb40f09057e5578e7121b346f Mon Sep 17 00:00:00 2001
From: Doug Johnson <[email protected]>
Date: Tue, 2 Jul 2019 03:29:31 -0600
Subject: [PATCH] overlayfs: disable in-use check
---
fs/overlayfs/super.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index b368e2e102fa..ecce0f1fee51 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -1313,11 +1313,11 @@ static int ovl_get_lower_layers(struct super_block *sb, struct ovl_fs *ofs,
if (err < 0)
goto out;
- err = -EBUSY;
+ /*err = -EBUSY;
if (ovl_is_inuse(stack[i].dentry)) {
pr_err("overlayfs: lowerdir is in-use as upperdir/workdir\n");
goto out;
- }
+ }*/
err = ovl_setup_trap(sb, stack[i].dentry, &trap, "lowerdir");
if (err)
--
2.22.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment