2015-06-10 15:33:40

by Colin Walters

[permalink] [raw]
Subject: Re: [PATCH] overlayfs: Warn on copy up if a process has a R/O fd open to the lower file

On Thu, May 28, 2015, at 02:46 PM, David Howells wrote:
> Print a warning when overlayfs copies up a file if the process that triggered
> the copy up has a R/O fd open to the lower file being copied up.

Why not an option to make it an error? If one's goal is to use overlayfs
without apps potentially corrupting data, better to fail fast.


2015-06-10 16:43:38

by David Howells

[permalink] [raw]
Subject: Re: [PATCH] overlayfs: Warn on copy up if a process has a R/O fd open to the lower file

Colin Walters <[email protected]> wrote:

> On Thu, May 28, 2015, at 02:46 PM, David Howells wrote:
> > Print a warning when overlayfs copies up a file if the process that
> > triggered the copy up has a R/O fd open to the lower file being copied up.
>
> Why not an option to make it an error? If one's goal is to use overlayfs
> without apps potentially corrupting data, better to fail fast.

That could be added. Note that doing this isn't *necessarily* wrong though.

David