Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 2010 12:28:22 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-bugs@FreeBSD.ORG, yuri@rawbw.com, blackend@FreeBSD.ORG
Subject:   Re: kern/115232: [ata] Audio CD tracks not displayed properly by atapi driver
Message-ID:  <201008101028.o7AASMsX064779@lurza.secnetix.de>
In-Reply-To: <4C6111C3.1030109@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Yuri <yuri@rawbw.com> wrote:
 > Could you check if:
 > > # dd if=/dev/acd0 of=/dev/null count=1
 > > 
 > > does the trick as mentioned in the Handbook?
 > > 
 > > 
 > > http://www.freebsd.org/cgi/query-pr.cgi?pr=115232
 > 
 > Yes, this trick works.
 > But the problem with it is that this should be done without such 'dd'
 > command. User should be relieved from issuing such meaningless command

It's not meaningless.  It causes the driver to actually
look at the drive, re-read the TOC of the CD (there is no
other way to find out if the CD was changed) and update
the device nodes in /dev.

 > since system can do this automatically, avoiding user actions and
 > possible user confusion.
 > 
 > Driver knows when disk is inserted

No, the driver does *not* know when a disk is inserted,
unless it actually accesses the CD (caused by the "dd"
command above, for example).

Automatic detection and notification is not supported by
the hardware (unlike USB devices, for example).

 > (for example in Windows autorun executes when disk is inserted).

That only works because Windows actively polls the drives
periodically, which is a bad hack, in my opinion.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

$ dd if=/dev/urandom of=test.pl count=1
$ file test.pl
test.pl: perl script text executable



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