>>>>> "Richard" == Richard Moore <[email protected]> writes:
> Hi, > Would it be possible to please make the recent mdev change in v1.26 an > option? > * mdev (mdev: create devices from /sys/dev) commit 20a3262 (Sep 7, 2016) > I am stuck with a v2.6.2x kernel and I am sure other people must be too > who have no /sys/dev support in their kernel ? /sys/dev support got added in 2.6.27-rc1 (July 2008), E.G. ~9 years ago: commit e105b8bfc769b0545b6f0f395179d1e43cbee822 Author: Dan Williams <[email protected]> Date: Mon Apr 21 10:51:07 2008 -0700 sysfs: add /sys/dev/{char,block} to lookup sysfs path by major:minor Why?: There are occasions where userspace would like to access sysfs attributes for a device but it may not know how sysfs has named the device or the path. For example what is the sysfs path for /dev/disk/by-id/ata-ST3160827AS_5MT004CK? With this change a call to stat(2) returns the major:minor then userspace can see that /sys/dev/block/8:32 links to /sys/block/sdc. What are the alternatives?: 1/ Add an ioctl to return the path: Doable, but sysfs is meant to reduce the need to proliferate ioctl interfaces into the kernel, so this seems counter productive. 2/ Use udev to create these symlinks: Also doable, but it adds a udev dependency to utilities that might be running in a limited environment like an initramfs. 3/ Do a full-tree search of sysfs. [[email protected]: fix duplicate registrations] [[email protected]: cleanup suggestions] Cc: Neil Brown <[email protected]> Cc: Tejun Heo <[email protected]> Acked-by: Kay Sievers <[email protected]> Reviewed-by: SL Baur <[email protected]> Acked-by: Kay Sievers <[email protected]> Acked-by: Mark Lord <[email protected]> Acked-by: H. Peter Anvin <[email protected]> Signed-off-by: Dan Williams <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Does it really make sense to mix such an ancient kernel with a modern busybox? Why not just backport this kernel commit? -- Bye, Peter Korsgaard _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
