* Is sector no. related to partitions in scsi drivers?
@ 2002-08-29 1:06 Jianyong Zhang
2002-08-29 1:44 ` Doug Ledford
0 siblings, 1 reply; 2+ messages in thread
From: Jianyong Zhang @ 2002-08-29 1:06 UTC (permalink / raw)
To: linux-scsi
Hi,
Now I want to write a io trace collect tool in the scsi driver layer. I
use aix7xxx driver, and collect io trace in the end of the funcion
ahc_linux_run_device_queue() in the file
drivers/scsi/aic7xxx/aic7xxx_linux.c . According to my understanding,
here cmd->request.sector is related to the begining of the partition, not
to the whole disk (suppose one disk has several partitions), is it right?
I'm wonder where this request's sector number will be converted to one
related to the whole disk. Is it done by the firmware of controller?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is sector no. related to partitions in scsi drivers?
2002-08-29 1:06 Is sector no. related to partitions in scsi drivers? Jianyong Zhang
@ 2002-08-29 1:44 ` Doug Ledford
0 siblings, 0 replies; 2+ messages in thread
From: Doug Ledford @ 2002-08-29 1:44 UTC (permalink / raw)
To: Jianyong Zhang; +Cc: linux-scsi
On Wed, Aug 28, 2002 at 09:06:38PM -0400, Jianyong Zhang wrote:
>
> I'm wonder where this request's sector number will be converted to one
> related to the whole disk. Is it done by the firmware of controller?
No. The aic7xxx driver couldn't care less what the sector number in the
request item is. The sd.c code handles converting request struct items to
physical sectors on the disk and then encodes the physical sector number
directly into the actual scsi command that it builds. The scsi command is
then sent to the device by the aic7xxx driver and the aic7xxx driver never
even bothers to look and see what sector the command is going to (it
doesn't need to).
--
Doug Ledford <dledford@redhat.com> 919-754-3700 x44233
Red Hat, Inc.
1801 Varsity Dr.
Raleigh, NC 27606
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-29 1:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-29 1:06 Is sector no. related to partitions in scsi drivers? Jianyong Zhang
2002-08-29 1:44 ` Doug Ledford
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.