From: Vivek Goyal <vgoyal@redhat.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Chengguang Xu <cgxu519@icloud.com>,
Miklos Szeredi <miklos@szeredi.hu>,
overlayfs <linux-unionfs@vger.kernel.org>
Subject: Re: [PATCH v3] ovl: Check link ability between upperdir and workdir
Date: Tue, 19 Dec 2017 10:42:42 -0500 [thread overview]
Message-ID: <20171219154242.GA6043@redhat.com> (raw)
In-Reply-To: <CAOQ4uxi-wpRdUv20uaSrE=R_kYWcb8jmOUu-Xp+XeA-AA0-eWA@mail.gmail.com>
On Tue, Dec 19, 2017 at 04:11:13PM +0200, Amir Goldstein wrote:
[..]
> With non-indexed copy up (of regular file, when O_TMPFILE supported)
> tmpfile is created in upperdir and linked to upper dir, which allows for
> concurrent copy up of two files within different parent dirs.
Is it correct. I am looking at the code and we always seem to get tmpfile
in work/work.
ovl_copy_up_locked()
ovl_get_tmpfile()
ovl_do_tmpfile(c->workdir, c->stat.mode)
I was hoping that for a regular file copy up, we could create tmpfile in
upper/ so that we don't have the requirement of allowing linking between
work/ and upper/ as long as upper supported tmpfile. But given that index
will require linking with alias in upper, we can't get rid of this
requirement completely.
Vivek
next prev parent reply other threads:[~2017-12-19 15:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-18 12:55 [PATCH v3] ovl: Check link ability between upperdir and workdir Chengguang Xu
2017-12-18 14:12 ` Amir Goldstein
2017-12-18 16:02 ` Vivek Goyal
2017-12-19 1:49 ` Chengguang Xu
2017-12-19 13:48 ` Vivek Goyal
2017-12-19 14:11 ` Amir Goldstein
2017-12-19 15:42 ` Vivek Goyal [this message]
2017-12-19 18:32 ` Amir Goldstein
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=20171219154242.GA6043@redhat.com \
--to=vgoyal@redhat.com \
--cc=amir73il@gmail.com \
--cc=cgxu519@icloud.com \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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