Re: LBA in diskperf;
- From: krish <pradeep_bisht@xxxxxxxxx>
- Date: Wed, 11 Jun 2008 11:25:17 -0700 (PDT)
Thanks Don.
On Jun 11, 4:34 am, "Don Burn" <b...@xxxxxxxxxxxxxxxxxxxx> wrote:
Krish,
I messed up yesterday (under the weather) Max is correct just devide
the byteoffset by the LBA size.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website:http://www.windrvr.com
Blog:http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"krish" <pradeep_bi...@xxxxxxxxx> wrote in message
news:bffbc066-e4b9-43c8-aa6a-7d32db0c1c68@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Also in the following thread Maxim says that just divide
currentIrpStack->Parameters.Read.ByteOffset.QuadPart by sector size to
get the LBA which I think would be wrong if it currentIrpStack-
Parameters.Read.ByteOffset.QuadPart is the byte offset in thepartition. right?
http://groups.google.com/group/microsoft.public.development.device.dr...
On Jun 10, 5:31 pm, krish <pradeep_bi...@xxxxxxxxx> wrote:
On Jun 10, 5:03 pm, "Don Burn" <b...@xxxxxxxxxxxxxxxxxxxx> wrote:> It is
the byte offset in the partition. You can use the
IOCTL_DISK_GET_PARTION_INFO to get the base address of the partition.
--
Thanks Don. Then effectively we need to redo the logic of class driver
(disk.c). After getting the partition information (as per your
suggestion), I also need to use IOCTL_DISK_GET_DRIVE_GEOMETRY to get
the sector size etc to obtain the correct LBA. Right?
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website:http://www.windrvr.com
Blog:http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"krish" <pradeep_bi...@xxxxxxxxx> wrote in message
news:a77534aa-7043-431f-9c98-2f189c5f57f5@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How can I obtain the Logical Block Address (LBA) on the disk of a
write/read request in the diskperf? The current IO stack location in
diskperf has: currentIrpStack->Parameters.Read.ByteOffset.QuadPart
which I think is the byte offset with in a file. Thanks.
.
- References:
- LBA in diskperf;
- From: krish
- Re: LBA in diskperf;
- From: Don Burn
- Re: LBA in diskperf;
- From: krish
- Re: LBA in diskperf;
- From: krish
- Re: LBA in diskperf;
- From: Don Burn
- LBA in diskperf;
- Prev by Date: Re: whether a driver is running in user- or kernel- mode
- Next by Date: Re: Silent Driver Installation on XP with whql
- Previous by thread: Re: LBA in diskperf;
- Next by thread: NDIS61 Header Data Split and BackFill space
- Index(es):
Relevant Pages
|