File System Cruption

Hello All

we have created virtual Symbolic Link in my computer and simply redirect the request to the usb flash drive…we got the handle of the usb flash drive using zwopenfile and obrefrenceobjectbyhandleroutine,the problem is that the filesystem of the usb is crupted either fat32 and ntfs.if the filestsystemm is NTFS we get the message of replacing invalid security id when the system check the ntfs file system on the other hand if the filesystem is fat32 then we get the message of convert lost chain to files (yes/NO).we need help to find out the reson of filesystem cruption.

THANKS

Are you modifying arbitrary blocks on the drive?

we are not modifying arbitrary block.simply we are redirect the IRP to the USB drive.

thanks

How do you make sure you’re writing data to the correct blocks not occupied by the filesystem?