Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
768 B

  1. This is a test filter that is based on Sfilter.
  2. It was written to test the IO verifier check to make sure that a file doesn't try to
  3. reissue a create with a file object that has already been opened and closed by
  4. the base file system.
  5. This filter attaches two device objects to each volume stack, Upper and Lower.
  6. When a CREATE is seen on a file with the name '\test\failure.txt' with no share access,
  7. * Upper and lower will pass it through to the base file system,
  8. * Once the file system has opened the file, Lower will cancel the create by calling
  9. IoCancelFileOpen and returning STATUS_UNSUCCESSFUL.
  10. * When Upper gets STATUS_UNSUCCESSFUL, it will change the ShareAccess for this create
  11. to FILE_SHARE_READ then reissue the CREATE irp.