Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2007 14:37:13 +0200
From:      Andriy Gapon <avg@icyb.net.ua>
To:        Joe Marcus Clarke <marcus@freebsd.org>
Cc:        freebsd-gnome@freebsd.org
Subject:   hald patch: quieter audio cd probing
Message-ID:  <47739C79.2080508@icyb.net.ua>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------020905010203020500070605
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit


With the attached patched I eliminated "Illegal mode for this track"
messages while hald probes audio cd. The idea was that if cdrom doesn't
have any data tracks then we should not try to find any volumes on it.

-- 
Andriy Gapon

--------------020905010203020500070605
Content-Type: text/x-patch;
 name="patch-audio-cd.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-audio-cd.patch"

--- hald/freebsd/probing/probe-volume.c.orig	Thu Dec 27 14:26:03 2007
+++ hald/freebsd/probing/probe-volume.c	Thu Dec 27 14:27:22 2007
@@ -377,7 +377,7 @@
    * is a swap partition, we probe it nevertheless in case the
    * partition type is incorrect.
    */
-  if (! has_children)
+  if (! has_children && ! (is_cdrom && ! has_data))
     {
       vid = volume_id_open_fd(fd);
       if (vid)

--------------020905010203020500070605--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47739C79.2080508>