Hello, evryone :
I want to set a partition of a disk read-only , which is not system
disk . For example , in my computer, I have a disk and a system : windows XP
SP2. In the disk , I have fore logical disks : C: , D:, E: and F: , and C:
is my system partition . Now , I want to set D: read-only .
In Windows DDK samples, I get a storige filter driver : diskperf . Who
had used the diskperf ?
In diskperf.c , I find DiskPerfReadWrite()/ IRP_MJ_WRITE . I debug the
deviceExtension->PhysicalDeviceNameBuffer .
But whether I write to D: or E: , C: , F: . I get a same redult :
Device\Harddisk0\Partition0 .!!!
What is the matter ?
What is the Harddisk0 ?
What is the Partition0 ?
How can I set a partition read-only by diskperf ?
Please help me .
Leo, Diskperf just enables the performance counters for the Logical Disk and
Physical Disk performance counter objects. I don’t think you can use it to
set a disk partition to read-only.
June Blender (MSFT)
DDK Tool Docs
xxxxx@microsoft.com
“Leo” wrote in message news:xxxxx@ntdev…
> Hello, evryone :
> I want to set a partition of a disk read-only , which is not system
> disk . For example , in my computer, I have a disk and a system : windows
> XP SP2. In the disk , I have fore logical disks : C: , D:, E: and F: , and
> C: is my system partition . Now , I want to set D: read-only .
> In Windows DDK samples, I get a storige filter driver : diskperf . Who
> had used the diskperf ?
> In diskperf.c , I find DiskPerfReadWrite()/ IRP_MJ_WRITE . I debug the
> deviceExtension->PhysicalDeviceNameBuffer .
> But whether I write to D: or E: , C: , F: . I get a same redult :
> Device\Harddisk0\Partition0 .!!!
> What is the matter ?
> What is the Harddisk0 ?
> What is the Partition0 ?
>
> How can I set a partition read-only by diskperf ?
>
> Please help me .
>
>
Oh , but if I only need to judge which partition is working . How can I do ?
For example , in the resource of diskperf.c , how can I find the way ?
thanks.
“June Blender (MSFT)” wrote in message
news:xxxxx@ntdev…
> Leo, Diskperf just enables the performance counters for the Logical Disk
> and Physical Disk performance counter objects. I don’t think you can use
> it to set a disk partition to read-only.
>
> --------------------------
> June Blender (MSFT)
> DDK Tool Docs
> xxxxx@microsoft.com
>
> “Leo” wrote in message news:xxxxx@ntdev…
>> Hello, evryone :
>> I want to set a partition of a disk read-only , which is not system
>> disk . For example , in my computer, I have a disk and a system : windows
>> XP SP2. In the disk , I have fore logical disks : C: , D:, E: and F: ,
>> and C: is my system partition . Now , I want to set D: read-only .
>> In Windows DDK samples, I get a storige filter driver : diskperf .
>> Who had used the diskperf ?
>> In diskperf.c , I find DiskPerfReadWrite()/ IRP_MJ_WRITE . I debug
>> the deviceExtension->PhysicalDeviceNameBuffer .
>> But whether I write to D: or E: , C: , F: . I get a same redult :
>> Device\Harddisk0\Partition0 .!!!
>> What is the matter ?
>> What is the Harddisk0 ?
>> What is the Partition0 ?
>>
>> How can I set a partition read-only by diskperf ?
>>
>> Please help me .
>>
>>
>
>
>
Leo,
I would simply write a filter driver and mark the disk device object
properties as read only and filter all the requests.
Ramesh Ahuja
Inventor of Jumpdrive Secure Technology ( Patent Pending )
http://winfs.tripod.com
On Wed, 2 Mar 2005 10:27:52 +0800, Leo wrote:
> Hello, evryone :
> I want to set a partition of a disk read-only , which is not system
> disk . For example , in my computer, I have a disk and a system : windows XP
> SP2. In the disk , I have fore logical disks : C: , D:, E: and F: , and C:
> is my system partition . Now , I want to set D: read-only .
> In Windows DDK samples, I get a storige filter driver : diskperf . Who
> had used the diskperf ?
> In diskperf.c , I find DiskPerfReadWrite()/ IRP_MJ_WRITE . I debug the
> deviceExtension->PhysicalDeviceNameBuffer .
> But whether I write to D: or E: , C: , F: . I get a same redult :
> Device\Harddisk0\Partition0 .!!!
> What is the matter ?
> What is the Harddisk0 ?
> What is the Partition0 ?
>
> How can I set a partition read-only by diskperf ?
>
> Please help me .
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
–
Ramesh Ahuja
Inventor of Jumpdrive Secure Technology ( Patent Pending )
http://winfs.tripod.com
You must fail IOCTL_DISK_IS_WRITABLE with STATUS_MEDIA_WRITE_PROTECTED.
This is the real indicator of the read-only volume for the FSDs.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Ramesh Ahuja”
To: “Windows System Software Devs Interest List”
Sent: Friday, March 04, 2005 10:08 PM
Subject: Re: [ntdev] I want to set a partition read-only . How can I ascertain
a partion of a disk from diskperf ?
> Leo,
> I would simply write a filter driver and mark the disk device object
> properties as read only and filter all the requests.
>
> Ramesh Ahuja
> Inventor of Jumpdrive Secure Technology ( Patent Pending )
> http://winfs.tripod.com
>
> On Wed, 2 Mar 2005 10:27:52 +0800, Leo wrote:
> > Hello, evryone :
> > I want to set a partition of a disk read-only , which is not system
> > disk . For example , in my computer, I have a disk and a system : windows
XP
> > SP2. In the disk , I have fore logical disks : C: , D:, E: and F: , and C:
> > is my system partition . Now , I want to set D: read-only .
> > In Windows DDK samples, I get a storige filter driver : diskperf . Who
> > had used the diskperf ?
> > In diskperf.c , I find DiskPerfReadWrite()/ IRP_MJ_WRITE . I debug the
> > deviceExtension->PhysicalDeviceNameBuffer .
> > But whether I write to D: or E: , C: , F: . I get a same redult :
> > Device\Harddisk0\Partition0 .!!!
> > What is the matter ?
> > What is the Harddisk0 ?
> > What is the Partition0 ?
> >
> > How can I set a partition read-only by diskperf ?
> >
> > Please help me .
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@gmail.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
> –
> Ramesh Ahuja
> Inventor of Jumpdrive Secure Technology ( Patent Pending )
> http://winfs.tripod.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@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com