Hi,
Could anybody prompt me how I can determine in the dispatch routine
for mount volume IRP whether this request is for fixed or removable disk?
Thanks in advance.
With best regards,
Leonid.
Hi,
Could anybody prompt me how I can determine in the dispatch routine
for mount volume IRP whether this request is for fixed or removable disk?
Thanks in advance.
With best regards,
Leonid.
Leonid:
First thing you can look at is
Vpb->DeviceObject->Characteristics&FILE_REMOVABLE_MEDIA
Second thing, you can send
IRP_MJ_DEVICE_CONTROL(IOCTL_DISK_GET_DRIVE_GEOMETRY)
to Vpb->DeviceObject and check returned DISK_GEOMETRY.MediaType for
RemovableMedia
or FixedMedia.
My guess would be that IOCTL is more precise way to determine that.
Regards,
Vladimir
-----Original Message-----
From: Leonid Zhigunov [mailto:xxxxx@progate.spb.ru]
Sent: Tuesday, May 14, 2002 3:21 AM
To: File Systems Developers
Subject: [ntfsd] IRP_MN_MOUNT_VOLUME: fixed vs. removable
Hi,
Could anybody prompt me how I can determine in the dispatch routine
for mount volume IRP whether this request is for fixed or removable disk?
Thanks in advance.
With best regards,
Leonid.
You are currently subscribed to ntfsd as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%
RE: [ntfsd] IRP_MN_MOUNT_VOLUME: fixed vs. removableThank you, Vladimir.
This is the way I thought. I have also found in ddk sources, that
corresponding drivers
return the information in DISK_GEOMETRY::MediaType based on its device
object
characteristics. So, it is better just to check
Vpb->RealDevice->Characteristics field
instead of issuing IRP_MJ_DEVICE_CONTROL.
Regards,
Leonid.
“Chtchetkine, Vladimir” wrote in message
news:xxxxx@ntfsd…
Leonid:
First thing you can look at is
Vpb->DeviceObject->Characteristics&FILE_REMOVABLE_MEDIA
Second thing, you can send
IRP_MJ_DEVICE_CONTROL(IOCTL_DISK_GET_DRIVE_GEOMETRY)
to Vpb->DeviceObject and check returned DISK_GEOMETRY.MediaType for
RemovableMedia
or FixedMedia.
My guess would be that IOCTL is more precise way to determine that.
Regards,
Vladimir
-----Original Message-----
From: Leonid Zhigunov [mailto:xxxxx@progate.spb.ru]
Sent: Tuesday, May 14, 2002 3:21 AM
To: File Systems Developers
Subject: [ntfsd] IRP_MN_MOUNT_VOLUME: fixed vs. removable
Hi,
Could anybody prompt me how I can determine in the dispatch routine
for mount volume IRP whether this request is for fixed or removable disk?
Thanks in advance.
With best regards,
Leonid.
—
You are currently subscribed to ntfsd as: xxxxx@Starbase.com
To unsubscribe send a blank email to %%email.unsub%%