Re: linux-2.6.25: 'mkdir -p' does not work with rootdir as mountpoint inside a read only filesystem
From: Al Viro
Date: Mon May 05 2008 - 08:03:09 EST
On Mon, May 05, 2008 at 09:38:57AM +0200, Lothar Wa?mann wrote:
> Hi,
>
> Willy Tarreau writes:
> > > Interestingly your strace output showed a return value of EEXIST where
> > > mine had EROFS.
> >
> > Oh you're right! I did not notice. There's something odd here.
> > And I can reproduce it right now (2.6.25.1). I really have
> > EEXIST.
> >
> As I noted in my first message I have this problem with the kernel
> from git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
> which is currently 2.6.26-rc1 and still exhibits this behaviour.
>
> So, this problem obviously does not exist in the 2.6.25 release kernel
> but would probably hit mainline in the 2.6.26 release.
Aye. That's ro-bind fallout we'd not noticed; will fix...
And a fine example of the reasons why
* relying on which particular errno value you get when several
are applicable is a Bad Idea(tm) and
* changing the choice of the errno value in such situation might
be legal, but is to be done with care; sometimes it really has impact...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/