tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: semantics of TRYEMULROOT



> On Sun, Jan 02, 2011 at 09:19:51PM +0000, Eduardo Horvath wrote:
>  > TRYEMULROOT should only open existing objects on the emul path, it should 
>  > never create anything new, so you would never want to use it for mkdir.  
>  > I don't know if that means you need to pass an extra flag to 
>  > namei_parent() or what.
> 
> That's what I thought at one point, but it's set on almost everything,
> including mount, open with or without O_CREAT, mknod, mkfifo, link,
> symlink, mkdir, and rename, and also unlink and rmdir.
> 
> If that's not how it should be, things should be tidied up. (And, if
> neither mkdir-type nor rmdir-type operations should have TRYEMULROOT,
> my original question becomes largely or entirely moot.)

i've always thought we look on /emul way too often.  i don't
think rmdir or mkdir should look in there.


.mrg.


Home | Main Index | Thread Index | Old Index