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 4  
29 Dec 17 00:45
ntfsd member 176480
xxxxxx@gmx.com
Join Date:
Posts To This List: 6
Change create disposition or force parent directory create

I am changing the file path in pre create hook in my mini-filter. But the directory I want the file to be in doesn't exist. In NtCreateFile I can set FILE_OPEN_IF. Is there any possibility to set this flag in pre create? or I have to create these directories myself?
  Message 2 of 4  
29 Dec 17 01:04
ntfsd member 176480
xxxxxx@gmx.com
Join Date:
Posts To This List: 6
Change create disposition or force parent directory create

This is how I can get it: (Data->Iopb->Parameters.Create.Options >> 24) & 0xff But how to change it?
  Message 3 of 4  
29 Dec 17 02:55
ntfsd member 176480
xxxxxx@gmx.com
Join Date:
Posts To This List: 6
Change create disposition or force parent directory create

It seems like FILE_OPEN_IF is simply ignored when I do Data->IoStatus.Information = IO_REPARSE; Data->IoStatus.Status = STATUS_REPARSE; FltSetCallbackDataDirty(Data); So should I create the parent directory myself with FltCreateFile?
  Message 4 of 4  
02 Jan 18 16:01
Scott Noone
xxxxxx@osr.com
Join Date: 10 Jul 2002
Posts To This List: 1026
List Moderator
Change create disposition or force parent directory create

<QUOTE> So should I create the parent directory myself with FltCreateFile? </QUOTE> Yes, you need to create the parent directories yourself. It may not matter for you, but just wanted to note that directories have security descriptors. If you want to create a new directory that is equivalent to some existing directory you may need to copy the security descriptor of the existing directory to the new directory. -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 02:51.


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