Re: Missing libbb/xrealloc_vector.c

2008-07-09 Thread Cristian Ionescu-Idbohrn
On Tue, 8 Jul 2008, Loïc Grenié wrote: Halp ! A file is missing from last svn. There seems to be more to it: modutils/insmod.c: In function 'obj_allocate_commons': modutils/insmod.c:3085: error: too many arguments to function 'xrealloc' Cheers, -- Cristian

Re: Ответ: Ответ: Ответ: MODPROBE: next generation

2008-07-09 Thread Denys Vlasenko
On Tuesday 08 July 2008 12:16, Vladimir Dronnikov wrote: 3. not read - become a master. open .modules.dep.do-not-edit!!! for exclusive write. all other concurrent modprobes have to wait till the master closes the file. This exclusive write stuff is notorious for breaking on non-local

Re: mdev scan

2008-07-09 Thread Rob Landley
On Tuesday 08 July 2008 00:32:51 Denys Vlasenko wrote: Hi, I see that this mdev stuff is not so simple. Tell me about it. :) http://landley.net/notes-2008.html#05-05-2008 On Monday 07 July 2008 23:25, Holland, John wrote: I'm having problems scanning usb_endpoint '/dev's on older

Re: mdev scan

2008-07-09 Thread Rob Landley
On Tuesday 08 July 2008 03:45:01 Holland, John wrote: And if they move symlinks around in sysfs again, we wouldn't need to change the mdev interface. YES, YOU WILL! Trust me on this one. I can link you to flamewars going back to 2005 on this issue, if you'd like. (Or at least I participated

Re: Ответ: Ответ: LIBBB: parse_config()

2008-07-09 Thread Rob Landley
On Tuesday 08 July 2008 16:40:14 Vladimir Dronnikov wrote: Cool! But we need to not just process continuations and comments but also to parse the line into some (possibly variable) amount of whitespaces-delimited tokens. There's no obvious reason to mix these two issues. A function that

AW: mdev scan

2008-07-09 Thread Holland, John
And if they move symlinks around in sysfs again, we wouldn't need to change the mdev interface. YES, YOU WILL! Trust me on this one. On the 2.6.19 kernel I've tested using the patch I posted, I haven't found any duplicate dev files. Emulating this on 2.6.24 was o.k. too.(2.6.19 is on an

[PATCH] support for modprobe.d

2008-07-09 Thread Natanael Copa
hi, attatched is a patch from Timo Teräs that adds support for modprobe.d seems like it increase size on my hardened gcc-3.4.6 uclibc setup but reduce size on glibc + gcc-4.2.3 includes a compilation fix for mtab -nc Index: modutils/modprobe.c

ifenslave

2008-07-09 Thread Richard Kojedzinszky
I found that this patch helps ifenslave to work correctly. Kojedzinszky Richard TvNetWork Nyrt. E-mail: krichy (at) tvnetwork [dot] hu PGP: 0x24E79141 Fingerprint = 6847 ECFF EF58 0C09 18A5 16CF 270F 0C6F 24E7 9141--- busybox-1.10.4/networking/ifenslave.c.orig 2008-07-09 16:51:58.0

tar compression autodetect bug in 1.11.0

2008-07-09 Thread Kim B. Heino
Hi, Tar file compression autodetect does not work with very small files. See below: [EMAIL PROTECTED] root]$ echo foo foo [EMAIL PROTECTED] root]$ tar cjf foo.tar.bz2 foo [EMAIL PROTECTED] root]$ tar xf foo.tar.bz2 tar: short read [EMAIL PROTECTED] root]$ echo $? 1 [EMAIL PROTECTED] root]$ tar

Re: [PATCH] support for modprobe.d

2008-07-09 Thread Natanael Copa
On Wed, 2008-07-09 at 17:01 +0200, Natanael Copa wrote: hi, attatched is a patch from Timo Teräs that adds support for modprobe.d seems like it increase size on my hardened gcc-3.4.6 uclibc setup but reduce size on glibc + gcc-4.2.3 includes a compilation fix for mtab Some of my

Re: Ответ: Ответ: LIBBB: parse_config()

2008-07-09 Thread Tito
On Wednesday 09 July 2008 14:35:50 Rob Landley wrote: On Tuesday 08 July 2008 16:40:14 Vladimir Dronnikov wrote: Cool! But we need to not just process continuations and comments but also to parse the line into some (possibly variable) amount of whitespaces-delimited tokens. There's

Re: Ответ: Ответ: Ответ: MODPROBE: next generation

2008-07-09 Thread Denys Vlasenko
2008/7/9 Denys Vlasenko [EMAIL PROTECTED]: On Tuesday 08 July 2008 12:16, Vladimir Dronnikov wrote: 3. not read - become a master. open .modules.dep.do-not-edit!!! for exclusive write. all other concurrent modprobes have to wait till the master closes the file. This exclusive write stuff is

insmod don't compile (was: Missing libbb/xrealloc_vector.c)

2008-07-09 Thread Cristian Ionescu-Idbohrn
On Wed, 9 Jul 2008, Cristian Ionescu-Idbohrn wrote: There seems to be more to it: modutils/insmod.c: In function 'obj_allocate_commons': modutils/insmod.c:3085: error: too many arguments to function 'xrealloc' That line reads: f-sections = xrealloc(f-sections, 2,

Re: insmod don't compile (was: Missing libbb/xrealloc_vector.c)

2008-07-09 Thread Bernhard Fischer
On Wed, Jul 09, 2008 at 07:23:55PM +0200, Cristian Ionescu-Idbohrn wrote: On Wed, 9 Jul 2008, Cristian Ionescu-Idbohrn wrote: There seems to be more to it: modutils/insmod.c: In function 'obj_allocate_commons': modutils/insmod.c:3085: error: too many arguments to function 'xrealloc' That

Re: AW: mdev scan

2008-07-09 Thread Malek
Hi all, there are almost 1 year since I sent my patch to improve mdev and I note that there is always the same problems (symlinks, max depth, CONFIG_SYSFS_DEPRECATED_V2...). My version works well with or without CONFIG_SYSFS_DEPRECATED_V2, I suggest you to try it and I am open to your

Re: Missing libbb/xrealloc_vector.c

2008-07-09 Thread Denys Vlasenko
On Wednesday 09 July 2008 08:58, Cristian Ionescu-Idbohrn wrote: On Tue, 8 Jul 2008, Loïc Grenié wrote: Halp ! A file is missing from last svn. There seems to be more to it: modutils/insmod.c: In function 'obj_allocate_commons': modutils/insmod.c:3085: error: too many arguments

Re: Missing libbb/xrealloc_vector.c

2008-07-09 Thread Denys Vlasenko
On Wednesday 09 July 2008 21:54, Denys Vlasenko wrote: On Wednesday 09 July 2008 08:58, Cristian Ionescu-Idbohrn wrote: On Tue, 8 Jul 2008, Loïc Grenié wrote: Halp ! A file is missing from last svn. There seems to be more to it: modutils/insmod.c: In function

Re: Missing libbb/xrealloc_vector.c

2008-07-09 Thread Cristian Ionescu-Idbohrn
On Wed, 9 Jul 2008, Denys Vlasenko wrote: On Wednesday 09 July 2008 21:54, Denys Vlasenko wrote: On Wednesday 09 July 2008 08:58, Cristian Ionescu-Idbohrn wrote: On Tue, 8 Jul 2008, Loïc Grenié wrote: Halp ! A file is missing from last svn. There seems to be more to it:

Re: AW: mdev scan

2008-07-09 Thread Denys Vlasenko
On Wednesday 09 July 2008 20:46, Malek wrote: Hi all, there are almost 1 year since I sent my patch to improve mdev and I note that there is always the same problems (symlinks, max depth, CONFIG_SYSFS_DEPRECATED_V2...). My version works well with or without CONFIG_SYSFS_DEPRECATED_V2, I

Re: ifenslave

2008-07-09 Thread Denys Vlasenko
On Wednesday 09 July 2008 17:02, Richard Kojedzinszky wrote: I found that this patch helps ifenslave to work correctly. Kojedzinszky Richard TvNetWork Nyrt. E-mail: krichy (at) tvnetwork [dot] hu PGP: 0x24E79141 Fingerprint = 6847 ECFF EF58 0C09 18A5 16CF 270F 0C6F 24E7 9141

Re: mdev scan

2008-07-09 Thread Bernhard Fischer
On Sun, Jul 06, 2008 at 07:23:47PM -0500, Rob Landley wrote: On Sunday 06 July 2008 01:42:23 Denys Vlasenko wrote: The first is to ignore links while traversing, Yeah, pity mdev author forgot to document why ACTION_FOLLOWLINKS is necessary (example would be most useful). What's

Re: Ответ: Ответ: LIBBB: parse_config()

2008-07-09 Thread Tito
On Wednesday 09 July 2008 18:01:17 Tito wrote: On Wednesday 09 July 2008 14:35:50 Rob Landley wrote: On Tuesday 08 July 2008 16:40:14 Vladimir Dronnikov wrote: Cool! But we need to not just process continuations and comments but also to parse the line into some (possibly variable)

Re: Ответ: Ответ: LIBBB: parse_config()

2008-07-09 Thread Vladimir Dronnikov
Hmmm! 1. The only major difference from what I proposed on (09.07.2008 2:16) is to use a bunch on xmalloc_fgetline() (which in turn uses a bunch of fgetc()) along with malloc/free cycles. I still think then if a file can be processed in-memory it should be processed in-memory. Though a FEATURE