Re: semantics of TRYEMULROOT

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Holland
Date: Sunday, January 2, 2011 - 2:57 pm

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.)

-- 
David A. Holland
dholland@netbsd.org
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
semantics of TRYEMULROOT, David Holland, (Sun Jan 2, 2:52 am)
Re: semantics of TRYEMULROOT, matthew sporleder, (Sun Jan 2, 7:19 am)
Re: semantics of TRYEMULROOT, David Laight, (Sun Jan 2, 11:14 am)
Re: semantics of TRYEMULROOT, David Holland, (Sun Jan 2, 12:24 pm)
Re: semantics of TRYEMULROOT, David Laight, (Sun Jan 2, 12:46 pm)
Re: semantics of TRYEMULROOT, David Holland, (Sun Jan 2, 12:49 pm)
Re: semantics of TRYEMULROOT, Eduardo Horvath, (Sun Jan 2, 2:19 pm)
Re: semantics of TRYEMULROOT, David Holland, (Sun Jan 2, 2:57 pm)
Re: semantics of TRYEMULROOT, Masao Uebayashi, (Tue Jan 4, 8:01 am)
Re: semantics of TRYEMULROOT, David Laight, (Tue Jan 4, 12:04 pm)