public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* linux-2.6.25: 'mkdir -p' does not work with rootdir as mount point inside a read only filesystem
@ 2008-04-30 14:50 Lothar Waßmann
  2008-05-02  4:52 ` Andrew Morton
  0 siblings, 1 reply; 11+ messages in thread
From: Lothar Waßmann @ 2008-04-30 14:50 UTC (permalink / raw)
  To: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]

Hi,

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.

This was tested with the latest git-tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6

The last kernel I know of this has been working was 2.6.22.

E.g.:
|root@triton1:/# mount
|rootfs on / type rootfs (rw)
|/dev/root on / type jffs2 (ro)
|proc on /proc type proc (rw)
|sysfs on /sys type sysfs (rw)
|/dev/root on /dev/.static/dev type jffs2 (ro)
|tmpfs on /dev type tmpfs (rw,size=10240k,mode=755)
|tmpfs on /var type tmpfs (rw)
|tmpfs on /tmp type tmpfs (rw)
|devpts on /dev/pts type devpts (rw,gid=5,mode=620)
|tmpfs on /dev/shm type tmpfs (rw)
|root@triton1:/# mkdir -p /dev/.udev/db
|mkdir: Cannot create directory `/dev/': Read-only file system

While:
|root@triton1:/# cd /dev
|root@triton1:/# mkdir -p .udev/db
works as expected...

Has anyone else encountered this problem already?
I've searched the archives but could not find anything related to this
problem.



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
___________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-05-05 12:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-30 14:50 linux-2.6.25: 'mkdir -p' does not work with rootdir as mount point inside a read only filesystem 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
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é

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox