From owner-freebsd-hackers Wed May 29 13:21:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from freebsd.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by hub.freebsd.org (Postfix) with ESMTP id EB22037B423 for ; Wed, 29 May 2002 13:20:39 -0700 (PDT) Received: (from sos@localhost) by freebsd.dk (8.12.2/8.12.2) id g4TKKcHQ080631; Wed, 29 May 2002 22:20:38 +0200 (CEST) (envelope-from sos) From: Soeren Schmidt Message-Id: <200205292020.g4TKKcHQ080631@freebsd.dk> Subject: Re: process hang in atprq state In-Reply-To: <20020529221039.A2602@gromit.it.su.se> To: Richard Nyberg Date: Wed, 29 May 2002 22:20:38 +0200 (CEST) Cc: freebsd-hackers@FreeBSD.ORG Reply-To: sos@freebsd.dk X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems Richard Nyberg wrote: > Hi there. > I seem to have some problems with my cd read program. > > I've attached a small prototype program that for some reason hangs > in atprq, even though I use a timeout of 5 seconds. The program reads > a cd in raw format using the MMC READ_CD command. It works fine :) > except that it never manages to finish because of the hang. The hang > doesn't seem to be linked to any specific place on the cd, but it might > be linked to my ignorance ;) Uhm, you just need to set the blocksize on the CD device with the CDRIOCGETBLOCKSIZE and then just read the CD with dd if=/dev/acdX of=fil bs=2352 That will read the CD in RAW mode... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message