David Zeuthen | 1 Aug 21:23 2008
Picon

Re: cd-tray immediately closed after it has been opened

On Thu, 2008-07-31 at 09:48 +0200, Kay Sievers wrote:
> Ah, great, thanks for the test. We might just be able to skip optical
> drives if cdrom_id did not find a valid media. Does adding this rule
> (ID_CDROM_MEDIA_TRACK_COUNT) fix the unwanted tray closing?

Your patch fixes the problem for me. Thanks!

     David

--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Christian Krause | 3 Aug 19:38 2008
Picon

Re: cd-tray immediately closed after it has been opened

Hi Kay,

Kay Sievers wrote:
> Ah, great, thanks for the test. We might just be able to skip optical
> drives if cdrom_id did not find a valid media. Does adding this rule
> (ID_CDROM_MEDIA_TRACK_COUNT) fix the unwanted tray closing?
>
> Thanks,
> Kay
>
> --- a/rules/rules.d/60-persistent-storage.rules
> +++ b/rules/rules.d/60-persistent-storage.rules
>  <at>  <at>  -52,6 +52,8
>
>  # skip unpartitioned removable media devices from drivers which do
> not send "change" events
>  ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1",
> GOTO="persistent_storage_end"
> +# skip optical drives without media
> +ENV{DEVTYPE}=="disk", KERNEL=="sr*",
> ENV{ID_CDROM_MEDIA_TRACK_COUNT}!="?*", GOTO="persistent_storage_end"
>
>   

Sorry for the late answer. I've tried out the patch and it solves the 
problem for me. Thanks!

Best regards,
Christian
--
(Continue reading)

Kay Sievers | 4 Aug 08:53 2008

[ANNOUNCE] udev 126 release

Here comes a new udev version. Thanks to all who have contributed to
this release.

The tarball can be found here:
  ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/

The development repository can be found here:
  http://www.kernel.org/git/?p=linux/hotplug/udev.git;a=summary

The ChangeLog can be found here:
  http://www.kernel.org/git/?p=linux/hotplug/udev.git;a=blob;hb=HEAD;f=ChangeLog

udev 126
========
We use ./configure now. See INSTALL for details. Current
options are:
    --prefix=
        "/usr" - prefix for man pages, include files
    --exec-prefix=
        "" - the root filesystem, prefix for libs and binaries
    --sysconfdir=
        "/etc"
    --with-libdir-name=
        "lib" - directory name for libraries, not a path name
        multilib 64bit systems may use "lib64" instead of "lib"
    --enable-debug
        compile-in verbose debug messages
    --disable-logging
        disable all logging and compile-out all log strings
    --with-selinux
(Continue reading)

Kay Sievers | 4 Aug 08:52 2008

Re: cd-tray immediately closed after it has been opened

On Sun, Aug 3, 2008 at 19:38, Christian Krause <chkr <at> plauener.de> wrote:
> Kay Sievers wrote:
>>
>> Ah, great, thanks for the test. We might just be able to skip optical
>> drives if cdrom_id did not find a valid media. Does adding this rule
>> (ID_CDROM_MEDIA_TRACK_COUNT) fix the unwanted tray closing?
>>
>> Thanks,
>> Kay
>>
>> --- a/rules/rules.d/60-persistent-storage.rules
>> +++ b/rules/rules.d/60-persistent-storage.rules
>>  <at>  <at>  -52,6 +52,8
>>
>>  # skip unpartitioned removable media devices from drivers which do
>> not send "change" events
>>  ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1",
>> GOTO="persistent_storage_end"
>> +# skip optical drives without media
>> +ENV{DEVTYPE}=="disk", KERNEL=="sr*",
>> ENV{ID_CDROM_MEDIA_TRACK_COUNT}!="?*", GOTO="persistent_storage_end"
>>
>
> Sorry for the late answer. I've tried out the patch and it solves the
> problem for me. Thanks!

It's part of udev 126. Thanks a lot for your help.

Kay
--
(Continue reading)

Karel Zak | 4 Aug 14:49 2008
Picon

Re: [ANNOUNCE] udev 126 release

On Mon, Aug 04, 2008 at 08:53:06AM +0200, Kay Sievers wrote:
> udev 126
> ========
> We use ./configure now. See INSTALL for details. Current

 Finally. Thanks :-)

    Karel

--

-- 
 Karel Zak  <kzak <at> redhat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Kay Sievers | 8 Aug 13:14 2008

Re: [ANNOUNCE] udev 126 release

On Fri, 2008-08-08 at 12:55 +0200, Gabor Z. Papp wrote:
> * Kay Sievers <kay.sievers <at> vrfy.org>:
> 
> | Here comes a new udev version. Thanks to all who have contributed to
> | this release.
> 
> gcc -g -O2 -o test-udev test-udev.o udev_config.o udev_db.o
> udev_device.o udev_node.o udev_rules.o udev_rules_parse.o
> udev_sysdeps.o udev_sysfs.o udev_utils.o udev_utils_file.o udev_utils_string.o   
> gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONFDIR=\""/etc"\" -DUDEV_PREFIX=\""/usr"\"   -g -O2 -MT udevd.o
-MD -MP -MF
> .deps/udevd.Tpo -c -o udevd.o udevd.c
> udevd.c: In function 'init_uevent_netlink_sock':
> udevd.c:909: error: 'NETLINK_KOBJECT_UEVENT' undeclared (first use in this function)
> udevd.c:909: error: (Each undeclared identifier is reported only once
> udevd.c:909: error: for each function it appears in.)
> udevd.c:916: error: 'SO_RCVBUFFORCE' undeclared (first use in this function)
> udevd.c: In function 'main':
> udevd.c:1152: error: 'IN_CREATE' undeclared (first use in this function)
> udevd.c:1152: error: 'IN_DELETE' undeclared (first use in this function)
> udevd.c:1152: error: 'IN_MOVE' undeclared (first use in this function)
> udevd.c:1152: error: 'IN_CLOSE_WRITE' undeclared (first use in this function)
> make[2]: *** [udevd.o] Error 1
> 
> [kernel]
> Linux gzp1 2.4.36.6-gzp1 #1 SMP Sat Jun 7 08:43:14 CEST 2008 i686 GNU/Linux

Udev depends on a 2.6 kernel. :) The udev build depends on
kernel-headers, which contain the features udev uses. 

(Continue reading)

Gabor Z. Papp | 8 Aug 13:14 2008
Picon

Re: [ANNOUNCE] udev 126 release

* Kay Sievers <kay.sievers <at> vrfy.org>:

| > Linux gzp1 2.4.36.6-gzp1 #1 SMP Sat Jun 7 08:43:14 CEST 2008 i686 GNU/Linux

| Udev depends on a 2.6 kernel. :) The udev build depends on
| kernel-headers, which contain the features udev uses. 

okay. v125 built fine on 2.4
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Gabor Z. Papp | 8 Aug 12:55 2008
Picon

Re: [ANNOUNCE] udev 126 release

* Kay Sievers <kay.sievers <at> vrfy.org>:

| Here comes a new udev version. Thanks to all who have contributed to
| this release.

gcc -g -O2 -o test-udev test-udev.o udev_config.o udev_db.o
udev_device.o udev_node.o udev_rules.o udev_rules_parse.o
udev_sysdeps.o udev_sysfs.o udev_utils.o udev_utils_file.o udev_utils_string.o   
gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONFDIR=\""/etc"\" -DUDEV_PREFIX=\""/usr"\"   -g -O2 -MT udevd.o -MD
-MP -MF
.deps/udevd.Tpo -c -o udevd.o udevd.c
udevd.c: In function 'init_uevent_netlink_sock':
udevd.c:909: error: 'NETLINK_KOBJECT_UEVENT' undeclared (first use in this function)
udevd.c:909: error: (Each undeclared identifier is reported only once
udevd.c:909: error: for each function it appears in.)
udevd.c:916: error: 'SO_RCVBUFFORCE' undeclared (first use in this function)
udevd.c: In function 'main':
udevd.c:1152: error: 'IN_CREATE' undeclared (first use in this function)
udevd.c:1152: error: 'IN_DELETE' undeclared (first use in this function)
udevd.c:1152: error: 'IN_MOVE' undeclared (first use in this function)
udevd.c:1152: error: 'IN_CLOSE_WRITE' undeclared (first use in this function)
make[2]: *** [udevd.o] Error 1

[kernel]
Linux gzp1 2.4.36.6-gzp1 #1 SMP Sat Jun 7 08:43:14 CEST 2008 i686 GNU/Linux

[glibc]
GNU C Library stable release version 2.3.6, by Roland McGrath et al.
Compiled by GNU CC version 4.1.2.
Compiled on a Linux 2.4.34-gzp1 system on 2007-04-04.
(Continue reading)

Gabor Z. Papp | 8 Aug 13:33 2008
Picon

Re: [ANNOUNCE] udev 126 release

* "Gabor Z. Papp" <gzp <at> papp.hu>:

| | > Linux gzp1 2.4.36.6-gzp1 #1 SMP Sat Jun 7 08:43:14 CEST 2008 i686 GNU/Linux

| | Udev depends on a 2.6 kernel. :) The udev build depends on
| | kernel-headers, which contain the features udev uses. 

| okay. v125 built fine on 2.4

Building on 2.6.26.2:

make  all-recursive
make[1]: Entering directory `/mnt/harddisk/home/gzp/src/udev-126'
Making all in udev
make[2]: Entering directory `/mnt/harddisk/home/gzp/src/udev-126/udev'
gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONFDIR=\""/usr/etc"\" -DUDEV_PREFIX=\""/usr"\"   -g -O2 -MT
udevd.o -MD -MP -MF .deps/udevd.Tpo -c -o udevd.o udevd.c
udevd.c: In function `main':
udevd.c:1152: error: `IN_CREATE' undeclared (first use in this function)
udevd.c:1152: error: (Each undeclared identifier is reported only once
udevd.c:1152: error: for each function it appears in.)
udevd.c:1152: error: `IN_DELETE' undeclared (first use in this function)
udevd.c:1152: error: `IN_MOVE' undeclared (first use in this function)
udevd.c:1152: error: `IN_CLOSE_WRITE' undeclared (first use in this function)
make[2]: *** [udevd.o] Error 1
make[2]: Leaving directory `/mnt/harddisk/home/gzp/src/udev-126/udev'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/harddisk/home/gzp/src/udev-126'
make: *** [all] Error 2
--
(Continue reading)

Kay Sievers | 8 Aug 13:53 2008

Re: [ANNOUNCE] udev 126 release

On Fri, 2008-08-08 at 13:33 +0200, Gabor Z. Papp wrote:
> * "Gabor Z. Papp" <gzp <at> papp.hu>:
> 
> | | > Linux gzp1 2.4.36.6-gzp1 #1 SMP Sat Jun 7 08:43:14 CEST 2008 i686 GNU/Linux
> 
> | | Udev depends on a 2.6 kernel. :) The udev build depends on
> | | kernel-headers, which contain the features udev uses. 
> 
> | okay. v125 built fine on 2.4
> 
> Building on 2.6.26.2:
> 
> make  all-recursive
> make[1]: Entering directory `/mnt/harddisk/home/gzp/src/udev-126'
> Making all in udev
> make[2]: Entering directory `/mnt/harddisk/home/gzp/src/udev-126/udev'
> gcc -DHAVE_CONFIG_H -I. -I..  -DSYSCONFDIR=\""/usr/etc"\" -DUDEV_PREFIX=\""/usr"\"   -g -O2 -MT
udevd.o -MD -MP -MF .deps/udevd.Tpo -c -o udevd.o udevd.c
> udevd.c: In function `main':
> udevd.c:1152: error: `IN_CREATE' undeclared (first use in this function)
> udevd.c:1152: error: (Each undeclared identifier is reported only once
> udevd.c:1152: error: for each function it appears in.)
> udevd.c:1152: error: `IN_DELETE' undeclared (first use in this function)
> udevd.c:1152: error: `IN_MOVE' undeclared (first use in this function)
> udevd.c:1152: error: `IN_CLOSE_WRITE' undeclared (first use in this function)
> make[2]: *** [udevd.o] Error 1
> make[2]: Leaving directory `/mnt/harddisk/home/gzp/src/udev-126/udev'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/mnt/harddisk/home/gzp/src/udev-126'
> make: *** [all] Error 2
(Continue reading)


Gmane