I bugged Molly. Extremely nice person. :o)
 
The VSS driver underlying the file system is doing it. The driver tells the file system the volume is read only and as mentioned below about the I/O Subsystem enhancement when the file system sees that, it mounts as read-only instead of failing to mount.
 
So sounds like this would be a heavy duty exercise for an arbitrary volume.
 
Now if this was through a SAN though... I would wonder if you could have the SAN tell the OS the volume is read-only and the OS would be ok with it...
 
  joe


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael B. Smith
Sent: Sunday, August 01, 2004 9:25 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] [OT] NTFS Read-only Status

It was Molly Brown’s posts that led me to believe it was possible. To wit:

 

http://www.osronline.com/lists_archive/ntfsd/thread1636.html (message 7 in thread)

 

and others by her…

 

Dan Lovinger (danlo) also has a number of posts on the topic and says it’s documented in the “IFS Kit” (and while I can presume what IFS means,  I’m certainly not up to writing a filesystem for this purpose).

 

I guess it’s just over my head and not generally available at this time.

 

I’m not well enough connected to bug the folks you mention.

 

Thanks for your reply.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joe
Sent: Sunday, August 01, 2004 6:25 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] [OT] NTFS Read-only Status

 

This one had me poking around as this would be interesting functionality. I found one hit in the newsgroups from a Molly Brown (mollybro) saying it is possible and a one liner in MSDN around I/O Subsystem enhancements .

 

"NTFS will now mount read-only on an underlying read-only volume. If the volume requires a log restart or a Chkdsk, the mount will fail."

 

That would seem to mean to me that it will do it automatically if the volume itself is somehow read only through the hardware versus failing to mount at all.  

 

 

Otherwise I  looked at the obvious candidates for doing that like fsutil and mountvol and see nothing. The root api that I am aware of is SetVolumeMountPoint and it doesn't have way to specify optional params like that...

 

http://msdn.microsoft.com/library/default.asp?url="">

 

 

Possibly there is something in the Shadow Copy API which MS is hiding from normal people at the moment, you have to be an ISV (and under NDA) to see them or alternatively, there might be something in the DeviceIoControl function that could be leveraged. I will admit to not messing around in that area at all. Might be a good question to send to Solomon or Russinovich...

 

 

  joe

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael B. Smith
Sent: Friday, July 23, 2004 3:44 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] [OT] NTFS Read-only Status

I've tried this on other groups, and it is not A/D related. But you guys know so much...

 

I want a way to mount an NTFS volume read-only. I want a magic command like "mode e: read-only". :-)

 

It is clear to me (and I've found references) that this is supported with NTFS (Windows XP and above), but I cannot figure out/find out how to set it.

 

Any ideas?

 

Thanks,

Michael

Reply via email to