What OS version is this on (on Vista, you can not write to a file that was
not opened with write access).
Can you post your call to FltWriteFile? That does seem to be an odd return
status. Are you passing it Cbd->Iopb->TargetFileObject?
Please always express NTSTATUS codes in hex or text (e.g. C0000002, or
STATUS_NOT_IMPLEMENTED). It makes it easier on those of us who can’t do
signed 32-bit hex conversions in our head.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of ruhina
Sent: Thursday, May 04, 2006 8:27 AM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] FltWriteFile during IRP_MJ_SET_INFORMATION
Hi,
Can anybody help me with this? I am really stuck here.
In the pre rename call back (I mean the set information) should I not be
able to write into the source file i.e. TMP file? I think that the
FileObject is valid at this time (the close comes in after the set
information is done.). Also why should FltWriteFile fail with this error
which indicates status not implemented? I think there is something very
basic I am missing here. Could you please let me know if what I am trying to
achieve is incorrect?
Best regards,
Ruhina Parveen.
From: ruhina [mailto:xxxxx@persistent.co.in]
Sent: Monday, May 01, 2006 7:52 PM
To: ‘Windows File Systems Devs Interest List’
Subject: FltWriteFile during IRP_MJ_SET_INFORMATION
Hi,
Some editors during their save operation, create one temporary file and
finally rename this temporary file to the original file (e.g. Test.txt saved
in MSVC13.tmp and MSVC13.tmp renamed back to Test.txt). I am maintaining a
header in the original file (the header is dynamic unique to each original
file.). When the temp file is created there is no association between it and
the original file which is as expected at the mini filter level. The
association is noticed by the mini filter during the rename operation. Thus,
during the rename operation I try to insert the header in the original file
into the temporary file (I have cached the header of the original file.).
I have used the FltWriteFile function to insert the header which fails
with error -1073741822 (I am doing this in pre-callback routine). Is this
approach incorrect? If this is not possible then there are seemingly no
further operations where I can insert the original header.
Thanks and Regards,
Ruhina.
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com