From: "Lothar Waßmann" <LW@KARO-electronics.de>
To: Willy Tarreau <w@1wt.eu>
Cc: NeilBrown <neilb@suse.de>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: linux-2.6.25: 'mkdir -p' does not work with rootdir as mount point inside a read only filesystem
Date: Mon, 5 May 2008 09:08:00 +0200 [thread overview]
Message-ID: <18462.45648.60033.233887@ipc1.ka-ro> (raw)
In-Reply-To: <20080505070214.GA14635@1wt.eu>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]
Hi,
Willy Tarreau writes:
> > > open(".", O_RDONLY|O_LARGEFILE|O_DIRECTORY) = 3
> > > chdir("/") = 0
> > > mkdir("dev", 0755) = -1 EEXIST (File exists)
^^^^^^
[...]
> > This is what strace shows in my case:
> > mkdir("/", 0777) = -1 EEXIST (File exists)
> > stat64("/", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
> > mkdir("/dev/", 0777) = -1 EROFS (Read-only file system)
^^^^^
> What puzzles me is why you have this problem only with a new kernel.
> I suspect that previous ones did report EEXIST and now we report
> EROFS for an existing directory on an ro fs.
>
Interestingly your strace output showed a return value of EEXIST where
mine had EROFS.
Lothar Waßmann
--
___________________________________________________________
Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996
www.karo-electronics.de | info@karo-electronics.de
___________________________________________________________
next prev parent reply other threads:[~2008-05-05 7:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-30 14:50 Lothar Waßmann
2008-05-02 4:52 ` Andrew Morton
2008-05-02 6:55 ` NeilBrown
2008-05-03 6:32 ` Willy Tarreau
2008-05-05 6:27 ` Lothar Waßmann
2008-05-05 7:02 ` Willy Tarreau
2008-05-05 7:08 ` Lothar Waßmann [this message]
2008-05-05 7:28 ` Willy Tarreau
2008-05-05 7:38 ` Lothar Waßmann
2008-05-05 12:02 ` Al Viro
2008-05-02 11:32 ` Dan Noé
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=18462.45648.60033.233887@ipc1.ka-ro \
--to=lw@karo-electronics.de \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@suse.de \
--cc=w@1wt.eu \
/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
all inboxes | Powered by JetHome®