when a file is encrypted,the directory list is changed

hi
I use a file system filter driver to encrypt files.
Some files are alright,but as soon as I am trying to encrypt a file whose path is like Driver:\filename (for example “D:\encrypt.txt”),then something bad happened.the directory list is changed.and after reboot my computer,I can’t open the file.

I encrypt the file in IRP_MJ_WRITE.Someone said that the directory list is also a file.