lkml.org 
[lkml]   [2008]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: linux-2.6.25: 'mkdir -p' does not work with rootdir as mount point inside a read only filesystem
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
___________________________________________________________
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2008-05-05 09:11    [W:0.042 / U:10.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site