Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Purge FAT File system Tampn

1 view
Skip to first unread message

Mathieu

unread,
Oct 28, 2009, 8:20:50 PM10/28/09
to
Hello, I developed a driver to mount a logical drive on an image file (.
RAW). It works perfect! By cons when I unmount the logical drive and
remount the logical drive pointing to another image file (. RAW) windows
keep the old file because some filenames and the FAT are buffered. When
i unmount the logical Drive I do not use IoDeleteDevice by cons I delete
the symlink \\.\X: with api iodeletesymboliclink, and use
DefineDosDevice for removing the logicial drive mapped to
\\device\DeviceImg. When I unmount i inactivate the device with a only
flag remember. When the device is unmounted I return a NTSTATUS error
code such STATUS_MEDIA_REMOVED , not work if used.

{
KdPrintferror(("[VDUM] IOCTL not used index %d.\n",index));
status=STATUS_DEVICE_REMOVED;
irp->IoStatus.Status=status;
irp->IoStatus.Information = 0; goto fin; }
else
{ }
.. ..
irp->IoStatus.Status = status;
if (status!=STATUS_PENDING)
IoCompleteRequest(irp, IO_NO_INCREMENT);

Conclusion: How to ask windows to purge the buffer that stores the names
of files on disk \\device\DeviceImg with out call IoDeleteDevice?? Thank
you very much.


My wish: when I dismounted and went up the logical drive to another
image file (. RAW) I want to empty the buffer storing the FAT
directories and file names, so I can see my files stored in another
image file . Thank you

da...@nowhere.net

unread,
Oct 28, 2009, 10:40:54 PM10/28/09
to
Could you ask in a few hundred other newsgroups? How about answering
the questions asked?

On Thu, 29 Oct 2009 01:20:50 +0100, Mathieu <mat....@wanadoo.fr>
wrote:

0 new messages