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.

OSR Seminars


Go Back   OSR Online Lists > ntfsd
Welcome, Guest
You must login to post to this list
  Message 1 of 6  
01 Jul 18 03:43
m sld
xxxxxx@gmail.com
Join Date: 06 Sep 2017
Posts To This List: 16
Reparse pdf files from Network volume

We are developing an encryption filter driver to protect pdf files. When a user wants to access a protected file, if he/she has permission to access, we create a plain file for encrypted file in a special local path and reparse to it. For this purpose in filecreate we do following steps: - Copy the new file name to FileObject->FileName - Irp->IoStatus.Status = STATUS_REPARSE; - Irp->IoStatus.Information = IO_REPARSE; - Return STATUS_REPARSE And immediately receive a createfile for new (target) file. The problem occurs when user open a protected file on network drive. After returning STATUS_REPARSE, we don?t receive any createfile for target file. We have some questions: - Is it possible to reparse a remote file to a local one? - Or must be reparse to a file on same network drive? If we don?t have write access to network drive, how to create the target file?
  Message 2 of 6  
02 Jul 18 09:17
Scott Noone
xxxxxx@osr.com
Join Date: 10 Jul 2002
Posts To This List: 1026
List Moderator
Reparse pdf files from Network volume

Should work. What return value is the application seeing? Have you looked at a ProcMon trace? Also, have you tried this with something other than a PDF? For example, does it work properly with a text file and Notepad? -scott OSR @OSRDrivers
  Message 3 of 6  
08 Jul 18 05:45
m sld
xxxxxx@gmail.com
Join Date: 06 Sep 2017
Posts To This List: 16
Reparse pdf files from Network volume

If Notepad opens the pdf file, It's ok. If extension of file(.pdf) removed from name, It's open with Adobe Acrobat DC. I know this problem exist for plain files on network, pdf and office files does not open. In last row of procmon logs, I see a CreateFile with filename that contains "PIPE". I filter this name("PIPE") in precreate and return PREOP_SUCCESS_NO_CALLBACK for it. The files will open!!! - What is effect of "PIPE" in filename? - How can detect operations with this specification? - How can manage these?
  Message 4 of 6  
09 Jul 18 15:07
Scott Noone
xxxxxx@osr.com
Join Date: 10 Jul 2002
Posts To This List: 1026
List Moderator
Reparse pdf files from Network volume

Are you setting FLTFL_REGISTRATION_SUPPORT_NPFS_MSFS and filtering FLT_FSTYPE_NPFS? -scott OSR @OSRDrivers
  Message 5 of 6  
11 Jul 18 02:14
m sld
xxxxxx@gmail.com
Join Date: 06 Sep 2017
Posts To This List: 16
Reparse pdf files from Network volume

No, There are not mentioned flags.
  Message 6 of 6  
11 Jul 18 10:15
Scott Noone
xxxxxx@osr.com
Join Date: 10 Jul 2002
Posts To This List: 1026
List Moderator
Reparse pdf files from Network volume

What's the pipe name? There are several pipes that SMB uses to communicate with the server (e.g. \pipe\srvsvc). You don't really want to mess with these in your filter. -scott OSR @OSRDrivers
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 19:28.


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