From: Jordi Pujol <jordipujolp@gmail.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: linux-fsdevel@vger.kernel.org, Michal Suchanek <hramrach@centrum.cz>
Subject: Re: overlayfs: mounting overlayfs on top of overlayfs
Date: Fri, 10 Jun 2011 08:46:52 +0200 [thread overview]
Message-ID: <201106100846.52488.jordipujolp@gmail.com> (raw)
In-Reply-To: <87ipsgcqhm.fsf@tucsk.pomaz.szeredi.hu>
Hello,
Here are my comments about this patch:
I think "append" should also be prohibited in a read-only fs.
if (mask & (MAY_WRITE | MAY_APPEND))
About the readonly modification on the main filisystem mount, before this
modification overlayfs already emited a warning message when mounting using a
read only upperdir. Following is an old log:
+ COW_DIR=/tmp/TEST-sz5/COW-Mec
+ mount -t tmpfs -o ro tmpfs /tmp/TEST-sz5/COW-Mec
+ mount -t overlayfs -o rw,lowerdir=/tmp/TEST-sz5/ROOT-RO-
kei,upperdir=/tmp/TEST-sz5/COW-Mec overlayfs /tmp/TEST-sz5/ROOT-S1M
mount: block device overlayfs is write-protected, mounting read-only
(warning, return code 0)
+ mount -o remount,rw /tmp/TEST-sz5/ROOT-S1M
mount: cannot remount block device overlayfs read-write, is write-protected
(error, rc 32)
+ mount -l
overlayfs on /tmp/TEST-sz5/ROOT-S1M type overlayfs (ro,
but now, after appliying the last patch, the behaviour is very confused:
- there is no warning message when mounting overlayfs rw on a ro upperdir
- /proc/mounts shows overlayfs as a rw fs while really it is ro
+ mount -l
...
tmpfs on /tmp/TEST-Eo7/COW-uYW type tmpfs (ro)
overlayfs on /tmp/TEST-Eo7/ROOT-dAb type overlayfs (rw,lowerdir=/tmp/TEST-
Eo7/ROOT-RO-TfK,upperdir=/tmp/TEST-Eo7/ROOT-RO-TfK,upperdir=/tmp/TEST-Eo7/COW-
uYW)
+ mount -o remount,rw /tmp/TEST-Eo7/ROOT-dAb
mount: cannot remount block device overlayfs read-write, is write-protected
Sincerely, the previous behaviour was better,
Thanks,
Jordi Pujol
Live never ending Tale
GNU/Linux Live forever!
http://livenet.selfip.com
prev parent reply other threads:[~2011-06-10 6:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-03 13:29 overlayfs: mounting overlayfs on top of overlayfs Jordi Pujol
2011-06-04 6:23 ` Jordi Pujol
2011-06-06 18:29 ` Jordi Pujol
2011-06-07 8:08 ` Miklos Szeredi
2011-06-07 13:00 ` Jordi Pujol
2011-06-08 15:06 ` Miklos Szeredi
2011-06-10 6:46 ` Jordi Pujol [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=201106100846.52488.jordipujolp@gmail.com \
--to=jordipujolp@gmail.com \
--cc=hramrach@centrum.cz \
--cc=linux-fsdevel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.