FltGetFileNameInformation issue

FltGetFileNameInformation fails in post-create. Below is the state at the time of failure:

  1. IoGetTopLevelIrp returns null
  2. OperationFlags, SL_OPEN_PAGING_FILE is false
  3. Fails for both FLT_FILE_NAME_OPENED and FLT_FILE_NAME_NORMALIZED
  4. IRQL < DISPATCH
  5. System is Win2k3 SP1

This happens after FltGetStreamContext fails with status STATUS_NOT_SUPPORTED and when I try to get the filename.

Sajeev

Welcome to the wonderful world of FltGetFileNameInformation bugs :wink:
You have only one choice: call the API during pre-create and save the information for post-create.

xxxxx@yahoo.com wrote:

FltGetFileNameInformation fails in post-create. Below is the state at the time of failure:

  1. IoGetTopLevelIrp returns null
  2. OperationFlags, SL_OPEN_PAGING_FILE is false
  3. Fails for both FLT_FILE_NAME_OPENED and FLT_FILE_NAME_NORMALIZED
  4. IRQL < DISPATCH
  5. System is Win2k3 SP1

This happens after FltGetStreamContext fails with status STATUS_NOT_SUPPORTED and when I try to get the filename.

Sajeev


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: xxxxx@alfasp.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Kind regards, Dejan (MSN support: xxxxx@alfasp.com)
http://www.alfasp.com
File system audit, security and encryption kits.

It was my mistake - this happens only if the operation itself failed.

Dejan, I will keep this in mind if I hit a genuine bug with this.