Re: linux-2.6.25: 'mkdir -p' does not work with rootdir as mount point inside a read only filesystem

From: NeilBrown
Date: Fri May 02 2008 - 02:56:13 EST


On Fri, May 2, 2008 2:52 pm, Andrew Morton wrote:
> On Wed, 30 Apr 2008 16:50:20 +0200 Lothar Wa__mann
> <LW@xxxxxxxxxxxxxxxxxxx> wrote:
>
>> Hi,
>
> (y'know that ~4000 people read your email and hit 'n'? Except for me?
> That's one bug I'd like to get fixed)

Tricky....

>
>> when trying to create a directory path with 'mkdir -p' with the root
>> being a mount point of a writeable filesystem that exists inside a
>> read-only file system, mkdir return -EROFS.

My guess is that you have an old/buggy version of mkdir.

What does
mkdir --version

say?
Mine says:
mkdir (GNU coreutils) 6.10
Copyright (C) 2008 Free Software Foundation, Inc.
etc...

What does

strace mkdir -p /dev/.udev/db

show ???

NeilBrown


--
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/