Hi!
They asked me, how to do read-only mode for disk? It is interesting for me
too. As I know, on UNIX systems there is trivial solution: mount with
read-only option. Has NT smth like readonly flag whereelse in the disk’s
DEVICE_OBJECT or smth like that? I’m interesting exactly kernel level
solution.
Thanks,
Valery
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You must support the IOCTL to detect write protection. You can do this
in a filter. You can not mount NTFS prior to XP as read-only.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@novosoft.ru
Sent: Tuesday, November 06, 2001 8:50 AM
To: File Systems Developers
Subject: [ntfsd] How to switch disk to the read-only mode?
Hi!
They asked me, how to do read-only mode for disk? It is interesting for
me
too. As I know, on UNIX systems there is trivial solution: mount with
read-only option. Has NT smth like readonly flag whereelse in the disk’s
DEVICE_OBJECT or smth like that? I’m interesting exactly kernel level
solution.
Thanks,
Valery
You are currently subscribed to ntfsd as: xxxxx@storagecraft.com To
unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
-
If it is a disk driver, you have to process IOCTL_DISK_IS_WRITABLE and
return STATUS_MEDIA_WRITE_PROTECTED.
-
If it is scsi miniport or bus driver, process SCSIOP_MODE_SENSE and
((PMODE_PARM_READ_WRITE_DATA)SrbDataBuffer)->ParameterListHeader.DeviceSpeci
ficParameter = MODE_DSP_WRITE_PROTECT;
Zoltan
Ps: Usually the problem is he NTFS volumes prior XP, in that case you can
act like a r/w disk, but you return STATUS_SUCCESS to every write request
it’s not perfect I know, but at least your disk is read only.
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Have a disk filter driver and respond to IOCTL_DISK_IS_WRITEABLE properly.
Max
----- Original Message -----
From:
To: “File Systems Developers”
Sent: Tuesday, November 06, 2001 8:49 AM
Subject: [ntfsd] How to switch disk to the read-only mode?
> Hi!
>
> They asked me, how to do read-only mode for disk? It is interesting for me
> too. As I know, on UNIX systems there is trivial solution: mount with
> read-only option. Has NT smth like readonly flag whereelse in the disk’s
> DEVICE_OBJECT or smth like that? I’m interesting exactly kernel level
> solution.
>
> Thanks,
> Valery
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
There is a simple solution for NTFS – security attributes.
----- Original Message -----
From:
To: “File Systems Developers”
Sent: Tuesday, November 06, 2001 8:49 AM
Subject: [ntfsd] How to switch disk to the read-only mode?
> Hi!
>
> They asked me, how to do read-only mode for disk? It is interesting for me
> too. As I know, on UNIX systems there is trivial solution: mount with
> read-only option. Has NT smth like readonly flag whereelse in the disk’s
> DEVICE_OBJECT or smth like that? I’m interesting exactly kernel level
> solution.
>
> Thanks,
> Valery
>
> —
> You are currently subscribed to ntfsd as: xxxxx@vba.com.by
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
—
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com