Re: The patch of glibc which allows the user to override the pfinet server

2008-08-19 Thread zhengda
Samuel Thibault wrote: zhengda, le Sun 17 Aug 2008 13:40:59 +0200, a écrit : I wonder how I return ENOMEM? Does asprintf() write the errno itself? Yes. Should the function returns immediately after __asprintf() returns error? It has to clean its mess first of course. He

Re: The patch of boot to open a virtual network interface

2008-08-19 Thread zhengda
[EMAIL PROTECTED] wrote: Hi, On Fri, Aug 08, 2008 at 07:06:29AM +0200, zhengda wrote: But the way to open the virtual network interface will be changed if the translator that helps open the device is created. Indeed... So I guess we better don't commit it just yet :-) 2008-07-2

Re: The patch of boot to open a virtual network interface

2008-08-19 Thread Neal H. Walfield
At Tue, 19 Aug 2008 15:48:11 +0200, zhengda wrote: > 2008-07-29 Zheng Da <[EMAIL PROTECTED]> > > * boot/boot.c (ds_device_open): Handle the request to open the virtual > network device. > > diff -u boot.old/boot.c boot/boot.c > --- boot.old/boot.c 2008-08-17 18:38:02.0 +0200 > ++

Evaluation of my project

2008-08-19 Thread zhengda
Hello, I have checked in my code in my CVS branch, and put the patches in the http://www.assembla.com/spaces/VNetHurd/documents. I write a howto to briefly introduce the process of setting up the system. http://www.assembla.com/spaces/VNetHurd/documents/boUIuWBsmr3A1lab7jnrAJ/download/howto I

Re: The patch of boot to open a virtual network interface

2008-08-19 Thread zhengda
Neal H. Walfield wrote: At Tue, 19 Aug 2008 15:48:11 +0200, zhengda wrote: 2008-07-29 Zheng Da <[EMAIL PROTECTED]> * boot/boot.c (ds_device_open): Handle the request to open the virtual network device. diff -u boot.old/boot.c boot/boot.c --- boot.old/boot.c 2008-08-17 18:38:02.

Re: The patch of boot to open a virtual network interface

2008-08-19 Thread Samuel Thibault
zhengda, le Tue 19 Aug 2008 17:00:01 +0200, a écrit : > Otherwise, we have to tell pfinet the whole path of the device file. I > think it's a little weird. Why? We do so for ext2fs and /dev/hd?s? Samuel

Re: The patch of boot to open a virtual network interface

2008-08-19 Thread zhengda
Samuel Thibault wrote: zhengda, le Tue 19 Aug 2008 17:00:01 +0200, a écrit : Otherwise, we have to tell pfinet the whole path of the device file. I think it's a little weird. Why? We do so for ext2fs and /dev/hd?s? Ah, I'm stupid. At first, pfinet, boot and all other components ac

Re: The patch of boot to open a virtual network interface

2008-08-19 Thread zhengda
Neal H. Walfield wrote: At Tue, 19 Aug 2008 15:48:11 +0200, zhengda wrote: 2008-07-29 Zheng Da <[EMAIL PROTECTED]> * boot/boot.c (ds_device_open): Handle the request to open the virtual network device. diff -u boot.old/boot.c boot/boot.c --- boot.old/boot.c 2008-08-17 18:38:02.

Re: The patch of boot to open a virtual network interface

2008-08-19 Thread Neal H. Walfield
At Tue, 19 Aug 2008 17:37:14 +0200, zhengda wrote: > Since boot only uses one interface, boot probably accepts only one > interface name from subhurd. This needn't be the case. In fact, it should be able to expose any number of objects as devices. A good interface might be: -d foo=filename1

Re: The patch of boot to open a virtual network interface

2008-08-19 Thread zhengda
Neal H. Walfield wrote: At Tue, 19 Aug 2008 17:37:14 +0200, zhengda wrote: Since boot only uses one interface, boot probably accepts only one interface name from subhurd. This needn't be the case. In fact, it should be able to expose any number of objects as devices. A good interface

Re: The patch of boot to open a virtual network interface

2008-08-19 Thread zhengda
Neal H. Walfield wrote: At Tue, 19 Aug 2008 17:37:14 +0200, zhengda wrote: Since boot only uses one interface, boot probably accepts only one interface name from subhurd. This needn't be the case. In fact, it should be able to expose any number of objects as devices. A good interface

Re: Evaluation of my project

2008-08-19 Thread zhengda
zhengda wrote: Hello, I have checked in my code in my CVS branch, and put the patches in the http://www.assembla.com/spaces/VNetHurd/documents. I write a howto to briefly introduce the process of setting up the system. http://www.assembla.com/spaces/VNetHurd/documents/boUIuWBsmr3A1lab7jnrAJ/d

Re: dir_lookup, locking and EINTR

2008-08-19 Thread Thomas Bushnell BSG
On Fri, 2008-06-06 at 00:12 +0100, Samuel Thibault wrotekfs/dir-lookup.c:478 > > dir-lookup.c:478 is as follows: > > 469 if (! error) > 470 { > 471 if (flags & O_EXLOCK) > 472 error = fshelp_acquire_lock (&np->userlock, &newpi->po->lock_status, > 473

Re: hurd/libdiskfs ChangeLog dir-lookup.c

2008-08-19 Thread Thomas Bushnell BSG
On Mon, 2008-06-09 at 21:52 +, Samuel Thibault wrote: > CVSROOT: /cvsroot/hurd > Module name: hurd > Changes by: Samuel Thibault 08/06/09 21:52:12 > > Modified files: > libdiskfs : ChangeLog dir-lookup.c > > Log message: > 2008-06-06 Samuel Thibault <[EMAIL P

Re: [PATCH] libfshelp: keep stdin and stdout open

2008-08-19 Thread Thomas Bushnell BSG
On Fri, 2008-08-01 at 21:18 +0100, Samuel Thibault wrote: > Hello, > > I'd agree on the principle to not leave a nul port for stdin/stdout, > any other opinion on this? I disagree. Translators don't have such ports, and making them null encourages programs to write on them, possibly expecting th

Re: Possible bug in name of command 'settrans'

2008-08-19 Thread Thomas Bushnell BSG
On Tue, 2008-06-10 at 12:59 +0400, A.Salatov wrote: > No, you correct me if I'm wrong, but when I think about 'settrans' my > mind always going to compare it to 'umount' and I started to think about > a reasons why 'umount' is 'umount' and not 'unmount'. The simplest > reason for it, that I could i

Re: procfs - Design Issue

2008-08-19 Thread Thomas Bushnell BSG
On Tue, 2008-06-17 at 00:18 +0100, Samuel Thibault wrote: > Hello, > > Madhusudan C.S, le Tue 17 Jun 2008 04:12:42 +0530, a écrit : > > 1. Is it better to free all those nodes as soon as they are displayed and > > create them whenever they are required? > > Just do that. No need to cache anythi