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: Sun, 28 Jun 2015 17:38:35 +0300	[thread overview]
Message-ID: <559006EB.605@rainbow.by> (raw)
In-Reply-To: <1433424586-7771-1-git-send-email-miklos@szeredi.hu>

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 it a bug or am I missing something?


(sid)root@usbsid:/var# ls -l test
-rw-r--r-- 1 root root 6 июн 28 17:01 test

(sid)root@usbsid:/var# cat test
00000

(sid)root@usbsid:/var# strace -e trace=open sh -c 'echo 11111 > test'
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib/i386-linux-gnu/i686/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("test", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 EACCES 
(Permission denied)
sh: 1: cannot create test: Permission denied
+++ exited with 2 +++

(sid)root@usbsid:/var# strace -e trace=open sh -c 'echo 11111 >> test'
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib/i386-linux-gnu/i686/cmov/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("test", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = -1 EACCES 
(Permission denied)
sh: 1: cannot create test: Permission denied
+++ exited with 2 +++

(sid)root@usbsid:/var# mount | grep var
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
192.168.211.140:/sid/var on /auvar.ro type nfs 
(ro,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,nolock,proto=tcp,port=2049,timeo=7,retrans=10,sec=sys,local_lock=all,addr=192.168.211.140)
tmpfs on /auvar.ro/lock type tmpfs 
(rw,nosuid,nodev,noexec,relatime,size=5120k)
none on /auvar.rw type tmpfs (rw,relatime)
overlay on /var type overlay 
(rw,relatime,lowerdir=/auvar.ro,upperdir=/auvar.rw/.upperdir,workdir=/auvar.rw/.workdir)

(sid)root@usbsid:/var# uname -r
4.1.0+

user@buildhost:/build/kernel/4 (overlayfs-next)$ git rev-parse HEAD
cdb672795876d7bc1870aed9a2d7cb59f43d1d96


-- 
sa

  parent reply	other threads:[~2015-06-28 14:43 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 ` sa [this message]
2015-06-29 14:35   ` [PATCH 0/2] ovl: support NFS " Miklos Szeredi
2015-06-29 15:08     ` sa

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=559006EB.605@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).