Just to confirm Harish’s point…
This will not work with Microsoft filesystems (and probably most other
filesystems too.) It can work if all copies are mounted read-only,
since there is no synchronization issue between the copies. If one is
mounted writable, the writable guy can now have dirty cache data which
is not reflected on the read-only guy. After the write gets out, the
read only guy may still have a clean cache copy of the data, and has no
reason to refresh it. The result is amazing weirdness, ultimately
culminating in the filesystem detecting corruption, sending an event
log, marking the volume dirty, etc, etc.
If having a single writable copy is not a requirement, this can be made
to work. I would advise given the context that this could be approached
differently from the storage layer instead - filesystems query for
writability at mount time, and if the volume is write protected, the
filesystem takes care of all the hacks for you. Unfortunately (IIRC)
support for this in NTFS was added more recently (2003?), so it may not
be possible for you to use (but bear it in mind for future.)
If it is a requirement to have a writable copy, you are in for a world
of hurt. As Harish is pointing to, this now requires cross-machine
synchronization - you would be building a clustered filesystem to enable
the two to be coherent with one another.
Arora, Harish wrote:
Yes I understand and I thought that you have to provide shared access to
this NTFS formatted virtual volume.
If so, you will run into situations where volume is getting updated from
more than one place. How do handle that ?
Harish
-----Original Message-----
From: xxxxx@gmail.com [mailto:xxxxx@gmail.com]
Sent: Sunday, June 07, 2009 8:53 PM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] Pretend a file as read-only
Hi Harish,
The Virtual Volume is like a physical drive that has no sense about the
file system, and the minifilter I am trying to develop is about the file
system and it has no sense about the underlying volume is virtual or
physical. It sounds that there should be no mutually exclusive issue.
Best regards,
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
–
This posting is provided “AS IS” with no warranties, and confers no rights.