Hi,
I am writing a File System Filter Driver, which is upper the File System Driver. But I want to read some info about the harddisk, e.g, serial number of harddisk. So, I have to IRP to disk driver.
Can I send IRP directly to disk driver in my FS Filter Driver? How?
In bad need of help! Thanks!
There is no reason to believe that an instance of a file system
contained by a volume maps to just one physical disk or to any physical
disk devices at all. A volume can be contained by more than one physical
disk (mirrored, spanned, striped, etc.), and can be entirely virtual
with no local physical storage.
There are IOCTLs which will tell you the set of physical disks that
contain portions of a volume, if the volume maps to physical disks. From
that information you can derive the device names of these physical
disks, and then you can open those disk devices and send them each any
IOCTL you want. See IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
headium2006@163.com
Sent: Wednesday, October 04, 2006 3:13 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Can I send IRP to disk driver?
Hi,
I am writing a File System Filter Driver, which is upper the File System
Driver. But I want to read some info about the harddisk, e.g, serial
number of harddisk. So, I have to IRP to disk driver.
Can I send IRP directly to disk driver in my FS Filter Driver? How?
In bad need of help! Thanks!
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer