Sector Size

I’m performing a file read in kernel mode.
The read operation is done with IRP_NOCACHE flag set on.
According to the ddk,I need to verify that the ByteOffset and the Length
values will be a multiple of the sector size.

How can I get the sector size of a disk in kernel mode, having the
handle/FileObject to the file?

u will have to build a IOCTL request with the code as
IOCTL_DISK_GET_DRIVE_GEOMETRY and send it to the disk driver. The o/p buffer
for this IOCTL request should be of type DISK_GEOMETRY which contains the
field BytesPerSector…

Hope this helps
RB

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of xxxxx@hotmail.com
Sent: Saturday, September 30, 2000 5:01 PM
To: File Systems Developers
Subject: [ntfsd] Sector Size

I’m performing a file read in kernel mode.
The read operation is done with IRP_NOCACHE flag set on.
According to the ddk,I need to verify that the ByteOffset and the Length
values will be a multiple of the sector size.

How can I get the sector size of a disk in kernel mode, having the
handle/FileObject to the file?


You are currently subscribed to ntfsd as: xxxxx@softhome.net
To unsubscribe send a blank email to $subst(‘Email.Unsub’)