Re: LBA in diskperf;

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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 the
partition. 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.

.



Relevant Pages

  • Re: I want to migrate to Linux
    ... Not to mention that - or so I have read, as I don't use Windows - Microsoft ... My plan is to start by booting from a LiveCD, then install Linux in a dual ... partition must start within the first 32 MB on the hard disk. ... kernel to userspace by an abstraction layer in the form of a filesystem on ...
    (comp.os.linux.hardware)
  • Re: How to create GRUB image into a file
    ... I want to use Windows XP boot loader, ... the only way I have to start linux is a boot disk with GRUB. ... You say you don't have a boot partition. ... What filesystem are you using as your "root" filesystem in Linux? ...
    (comp.os.linux.misc)
  • Re: CreateFile and GetVolumeInformation fail
    ... Windows is unable to assign the drive letter to a partition whose MBR type byte ... Windows does not pay any attention to MBR type byte in choosing a filesystem to ... SetupDiGetClassDevs with "Disk" device interface GUID. ...
    (microsoft.public.development.device.drivers)
  • Re: paritioning for linux and windows on same drive
    ... >> most certainly older windows would corrupt your filesystems. ... I've had Windows and DOS ... DOS determines the mode in which to access a partition ... To this end the LBA types have been ...
    (comp.os.linux.setup)
  • Re: LBA in diskperf;
    ... the byteoffset by the LBA size. ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... the byte offset in the partition. ...
    (microsoft.public.development.device.drivers)