From: Vivek Goyal <vgoyal@redhat.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
"zhangyi (F)" <yi.zhang@huawei.com>,
overlayfs <linux-unionfs@vger.kernel.org>,
miaoxie@huawei.com, Theodore Tso <tytso@mit.edu>
Subject: Re: two questiones about overlayfs
Date: Wed, 16 Aug 2017 14:37:57 -0400 [thread overview]
Message-ID: <20170816183757.GA401@redhat.com> (raw)
In-Reply-To: <CAOQ4uxh_CDmv42T7o5oLe5SP_SYFq60QPtLGyjoNLsAxQiMJkw@mail.gmail.com>
On Wed, Aug 16, 2017 at 06:12:57PM +0200, Amir Goldstein wrote:
> On Wed, Aug 16, 2017 at 3:52 PM, Vivek Goyal <vgoyal@redhat.com> wrote:
> > On Wed, Aug 16, 2017 at 12:19:22PM +0200, Miklos Szeredi wrote:
> ...
> >>
> >> What about copy up of flags? Should we? Does reflink copy the flags?
> >
> > Oh yes, copy up of flags seem to be an issue too. I have a file on lower
> > with project id 123 and once that file gets copied up, project id goes
> > back to 0.
> >
> > [merged]# lsattr -p foo.txt
> > 123 ------------------- foo.txt
> >
> > [merged]# touch foo.txt
> >
> > [merged]# lsattr -p foo.txt
> > 0 ------------------- foo.txt
> >
>
> Vivek,
>
> This specific case I would tag as "desired behavior".
> This is the behavior that allowed us to implement container storage quota
> for docker using overlayfs + project quota set on overlay upper dir.
> Copy up file inherits its project quota id from upper dir recursively, which
> at least for docker use case is "desired behavior"
Hi Amir,
I am not quota expert but it kind of makes sense to me. So when a file is
copied up it is a newly created file which will inherit its project id from its
parent directory (or ancestor), instead of trying to retain project id
from lower/.
>
> IMO, for the KSTAT_ATTR_FS_IOC_FLAGS use case, copy up flags
> (compressed, encrypted, immutable, append, nodump) all make sense,
> although immutable/append should be set after copying data while
> encrypted/compressed should probably be set before copying data??
Sounds reasonable to me.
Vivek
next prev parent reply other threads:[~2017-08-16 18:37 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-07 7:57 two questiones about overlayfs zhangyi (F)
2017-08-08 5:01 ` Amir Goldstein
2017-08-08 20:21 ` Vivek Goyal
2017-08-08 21:01 ` Daniel Walsh
2017-08-15 10:22 ` Miklos Szeredi
2017-08-15 13:35 ` Miklos Szeredi
2017-08-15 14:52 ` Amir Goldstein
2017-08-15 15:06 ` Miklos Szeredi
2017-08-15 15:28 ` Amir Goldstein
2017-08-15 15:33 ` Miklos Szeredi
2017-08-15 15:53 ` Amir Goldstein
2017-08-15 15:56 ` Vivek Goyal
2017-08-15 16:16 ` Amir Goldstein
2017-08-16 10:19 ` Miklos Szeredi
2017-08-16 10:20 ` Miklos Szeredi
2017-08-16 11:10 ` Amir Goldstein
2017-08-17 2:55 ` zhangyi (F)
2017-08-17 7:49 ` Amir Goldstein
2017-08-16 13:52 ` Vivek Goyal
2017-08-16 16:12 ` Amir Goldstein
2017-08-16 18:37 ` Vivek Goyal [this message]
2017-09-11 13:34 ` Amir Goldstein
2017-09-12 1:07 ` zhangyi (F)
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=20170816183757.GA401@redhat.com \
--to=vgoyal@redhat.com \
--cc=amir73il@gmail.com \
--cc=linux-unionfs@vger.kernel.org \
--cc=miaoxie@huawei.com \
--cc=miklos@szeredi.hu \
--cc=tytso@mit.edu \
--cc=yi.zhang@huawei.com \
/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