Hi all,
I have a upperfilter driver that is loaded on top of the disk.sys (Windows 2003 family). While sitting on top of the diskclass driver, my driver can occasionally block certain IOCTLs to my special disks to prevent the disks from being initialized(things like IOCTL_DISK_SET_DRIVE_LAYOUT, IOCTL_DISK_CREATE_DISK, ect) because I dont want anyone to “Write Signature” or “Initialize” the special disks from Disk Manager.
However, in Disk Manager, these special disks of mine have the “Unknown” and “Not initialize” attributes. When a user tries to initialize a new disk, Disk Manager presents a list that contains all of my special disks plus the new disk to be initialized. My question is, what can I do, in the filter driver, to make Disk Manager think that these special disks are not “Not initialize” or not “Unknown”?
Thanks
Peter Trinh
Peter,
If you handle IOCTL_DISK_GET_DRIVE_LAYOUT and
IOCTL_DISK_GET_DRIVE_LAYOUT_EX and fill in the appropriate structures
with sensible information (eg. PartitionCount and some unique value for
the Signature) the Disk Management tool will not prompt to initialize
your filtered disks.
On 20-Jan-04, at 4:15 PM, Peter Trinh wrote:
Hi all,
I have a upperfilter driver that is loaded on top of the disk.sys
(Windows 2003 family). While sitting on top of the diskclass driver,
my driver can occasionally block certain IOCTLs to my special disks to
prevent the disks from being initialized(things like
IOCTL_DISK_SET_DRIVE_LAYOUT, IOCTL_DISK_CREATE_DISK, ect) because I
dont want anyone to “Write Signature” or “Initialize” the special
disks from Disk Manager.
However, in Disk Manager, these special disks of mine have the
“Unknown” and “Not initialize” attributes. When a user tries to
initialize a new disk, Disk Manager presents a list that contains all
of my special disks plus the new disk to be initialized. My question
is, what can I do, in the filter driver, to make Disk Manager think
that these special disks are not “Not initialize” or not “Unknown”?
Thanks
Peter Trinh
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@telus.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
Cliff Russell
Software Engineer
xxxxx@atimi.com
250 818 5711
Atimi Software: Software Development - On Time.
http://www.atimi.com
Thanks for the suggestion.
What do you think the PartitionCount and Signature should be? (I dont want the disks to look “Basic” either). Can I just give a random number for the signature, say xAAAA?
Thanks
Peter Trinh
From: Cliff Russell
> Date: 2004/01/20 Tue PM 08:31:34 PST
> To: “Windows System Software Devs Interest List”
> Subject: Re: [ntdev] Disks “Not Initialize”???
>
> Peter,
>
> If you handle IOCTL_DISK_GET_DRIVE_LAYOUT and
> IOCTL_DISK_GET_DRIVE_LAYOUT_EX and fill in the appropriate structures
> with sensible information (eg. PartitionCount and some unique value for
> the Signature) the Disk Management tool will not prompt to initialize
> your filtered disks.
>
> On 20-Jan-04, at 4:15 PM, Peter Trinh wrote:
>
> > Hi all,
> >
> > I have a upperfilter driver that is loaded on top of the disk.sys
> > (Windows 2003 family). While sitting on top of the diskclass driver,
> > my driver can occasionally block certain IOCTLs to my special disks to
> > prevent the disks from being initialized(things like
> > IOCTL_DISK_SET_DRIVE_LAYOUT, IOCTL_DISK_CREATE_DISK, ect) because I
> > dont want anyone to “Write Signature” or “Initialize” the special
> > disks from Disk Manager.
> > However, in Disk Manager, these special disks of mine have the
> > “Unknown” and “Not initialize” attributes. When a user tries to
> > initialize a new disk, Disk Manager presents a list that contains all
> > of my special disks plus the new disk to be initialized. My question
> > is, what can I do, in the filter driver, to make Disk Manager think
> > that these special disks are not “Not initialize” or not “Unknown”?
> >
> > Thanks
> > Peter Trinh
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@telus.net
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - -
> Cliff Russell
> Software Engineer
>
> xxxxx@atimi.com
> 250 818 5711
>
> Atimi Software: Software Development - On Time.
> http://www.atimi.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@verizon.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Peter,
For PartitionCount it really depends on what your filter driver is
doing. How many partitions are on the disk? Do you want those
partitions visible in the disk manager? Zero may be a good choice, but
if you do assign PartitionCount to something other than zero you will
(obviously) have to fill out the information for the partitions
correctly too.
Unfortunately responding to the IOCTL will make the disk appear as
“Basic” disk. If you disk doesn’t appear as either a “Basic” disk or a
“Dynamic” disk, chances are you will be prompted to initialize the
disk.
For the signature, anything other than 0x0 would probably work, but it
might be a good idea to try and make it unique (ie. not the same as any
other disk), I’m not sure if there are any programs that assume that
the signature is unique.
On 21-Jan-04, at 11:13 AM, Peter Trinh wrote:
Thanks for the suggestion.
What do you think the PartitionCount and Signature should be? (I dont
want the disks to look “Basic” either). Can I just give a random
number for the signature, say xAAAA?
Thanks
Peter Trinh
> From: Cliff Russell
>> Date: 2004/01/20 Tue PM 08:31:34 PST
>> To: “Windows System Software Devs Interest List”
>> Subject: Re: [ntdev] Disks “Not Initialize”???
>>
>> Peter,
>>
>> If you handle IOCTL_DISK_GET_DRIVE_LAYOUT and
>> IOCTL_DISK_GET_DRIVE_LAYOUT_EX and fill in the appropriate structures
>> with sensible information (eg. PartitionCount and some unique value
>> for
>> the Signature) the Disk Management tool will not prompt to initialize
>> your filtered disks.
>>
>> On 20-Jan-04, at 4:15 PM, Peter Trinh wrote:
>>
>>> Hi all,
>>>
>>> I have a upperfilter driver that is loaded on top of the disk.sys
>>> (Windows 2003 family). While sitting on top of the diskclass driver,
>>> my driver can occasionally block certain IOCTLs to my special disks
>>> to
>>> prevent the disks from being initialized(things like
>>> IOCTL_DISK_SET_DRIVE_LAYOUT, IOCTL_DISK_CREATE_DISK, ect) because I
>>> dont want anyone to “Write Signature” or “Initialize” the special
>>> disks from Disk Manager.
>>> However, in Disk Manager, these special disks of mine have the
>>> “Unknown” and “Not initialize” attributes. When a user tries to
>>> initialize a new disk, Disk Manager presents a list that contains all
>>> of my special disks plus the new disk to be initialized. My question
>>> is, what can I do, in the filter driver, to make Disk Manager think
>>> that these special disks are not “Not initialize” or not “Unknown”?
>>>
>>> Thanks
>>> Peter Trinh
>>>
>>>
>>>
>>> —
>>> Questions? First check the Kernel Driver FAQ at
>>> http://www.osronline.com/article.cfm?id=256
>>>
>>> You are currently subscribed to ntdev as: xxxxx@telus.net
>>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>>
>>>
>>
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> -
>> - - - - -
>> Cliff Russell
>> Software Engineer
>>
>> xxxxx@atimi.com
>> 250 818 5711
>>
>> Atimi Software: Software Development - On Time.
>> http://www.atimi.com
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@verizon.net
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@telus.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
Cliff Russell
Software Engineer
xxxxx@atimi.com
250 818 5711
Atimi Software: Software Development - On Time.
http://www.atimi.com