linux-unionfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: sa <sa-dev@rainbow.by>
To: linux-unionfs@vger.kernel.org
Subject: Re: [PATCH 0/2] ovl: support NFS as lower layer
Date: Mon, 29 Jun 2015 18:08:50 +0300	[thread overview]
Message-ID: <55915F82.3090907@rainbow.by> (raw)
In-Reply-To: <20150629143558.GA6605@tucsk.suse.de>

On 29.06.2015 17:35, Miklos Szeredi wrote:
> On Sun, Jun 28, 2015 at 05:38:35PM +0300, sa wrote:
>> On 04.06.2015 16:29, Miklos Szeredi wrote:
>>
>>> Two small patches implementing this follow.  Comments and testing welcome.
>>>    git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-next
>>> ---
>>>   fs/overlayfs/super.c | 81 +++++++++++++++++++++++++++++++++++++++++++++++-----
>>>   1 file changed, 74 insertions(+), 7 deletions(-)
>>
>> Thank you, it works in our environment mostly as expected, except
>> of the following:
>> files already existing in readonly NFS lowerdir can't be opened
>> for writing (but can be deleted). Newly created files are writable
>> as expected. The same lowerdir works with aufs without problem.
>
> Is the lower fs exported read-only on the NFS server?
>
> If so, can you please apply the following patch and specify
> 'default_permissions' mount option?


It works fine.

(sid)root@usbsid:/var# cat test
00000
(sid)root@usbsid:/var# echo 11111 > test
(sid)root@usbsid:/var# cat test
11111
(sid)root@usbsid:/var# echo 22222 >> test
(sid)root@usbsid:/var# cat test
11111
22222
(sid)root@usbsid:/var# mount | grep overlay
overlay on /var type overlay 
(rw,relatime,lowerdir=/auvar.ro,upperdir=/auvar.rw/.upperdir,workdir=/auvar.rw/.workdir,default_permissions)

Lower fs exported with (ro,async,no_root_squash,no_subtree_check).


-- 
sa

      reply	other threads:[~2015-06-29 15:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-04 13:29 [PATCH 0/2] ovl: support NFS as lower layer Miklos Szeredi
2015-06-04 13:29 ` [PATCH 1/2] ovl: don't traverse automount points Miklos Szeredi
2015-06-04 13:29 ` [PATCH 2/2] ovl: allow distributed fs as lower layer Miklos Szeredi
2015-06-05  0:07   ` Al Viro
2015-06-05 15:37     ` Miklos Szeredi
2015-06-07  1:02       ` Eric W. Biederman
2015-06-09 12:44         ` Miklos Szeredi
2015-06-09 12:54           ` Eric W. Biederman
2015-06-28 14:38 ` [PATCH 0/2] ovl: support NFS " sa
2015-06-29 14:35   ` Miklos Szeredi
2015-06-29 15:08     ` sa [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=55915F82.3090907@rainbow.by \
    --to=sa-dev@rainbow.by \
    --cc=linux-unionfs@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).