login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
10
Re: sysfs change of input/event devices in 2.6.23rc breaks udev
view
thread
Previous message: [thread] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Andrey Borzenkov
Subject:
Re: sysfs change of input/event devices in 2.6.23rc breaks udev
Date: Sunday, September 9, 2007 - 7:40 pm
Kay Sievers wrote:
quoted text
> On 9/8/07, Anssi Hannula <anssi.hannula@gmail.com> wrote: >> There seem to be changes in sysfs input structure between 2.6.22 and >> 2.6.23-rc5 which cause some breakage. >> >> With 2.6.22: >> >> > # LC_ALL=C ls -l /sys/class/input/input4 >> > total 0 >> > drwxr-xr-x 2 root root 0 Sep 8 12:51 capabilities/ >> > lrwxrwxrwx 1 root root 0 Sep 8 19:48 device -> >> > ../../../devices/platform/pcspkr/ >> > drwxr-xr-x 2 root root 0 Sep 8 12:51 event4/ >> > drwxr-xr-x 2 root root 0 Sep 8 12:51 id/ >> > -r--r--r-- 1 root root 4096 Sep 8 19:48 modalias >> > -r--r--r-- 1 root root 4096 Sep 8 19:48 name >> > -r--r--r-- 1 root root 4096 Sep 8 19:48 phys >> > lrwxrwxrwx 1 root root 0 Sep 8 19:48 subsystem -> >> > ../../../class/input/ >> > --w------- 1 root root 4096 Sep 8 19:48 uevent >> > -r--r--r-- 1 root root 4096 Sep 8 19:48 uniq >> >> > # ls -l /sys/class/input/event4 >> > lrwxrwxrwx 1 root root 0 Sep 8 19:48 /sys/class/input/event4 -> >> > ../../class/input/input4/event4/ >> > # ls -l /sys/class/input/event4/ >> > total 0 >> > -r--r--r-- 1 root root 4096 Sep 8 19:58 dev >> > lrwxrwxrwx 1 root root 0 Sep 8 19:58 device -> >> > ../../../../devices/platform/pcspkr/ >> > lrwxrwxrwx 1 root root 0 Sep 8 19:58 subsystem -> >> > ../../../../class/input/ >> > --w------- 1 root root 4096 Sep 8 19:58 uevent >> >> With 2.6.23-rc5: >> >> > # ls -l /sys/class/input/input5 >> > total 0 >> > drwxr-xr-x 2 root root 0 Sep 8 19:47 capabilities/ >> > lrwxrwxrwx 1 root root 0 Sep 8 19:03 device -> >> > ../../../devices/platform/pcspkr/ >> > drwxr-xr-x 2 root root 0 Sep 8 19:47 id/ >> > lrwxrwxrwx 1 root root 0 Sep 8 19:47 input:event5 -> >> > ../../../class/input/event5/ >> > -r--r--r-- 1 root root 4096 Sep 8 19:03 modalias >> > -r--r--r-- 1 root root 4096 Sep 8 19:03 name >> > -r--r--r-- 1 root root 4096 Sep 8 19:47 phys >> > drwxr-xr-x 2 root root 0 Sep 8 19:47 power/ >> > lrwxrwxrwx 1 root root 0 Sep 8 19:03 subsystem -> >> > ../../../class/input/ >> > -rw-r--r-- 1 root root 4096 Sep 8 19:03 uevent >> > -r--r--r-- 1 root root 4096 Sep 8 19:47 uniq >> >> > # ls -l /sys/class/input/event5 >> > total 0 >> > -r--r--r-- 1 root root 4096 Sep 8 19:03 dev >> > lrwxrwxrwx 1 root root 0 Sep 8 19:03 device -> >> > ../../../class/input/input5/ >> > drwxr-xr-x 2 root root 0 Sep 8 19:48 power/ >> > lrwxrwxrwx 1 root root 0 Sep 8 19:03 subsystem -> >> > ../../../class/input/ >> > -rw-r--r-- 1 root root 4096 Sep 8 19:03 uevent >> >> There are a few changes. >> >> There is no longer: >> /sys/class/input/eventX => /sys/class/input/inputX/eventX >> instead there is: >> /sys/class/inputX/input:eventX => /sys/class/input/eventX >> Notice the added "input:". I don't know if any software depends on this, >> though. >> >> However, the change that broke id_path of udev is that >> /sys/class/input/event5/device is now a symlink to the inputX directory >> instead of being the same as the device symlink in inputX directory, >> i.e. to ../../../devices/platform/pcspkr in this case. >> >> Udev id_path uses that directory to construct the ID_PATH variable. >> Should the sysfs structure be reverted or should udev be adapted to >> handle traversing /device symlink twice? I think the former, as there >> should be considerably more time to adapt udev for coming changes in >> sysfs. > > Udev's path_id script is too dumb to follow the "device" link of > stacked class devices in the CONFIG_SYSFS_DEPRECATED=y layout. Does > this change fix it for you? >
http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff_plain;h=b1ac36ff5e3756cef...
quoted text
>
This just delays the issue until we have 3 levels of indirection :) -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [thread] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
Re: sysfs change of input/event devices in 2.6.23rc breaks ...
, Andrey Borzenkov
, (Sun Sep 9, 7:40 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Frederic Weisbecker
[PATCH v2] struct sort_entry has a callback named snprintf that turns an entry int...
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Jens Axboe
Re: [BUG] Linux 2.6.25-rc2 - Regression from 2.6.24-rc1-git1 softlockup while bo...
Andrew Morton
Re: [PATCH v3 0/4] Introduce hardware spinlock framework
Ingo Molnar
Re: [GIT PULL] time.c - respin
git
:
Junio C Hamano
Re: git-svnimport
Michal Sojka
[PATCHv5 1/2] filter-branch: Fix to allow replacing submodules with another content
Junio C Hamano
Re: Fwd: git status options feature suggestion
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
git-commits-head
:
Linux Kernel Mailing List
ARM: S3C64XX: DMA: Callback with correct buffer pointer
Linux Kernel Mailing List
sata_mv: drop unncessary EH callback resetting
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
Rene Maroufi
smtpd: Aliases only work with for local alias aliases
Stephen J. Bevan
GRE over IPsec
Christophe Rioux
Implementation example of snmp
Darrin Chandler
Re: strange output on openbsd C code
Nick Holland
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate