Re: mdev scan

2008-07-11 Thread Rob Landley
On Wednesday 09 July 2008 17:18:50 Bernhard Fischer wrote: Ah, busybox has grown an equivalent of toybox's dirtree stuff since 1.2.2. I hadn't know that... No, sounds more like the opposite since recursive_action is in busybox since ages ;)

Re: mdev scan

2008-07-10 Thread Denys Vlasenko
On Thursday 10 July 2008 00:18, Bernhard Fischer wrote: What's ACTION_FOLLOWLINKS? I don't see it in the 1.10.0 util-linux/mdev.c... Here: ... recursive_action(/sys/block, ACTION_RECURSE | ACTION_FOLLOWLINKS,

Re: mdev scan

2008-07-10 Thread Bernhard Fischer
On Thu, Jul 10, 2008 at 09:19:38AM +0200, Denys Vlasenko wrote: On Thursday 10 July 2008 00:18, Bernhard Fischer wrote: What's ACTION_FOLLOWLINKS? I don't see it in the 1.10.0 util-linux/mdev.c... Here: ... recursive_action(/sys/block,

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

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

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: 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: 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: mdev scan

2008-07-08 Thread Holland, John
Hi, Please give specific examples of the nodes which are not found. Full path, which path components are links, etc. Specify your kernel version and post kernel's config.gz Thanks for forcing me to look at the live 2.6.13.1 kernel I have here again. The bugger isn't producing any dev files on

RE: mdev scan

2008-07-07 Thread Holland, John
I'm having problems scanning usb_endpoint '/dev's on older kernels, 2.6.13 in particular. The usb_endpoints are beyond the constant MAX_SYSFS_DEPTH somewhere under /sys. How much is ok on those kernels? 4? 5? 5 would be good, but then I have problems with circular recursion. Is there any

RE: mdev scan

2008-07-07 Thread Holland, John
Because a picture is worth a thousand words... --- util-linux/mdev.c 2008-07-01 17:34:50.0 +0200 +++ util-linux/mdev.c.new 2008-07-08 00:16:36.0 +0200 @@ -21,8 +21,6 @@ #define root_major (G.root_major) #define root_minor (G.root_minor) -#define MAX_SYSFS_DEPTH 3 /*

RE: mdev scan

2008-07-07 Thread Holland, John
oops... + if (NULL == strstr(path[5], /block/)) should be + if (NULL == strstr(path[4], /block/)) John ___ Cellent Finance Solutions AG Firmensitz: Calwer Straße 33, 70173 Stuttgart Registergericht: Amtsgericht Stuttgart, HRB 720743

Re: mdev scan

2008-07-07 Thread Denys Vlasenko
Hi, I see that this mdev stuff is not so simple. On Monday 07 July 2008 23:25, Holland, John wrote: I'm having problems scanning usb_endpoint '/dev's on older kernels, 2.6.13 in particular. The usb_endpoints are beyond the constant MAX_SYSFS_DEPTH somewhere under /sys. How much is

Re: mdev scan

2008-07-06 Thread Denys Vlasenko
On Sunday 06 July 2008 01:13, Rob Landley wrote: On Friday 04 July 2008 17:07:20 Denys Vlasenko wrote: On Friday 04 July 2008 13:39, Holland, John wrote: Hi, I'm having problems scanning usb_endpoint '/dev's on older kernels, 2.6.13 in particular. The usb_endpoints are beyond the

Re: mdev scan

2008-07-06 Thread Rob Landley
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 ACTION_FOLLOWLINKS? I don't see it in the 1.10.0

mdev scan

2008-07-04 Thread Holland, John
Hi, I'm having problems scanning usb_endpoint '/dev's on older kernels, 2.6.13 in particular. The usb_endpoints are beyond the constant MAX_SYSFS_DEPTH somewhere under /sys. Is there any particular reason for scanning /sys/block and /sys/class separately other than to ascertain a nodes type?