Tracking changes in a document

Is there any way for me to find out if a docmuent has changed in its
lifetime? e.g if i receive a write request and i have to perform an
operation on it prewrite or postwrite. Is it possible for me to find out if
any change has occurred because if none has occurred i will not have to do
the processing i.e i can bypass the functions.

File change notification should be more ok for this purpose.

L.

----- Original Message -----
From: Shreyas Srivatsan
To: Windows File Systems Devs Interest List
Sent: Friday, June 02, 2006 1:30 PM
Subject: [ntfsd] Tracking changes in a document

Is there any way for me to find out if a docmuent has changed in its lifetime? e.g if i receive a write request and i have to perform an operation on it prewrite or postwrite. Is it possible for me to find out if any change has occurred because if none has occurred i will not have to do the processing i.e i can bypass the functions.
— Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17 You are currently subscribed to ntfsd as: xxxxx@volny.cz To unsubscribe send a blank email to xxxxx@lists.osr.com

What is “its lifetime”? From the time the user opened it to the time it is
closed? Or from the time it was first created to the current time?

In the first case, you can just keep a flag when they open the file and set
it after the first write.

In the second case, it’s a Big Deal. For example, a Word document doesn’t
get changed – that all happens in temporary files and then the temporary
file gets renamed to the real file.

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shreyas Srivatsan
Sent: Friday, June 02, 2006 7:31 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Tracking changes in a document

Is there any way for me to find out if a docmuent has changed in its
lifetime? e.g if i receive a write request and i have to perform an
operation on it prewrite or postwrite. Is it possible for me to find out if
any change has occurred because if none has occurred i will not have to do
the processing i.e i can bypass the functions.
— Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17 You are currently subscribed to
ntfsd as: xxxxx@comcast.net To unsubscribe send a blank email to
xxxxx@lists.osr.com

What i need is the more difficult one. Actually the trouble is not with word
and other ms files but is with basic txt files. A word file send a write irp
only when there has been a change and i save it. But in case of a txt file
whenever i save a write irp is sent and that is where the problem is. And
what is this file change notification that i can use??