Subject: Re: sd.c rev 1.249 & my digicam
To: Hubert Feyrer <firstname.lastname@example.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
Date: 09/14/2006 21:31:35
Hi Hubert -
> I found that your last change (rev. 1.249) to src/sys/dev/scsipi/sd.c
> makes my digicam no longer:
Sorry about that...
> sd0 at atapibus0 drive 0: <DIGITAL, CAMERA, 1.00> disk removable
> sd0(umass0:0:0): readonly device
> sd0: drive offline
> noon% sudo disklabel sd0
> # /dev/rsd0d:
I've stared at the code, but didn't find why that worked at all.
If the drive is "offline" (which basically means sd_get_parms()
did fail), I'd pretty much expect everything else to fail.
So the question is why sd_get_parms() fails... If I didn't miss
something important the error must originate in sd_get_capacity().
Could you instrument that code a bit -- there is some debug code
within "#if 0" which might just do it.