Re: [PATCH v2 22/35] vfs: don't open real

From: Amir Goldstein
Date: Mon May 07 2018 - 06:27:28 EST


On Mon, May 7, 2018 at 11:37 AM, Miklos Szeredi <mszeredi@xxxxxxxxxx> wrote:
> Let overlayfs do its thing when opening a file.
>
> This enables stacking and fixes the corner case when a file is opened for
> read, modified through a writable open, and data is read from the read-only
> file. After this patch the read-only open will not return stale data even
> in this case.
>

So now you can get rid of ovl_do_check_copy_up() and the check_copy_up
module param ;-)

Thanks,
Amir.