From: Al Viro <viro@ZenIV.linux.org.uk>
To: Tim Tassonis <stuff@decentral.ch>
Cc: linux-kernel@vger.kernel.org
Subject: Re: overlayfs: "filesystem of lowerdir is not supported" on cdrom
Date: Tue, 28 Oct 2014 21:13:13 +0000 [thread overview]
Message-ID: <20141028211313.GB7996@ZenIV.linux.org.uk> (raw)
In-Reply-To: <544FDC1C.9040908@decentral.ch>
On Tue, Oct 28, 2014 at 07:10:36PM +0100, Tim Tassonis wrote:
> Hi
>
> Just installed 3.18-rc2 and tried to test the overlayfs stuff:
>
> $ mkdir /ovtmp
> $ mount -t tmpfs tmpfs /ovtmp/
> $ mkdir /ovtmp/work
> $ mkdir /ovtmp/upper
> $ mkdir /cdrw
> $ mount /dev/sr0 /mnt
> $ mount |egrep "ovtmp|sr0"
>
> /dev/sr0 on /mnt type iso9660 (ro,relatime)
> tmpfs on /ovtmp type tmpfs (rw,relatime)
>
> $ mount -t overlayfs overlayfs \
> -olowerdir=/mnt,upperdir=/ovtmp/upper,workdir=/ovtmp/work /cdrw
> [ 3266.793218] overlayfs: filesystem of lowerdir is not supported
>
> However, the doc in Documentation/filesystems/overlayfs.txt states:
>
> "The lower filesystem can be any filesystem supported by Linux and does
> not need to be writable. The lower filesystem can even be another
> overlayfs. The upper filesystem will normally be writable and if it
> is it must support the creation of trusted.* extended attributes, and
> must provide valid d_type in readdir responses, so NFS is not suitable."
>
> So: Is the documentation wrong, the error message in dmesg wrong, or
> have missed something completely?
Documentation is wildly over-optimistic. You are trying to use something
with non-trivial ->d_hash and ->d_compare as lower layer.
What should happen if you ask to mount an image with joliet extensions and
ask to create foo.txt.... when foo.txt is there? From the isofs POV those
are the same; for overlayfs they are not (it's using default ->d_hash
and ->d_compare).
We probably ought to split the normal (case-sensitive, no joliet shite) case
out and leave it with NULL ->s_d_op, but that'll need to be done carefully,
or isofs_cmp() will blow up on us.
next prev parent reply other threads:[~2014-10-28 21:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-28 18:10 overlayfs: "filesystem of lowerdir is not supported" on cdrom Tim Tassonis
2014-10-28 21:13 ` Al Viro [this message]
2014-10-28 22:54 ` Al Viro
2014-10-29 2:47 ` Tim Tassonis
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=20141028211313.GB7996@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=stuff@decentral.ch \
/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