Linux Overlay Filesystem development
 help / color / mirror / Atom feed
From: steve landiss <steve.landiss@yahoo.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: "linux-unionfs@vger.kernel.org" <linux-unionfs@vger.kernel.org>,
	Al Viro <viro@zeniv.linux.org.uk>
Subject: Re: Bug in overlay FS
Date: Fri, 22 May 2015 00:51:03 +0000 (UTC)	[thread overview]
Message-ID: <423094758.67304.1432255863385.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <CAJfpegsGtzK-ykK7tXJjZabAZERJ_NcMyZbeTkB5HB3s-43Skg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1772 bytes --]

A company we are evaluating says they  have a fix for this and they advised me that they will send you the fix shortly.
Regards,Steve 


     On Thursday, May 21, 2015 8:38 AM, Miklos Szeredi <miklos@szeredi.hu> wrote:
   

 [Al Viro and linux-unionfs added to Cc]

On Tue, May 19, 2015 at 11:30 PM, steve landiss <steve.landiss@yahoo.com> wrote:
>
> On Tuesday, May 19, 2015 2:12 AM, Miklos Szeredi <miklos@szeredi.hu> wrote:
> >
> >
> > On Mon, May 18, 2015 at 10:35 PM, steve landiss <steve.landiss@yahoo.com>
> > wrote:
> >
> >> A data consistency bug is demonstrated by the following program:
> >>
> >> - Pick a file from the lower layer that has never been written
> >> - Open it twice once in O_RDONLY (fd1) and once in O_RDWR (fd2)
> >> - Write to fd2, read from fd1 -> data inconsistency!
> >> I understand why it happens, is there a fix planned for this?
> >
> >
>>  Not presently.
> >
> > This is a feature of both overlayfs and union-mounts.  Aufs, a full
> > union-filesystem doesn't suffer from this probelm.
> >
> > Is this causing a real-world problem, or is this purely theoretical?

> yum fails right off the bat.  Because it opens a file in read only, then
> another process or thread writes to the file.
>
> Our build process in Docker does not work because of this, and I know of
> many others that have this issue
>
> overlayfs fails to run container with a strange file checksum error · Issue
> #10180 · docker/docker

Okay, this is not easy to fix, but I wouldn't say impossible.

I think it connects with the idea of revoking file descriptors.
Except here we don't want to revoke, but replace on copy-up.

But it might be easier to just to do the union-filesystem thing.

Thanks,
Miklos

  

[-- Attachment #2: Type: text/html, Size: 3844 bytes --]

      reply	other threads:[~2015-05-22  0:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAJfpegt+O78vh_FcLSVxqY6gnzR7t0GW-D0=RuvyvqikR=RTXQ@mail.gmail.com>
     [not found] ` <1084458602.2805420.1432071057532.JavaMail.yahoo@mail.yahoo.com>
2015-05-21 15:38   ` Bug in overlay FS Miklos Szeredi
2015-05-22  0:51     ` steve landiss [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=423094758.67304.1432255863385.JavaMail.yahoo@mail.yahoo.com \
    --to=steve.landiss@yahoo.com \
    --cc=linux-unionfs@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox