Re: Unionmount: proxying the control port

2009-07-10 Thread Sergiu Ivanov
Hello, On Tue, Jul 07, 2009 at 08:55:37PM +0300, Sergiu Ivanov wrote: > It was agreed that unionmount should forward some of the RPCs invoked > on its control port to the mountee. Most (if not all) of such RPCs > are the fsys_* ones. I've made up a list of RPCs which should be > proxied in my op

Re: [PATCH] Enable the mountee to be started after initialization.

2009-07-10 Thread Sergiu Ivanov
Hello, On Fri, Jul 10, 2009 at 05:23:34PM +0200, olafbuddenha...@gmx.net wrote: > On Mon, Jul 06, 2009 at 12:17:49AM +0300, Sergiu Ivanov wrote: > > > + /* The update thread will start the mountee when unionfs will be > > + ready for servicing RPCs (will have completed the > > + initiali

Re: [PATCH 1/3] Add the ``--mount'' command line option.

2009-07-10 Thread Sergiu Ivanov
Hello, On Fri, Jul 10, 2009 at 04:25:26AM +0200, olafbuddenha...@gmx.net wrote: > On Sun, Jul 05, 2009 at 03:59:25PM +0300, Sergiu Ivanov wrote: > > > diff --git a/mount.h b/mount.h > [...] > > +#ifndef INCLUDED_UNIONMOUNT_H > > You forgot to rename the guard macro when renaming the file... Yea

Re: [PATCH 3/3] Add the code for adding the mountee to the merged filesystems

2009-07-10 Thread Sergiu Ivanov
Hello, On Fri, Jul 10, 2009 at 04:20:35AM +0200, olafbuddenha...@gmx.net wrote: > On Sun, Jul 05, 2009 at 06:53:50PM +0300, Sergiu Ivanov wrote: > > ulfs_check is used to update the list of ports to the underlying > > filesystems maintained by unionfs, while node_init_root is used to > > store a (

Re: [bug #26960] firmlink opens target with client specified flags

2009-07-10 Thread Carl Fredrik Hammar
On Fri, Jul 10, 2009 at 03:27:32PM +0200, olafbuddenha...@gmx.net wrote: > On Sat, Jul 04, 2009 at 04:05:52PM +, Carl Fredrik Hammar wrote: > > > firmlink opens its target file with any client specified open flags, > > except O_CREAT. This makes it is possible for a client to read or > > writ

Re: [PATCH 2/3] Add the code for starting up the mountee

2009-07-10 Thread Carl Fredrik Hammar
Hi, On Fri, Jul 10, 2009 at 04:17:23AM +0200, olafbuddenha...@gmx.net wrote: > > > > + /*Opens the port on which to set the new translator */ > > > > + error_t > > > > +open_port > > > > +(int flags, mach_port_t * underlying, > > > > + mach_msg_type_name_t * underlying_type, task_t t

Re: [PATCH] Enable the mountee to be started after initialization.

2009-07-10 Thread olafBuddenhagen
Hi, On Mon, Jul 06, 2009 at 12:17:49AM +0300, Sergiu Ivanov wrote: > + /* The update thread will start the mountee when unionfs will be > + ready for servicing RPCs (will have completed the > + initialization). */ > + root_update_schedule (); > + Hm... That still won't allow passing b

Re: [PATCH 3/3] Add the code for adding the mountee to the merged filesystems

2009-07-10 Thread olafBuddenhagen
Hi, On Sun, Jul 05, 2009 at 06:53:50PM +0300, Sergiu Ivanov wrote: > On Fri, Jul 03, 2009 at 07:07:59AM +0200, olafbuddenha...@gmx.net wrote: > > On Thu, Jun 11, 2009 at 09:25:10PM +0300, Sergiu Ivanov wrote: > > > + ulfs_check (); > > > + node_init_root (netfs_root_node); > > > > Why is this

Re: Berkeley Packet Filter

2009-07-10 Thread olafBuddenhagen
Hi, On Mon, Jul 06, 2009 at 09:01:39PM +0800, Da Zheng wrote: > Samuel Thibault wrote: >> Da Zheng, le Mon 06 Jul 2009 14:23:20 +0800, a écrit : >>> GNU Savannah bug #25054 -- Kernel panic with eth-multiplexer, >>> reported by antrik, isn't a bug in gnumach. It was caused by a bug >>> in eth-mult

Re: News...

2009-07-10 Thread olafBuddenhagen
Hi, On Tue, Jul 07, 2009 at 07:10:15PM +0200, Thomas Schwinge wrote: > We should not update news items that have already been published (that > is, on gnu.org; no problem for the bddebian machine), as the system > will always also update the RSS feeds, etc., causing the old news item > to reappea

Re: [PATCH 3/3] Add the mountee to the list of merged filesystems.

2009-07-10 Thread olafBuddenhagen
Hi, On Sun, Jul 05, 2009 at 04:02:01PM +0300, Sergiu Ivanov wrote: > + /* A path equal to "\0" will mean that the current ULFS entry is the > + mountee port. */ > + ulfs_register ("", 0, 0); You fixed the parameter, but you forgot to fix the comment... -antrik-

Re: [PATCH] fully enable rpctrace to trace multitask programs.

2009-07-10 Thread olafBuddenhagen
Hi, On Tue, Jul 07, 2009 at 01:21:09PM +0800, Da Zheng wrote: > olafbuddenha...@gmx.net wrote: >> Well, AIUI, there are only two ways how a receive right could be used: >> either mach_port_insert_right() (or mach_port_extract_right()) is >> invoked, in which case we can look at the parameters, so

Re: Moving to git

2009-07-10 Thread olafBuddenhagen
Hi, On Sun, Jul 05, 2009 at 08:31:09AM +0200, Thomas Schwinge wrote: > On Fri, Jul 03, 2009 at 10:00:52PM +0200, olafbuddenha...@gmx.net > wrote: > > On Thu, Jul 02, 2009 at 11:05:50PM +0200, Thomas Schwinge wrote: > > > +After commit e227045b06d62ee7d2fbab9d5ade9030ff43170b, Git's > > > commit m

Re: [PATCH] fully enable rpctrace to trace multitask programs.

2009-07-10 Thread olafBuddenhagen
Hi, On Mon, Jul 06, 2009 at 02:26:10PM +0800, Da Zheng wrote: > olafbuddenha...@gmx.net wrote: > Since you think it's not proper to wrap the first thread at the place > where trace exec_startup_get_info() is called, I now wrap the first > thread of a task when the first RPC request comes. Actual

Re: [PATCH 1/3] Add the ``--mount'' command line option.

2009-07-10 Thread olafBuddenhagen
Hi, On Sun, Jul 05, 2009 at 03:59:25PM +0300, Sergiu Ivanov wrote: > diff --git a/mount.h b/mount.h [...] > +#ifndef INCLUDED_UNIONMOUNT_H You forgot to rename the guard macro when renaming the file... -antrik-

Re: [PATCH 2/3] Add the code for starting up the mountee

2009-07-10 Thread olafBuddenhagen
Hi, On Sun, Jul 05, 2009 at 07:10:48PM +0300, Sergiu Ivanov wrote: > On Fri, Jul 03, 2009 at 08:07:01PM +0200, olafbuddenha...@gmx.net wrote: > > > + /*This is actually the end of initialization, so if something > > > + goes bad here we are rightful to die. And, of course, > > > + unionmount

Re: [bug #26960] firmlink opens target with client specified flags

2009-07-10 Thread olafBuddenhagen
Hi, On Sat, Jul 04, 2009 at 04:05:52PM +, Carl Fredrik Hammar wrote: > firmlink opens its target file with any client specified open flags, > except O_CREAT. This makes it is possible for a client to read or > write to the target of a firmlink using the firmlink's authority > (io_restrict_au

Re: plan to work on user-level device drivers

2009-07-10 Thread olafBuddenhagen
Hi, On Tue, Jul 07, 2009 at 01:33:17PM +0800, Da Zheng wrote: > The paper "An I/O System for Mach 3.0" gives very short description of > the user-level device management: Devices can be managed from > user-level by vectoring all device interrupts out to an application's > thread. The kernel maps

Re: News...

2009-07-10 Thread olafBuddenhagen
Hi, On Sat, Jul 04, 2009 at 04:20:59PM +0200, Arne Babenhauserheide wrote: > Am Samstag, 4. Juli 2009 10:27:58 schrieb olafbuddenha...@gmx.net: > Do you mean Berkeley Packet Filter with BPF? Yes. > > I made some progress with my KGI port -- I can now run GGI demo > > programs on top of KGI/Hur

Resource usage (was: Berkeley Packet Filter)

2009-07-10 Thread olafBuddenhagen
Hi, On Mon, Jul 06, 2009 at 05:02:45PM +0200, Arne Babenhauserheide wrote: > Am Montag, 6. Juli 2009 15:01:39 schrieb Da Zheng: > > What should the kernel do if it is out of resources? > > I'd say it should kill the offending process. > > Or if info about the offender isn't available, just kil

Re: [PATCH 1/3] Add the ``--mount'' command line option

2009-07-10 Thread olafBuddenhagen
Hi, On Sun, Jul 05, 2009 at 07:17:33PM +0300, Sergiu Ivanov wrote: > On Fri, Jul 03, 2009 at 06:52:37AM +0200, olafbuddenha...@gmx.net > wrote: > > This surely needs some special handling in netfs_append_args() as > > well?... > > Yes, it does, of course. I didn't implement it right here becaus

Re: [PATCH] Orphan the mountee.

2009-07-10 Thread Sergiu Ivanov
>From 77a5938d2daf940779dabaf50700d6b0e9ff927b Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Wed, 8 Jul 2009 13:01:20 + Subject: [PATCH] Orphan the mountee. * mount.c (start_mountee): Don't attach the mountee to the proxy node. --- Another correction: the previous patch orphaned the mou

Re: Unionmount: proxying the control port

2009-07-10 Thread Sergiu Ivanov
Hello, On Wed, Jul 08, 2009 at 09:39:06PM +0200, Carl Fredrik Hammar wrote: > On Wed, Jul 08, 2009 at 03:41:51PM +0300, Sergiu Ivanov wrote: > > On Tue, Jul 07, 2009 at 09:50:12PM +0200, Carl Fredrik Hammar wrote: > > > On Tue, Jul 07, 2009 at 08:55:37PM +0300, Sergiu Ivanov wrote: > > > > * fsys_

Re: nfs, nfsd (was: Unionmount: proxying the control port)

2009-07-10 Thread Sergiu Ivanov
Hello, On Fri, Jul 10, 2009 at 09:56:33AM +0200, Thomas Schwinge wrote: > On Fri, Jul 10, 2009 at 12:18:58AM +0300, Sergiu Ivanov wrote: > > For the sake of pushing the horizon of my knowledge, I'd like to ask > > one more question: is nfs a kind of an interface to nfsd, the latter > > being respo

nfs, nfsd (was: Unionmount: proxying the control port)

2009-07-10 Thread Thomas Schwinge
Hello! On Fri, Jul 10, 2009 at 12:18:58AM +0300, Sergiu Ivanov wrote: > For the sake of pushing the horizon of my knowledge, I'd like to ask > one more question: is nfs a kind of an interface to nfsd, the latter > being responsible for actually fetching the remote filesystems, > maintaining caches