Re: I want to set a partition read-only . How can I ascertain a partion of a disk from diskperf ?

You can limit the functionality of ur writes to all the other sectors except
the sectors that u want to be read only.
For instance u can block all writes to specific sectors on the disk in
DispatchReadWriteRoutine.

“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 .
>>
>>
>
>
>

…and then get “Lost Delayed-Write Data” error. Bad idea.

Any security-related blocking must be file-level and must work in CREATE
path only.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Shalini”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Tuesday, April 05, 2005 11:49 PM
Subject: Re:[ntdev] I want to set a partition read-only . How can I ascertain a
partion of a disk from diskperf ?

> You can limit the functionality of ur writes to all the other sectors except
> the sectors that u want to be read only.
> For instance u can block all writes to specific sectors on the disk in
> DispatchReadWriteRoutine.
>
> “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 .
> >>
> >>
> >
> >
> >
>
>
>
> —
> 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