-
Notifications
You must be signed in to change notification settings - Fork 882
Overlay on overlay fails #1537
Comments
Apparently, mounting an overlay fs inside another one doesn't work:
I also tried to mount
|
Is this not just a known limitation with overlay? On Mon, Oct 5, 2015 at 2:37 AM, Iago López Galeiras <
|
I just tried your commands and it worked for me. I'm using Linux 4.1.6-200.fc22.x86_64. |
Huh? Weird. |
@iaguis I tried your commands on Linux 4.0 and it worked, but Linux 4.2.2 (Ubuntu 15.10) failed. |
@iaguis what kernel are you running, is this a regression in 4.2? |
@ibuildthecloud yep, I'm running 4.2.2:
|
I tried the overlay-on-overlay example in
and it worked fine. |
I added a debug line in fs/inode.c:no_open() and the |
@alban did a git bisect, found the offending commit and reported it: http://marc.info/?l=linux-fsdevel&m=144422064220201&w=2 |
@ibuildthecloud There is a kernel patch that should fix the issue ovl-fix-open-in-stacked-overlay.patch. It worked for me when testing with @iaguis' commands. Can you check if it also work in your configuration? |
@ibuildthecloud ping? |
FYI; fix has been pushed upstream in 4.3: |
Great :) |
should we add a note to a doc somewhere about this ? |
Document the Linux fixes that rkt might need. See rkt#1537 (comment)
The kernel patch is now in the 4.2-stable tree. |
\o/ On Fri, Nov 6, 2015 at 11:04 AM Alban Crequy notifications@github.com
|
Reopening the issue since newer kernel (needs bisection) enforce restrictions on the upperdir (, and workdir) not to be on an overlayfs itself, see #2158 (comment). I.e. overlay-over-overlay mounts on newer kernels (at least >=4.8.8) fail with the #1537 (comment) example with the folowing error message:
|
@s-urbaniak perhaps a new issue for that one? |
@jonboulle ok, I will close this then, and create a dedicated issue. |
For some reason if
/var/lib/rkt
is on overlay rkt fails to the with the below errorThe easiest way to reproduce is run rkt in rkt with v0.8.1. I don't think this is a problem with overlay itself as I do this with Docker all the time.
The text was updated successfully, but these errors were encountered: