Re: How to clone a port right

2009-07-08 Thread Sergiu Ivanov
Hello, On Wed, Jul 08, 2009 at 04:33:02PM +0200, Carl Fredrik Hammar wrote: > On Tue, Jul 07, 2009 at 09:24:27PM +0300, Sergiu Ivanov wrote: > > /* Opens the port on which to set the mountee. */ > > error_t > > open_port (int flags, mach_port_t * underlying, > >mach_msg_ty

Re: How to clone a port right

2009-07-08 Thread Sergiu Ivanov
Hello, On Tue, Jul 07, 2009 at 09:24:27PM +0300, Sergiu Ivanov wrote: > I tried to set *underlying to MACH_PORT_NULL, but it (in a quite > expected way) refused to work. I then tried to do > > *underlying = underlying_node; > > where underlying_node is a port right describing a port to the >

Re: How to clone a port right

2009-07-08 Thread Carl Fredrik Hammar
Hi, On Tue, Jul 07, 2009 at 09:24:27PM +0300, Sergiu Ivanov wrote: > /* Opens the port on which to set the mountee. */ > error_t > open_port (int flags, mach_port_t * underlying, >mach_msg_type_name_t * underlying_type, task_t task, >void *cookie) > { >

Re: How to clone a port right

2009-07-08 Thread Sergiu Ivanov
On Wed, Jul 08, 2009 at 04:25:27PM +0200, Carl Fredrik Hammar wrote: > On Wed, Jul 08, 2009 at 02:14:53PM +0300, Sergiu Ivanov wrote: > > My previous mail says that when I simply pass the unionfs's underlying > > node I get an error; the error is given in that mail :-) That's why > > the question i

Re: How to clone a port right

2009-07-08 Thread Carl Fredrik Hammar
Hi, On Wed, Jul 08, 2009 at 02:14:53PM +0300, Sergiu Ivanov wrote: > My previous mail says that when I simply pass the unionfs's underlying > node I get an error; the error is given in that mail :-) That's why > the question in the subject of the post ;-) I knew I shouldn't have replied when I wa

Re: How to clone a port right

2009-07-08 Thread Sergiu Ivanov
Hello, On Tue, Jul 07, 2009 at 09:54:51PM +0200, Carl Fredrik Hammar wrote: > On Tue, Jul 07, 2009 at 09:24:27PM +0300, Sergiu Ivanov wrote: > > In the latest working design unionmount creates a proxy node (by > > cloning the netfs_root_node of unionfs translator) and sets the > > mountee on this

Re: How to clone a port right

2009-07-07 Thread Carl Fredrik Hammar
Hi, On Tue, Jul 07, 2009 at 09:24:27PM +0300, Sergiu Ivanov wrote: > In the latest working design unionmount creates a proxy node (by > cloning the netfs_root_node of unionfs translator) and sets the > mountee on this proxy. I'm currently trying to implement cfhammar's > idea about having the mou

How to clone a port right

2009-07-07 Thread Sergiu Ivanov
Hello, In the latest working design unionmount creates a proxy node (by cloning the netfs_root_node of unionfs translator) and sets the mountee on this proxy. I'm currently trying to implement cfhammar's idea about having the mountee run in orphan mode. To achieve this I call only fshelp_start_t