Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

On-Access, Transparent, Per-File Data Encryption:

OSR's File Encryption Solution Framework (FESF) provides all the infrastructure you need to build a transparent file encryption product REALLY FAST.

Super flexible policy determination and customization, all done in user-mode. Extensive starter/sample code provided.

Proven, robust, flexible. In use in multiple commercial products.

Currently available on Windows. FESF for Linux will ship in 2018.

For more info: https://www.osr.com/fesf

Go Back   OSR Online Lists > ntfsd
Welcome, Guest
You must login to post to this list
  Message 1 of 5  
05 Aug 17 03:25
Ehsan Taheri
xxxxxx@yahoo.com
Join Date: 10 May 2016
Posts To This List: 111
Overwrite Issue when reparsing MS word to a different volume

Hi, In my minifilter, I reparse MS word documents to a specific path containing a temporary view. When I try to overwrite an existing MS word document, which reparses to a different volume, The operation fails and a save dialog appears. While overwriting a MS word document that reparses to the same volume succeeds. As you may know, While saving, MS word writes the new content to a file named WRD000n.tmp. when complete it renames the target file to a file named WRL000n.tmp as a temporary back up, I think. Then renames the WRD000n.tmp to the target file and deletes WRL000n.tmp. Analyzing the Process Monitor log shows that after writing the temporary file content and checking that temp backup file does not exist, no rename request is sent. So I suspect there is some logic in MS word that decides to cut the operation. Any clue on how to continue debugging?
  Message 2 of 5  
05 Aug 17 05:32
rod widdowson
xxxxxx@steadingsoftware.com
Join Date: 11 Sep 2006
Posts To This List: 827
Overwrite Issue when reparsing MS word to a different volume

> Analyzing the Process Monitor log shows that after writing the temporary > file content and checking > that temp backup file does not exist, no rename request is sent. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I assume you do not mean this? If the file doesn't exist it would make sense to not rename it. Or have I mis-understood you? > Any clue on how to continue debugging? Blood sweat and tears in my experience. Watch one working, watch one not working, export into excel and do a difference. Check the registry. I also find that walking away helps (or walking the dogs). You come back and have another insight. If you do bottom this out please share since it adds to the common knowledge base.
  Message 3 of 5  
05 Aug 17 09:27
Peter Scott
xxxxxx@kerneldrivers.com
Join Date: 17 Feb 2012
Posts To This List: 669
Overwrite Issue when reparsing MS word to a different volume

I would look at the rename processing. NTFS does not support=20 cross-volume renames and you say that it works when reparsing to the=20 same volume but not a different volume, this could be saying something. Pete -- Kernel Drivers Windows File System and Device Driver Consulting www.KernelDrivers.com 866.263.9295 ------ Original Message ------ From: xxxxx@yahoo.com To: "Windows File Systems Devs Interest List" <xxxxx@lists.osr.com> Sent: 8/5/2017 1:24:45 AM Subject: [ntfsd] Overwrite Issue when reparsing MS word to a different=20 volume >Hi, > >In my minifilter, I reparse MS word documents to a specific path=20 >containing a temporary view. > >When I try to overwrite an existing MS word document, which reparses to=20 >a different volume, The operation fails and a save dialog appears.=20 >While overwriting a MS word document that reparses to the same volume=20 >succeeds. > <...excess quoted lines suppressed...>
  Message 4 of 5  
06 Aug 17 02:52
Ehsan Taheri
xxxxxx@yahoo.com
Join Date: 10 May 2016
Posts To This List: 111
Overwrite Issue when reparsing MS word to a different volume

thanks for reply, @Rod >I assume you do not mean this? If the file doesn't exist it would make >sense to not rename it. Or have I mis-understood you? what I mean is step 2: (please watch for the difference between WRL and WRD) 0. I am going to save a document as a.docx 1. MS Word saves the content as WRDnnn.tmp 2. Then checks if WRLnnn.tmp does not exist. 3. it renames a.docx to WRLnnn.tmp 4. At last WRDnnn.tmp is renamed to a.docx and all set. >If you do bottom this out please share since it adds to the common knowledge base. I probably will disappoint you when it turns out that I made some stupid mistake since I'm totally newbie. I will share the result as you asked. Just wanted you to be prepared :) @Peter There is no rename request received by Process monitor neither by my filter so I got no rename to look at. Also I am testing between 2 FAT volumes. May I debug MS word itself?
  Message 5 of 5  
06 Aug 17 03:08
Ehsan Taheri
xxxxxx@yahoo.com
Join Date: 10 May 2016
Posts To This List: 111
Overwrite Issue when reparsing MS word to a different volume

>NTFS does not support cross-volume renames Does this mean my solution will not work on NTFS even if I get it to the point which the rename is processed? Is there any work around? May I create the target and write the content then delete the source to simulate a rename in pre/post set information for a rename operation?
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntfsd list to be able to post.

All times are GMT -5. The time now is 07:07.


Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license