2

I know about the overlayfs that it treats lower directory as a read-only and copy_up when we want to modify the lower file

so is there any way to modify the lower file and it can copy the modified file to the lower directory?

From https://www.kernel.org/doc/Documentation/filesystems/overlayfs.txt

Changes to the underlying filesystems while part of a mounted overlay filesystem are not allowed. If the underlying filesystem is changed, the behavior of the overlay is undefined, though it will not result in a crash or deadlock.

jasonwryan
  • 73,126
yayaya
  • 79
  • It's impoosible cuz that's the rule of overlayfs. So I use mergerfs to do my own filesystem. Google mergerfs. – yayaya Jun 12 '17 at 10:56
  • 1
    I've posted a couple of answers to my own question (https://unix.stackexchange.com/q/393930) which covers this topic. – ejm Sep 23 '17 at 02:49

0 Answers0