Subject: Re: how to disable read/write cache - one more question
From: "Molly Brown" <xxx@windows.microsoft.com>
Date: Thu, 11 Dec 2003 16:16:39 -0800
What you really want the benefit of is FASTFAT's aggressive flushing
when it detects a volume or its media is hotplugable. Only FASTFAT
supports this -- NTFS is not intended for removable media.
When FASTFAT mounts the volume, it queries the device for the
IOCTL_STORAGE_GET_HOTPLUG_INFO ioctl. If the device sets either the
MediaHotPlug or DeviceHotPlug fields to TRUE, FAST will flush the file
on close so you don't have to wait for the cache manager's lazy writes
to flush the data to the disk. (I know this IOCTL is documented in the
Server 2003 DDK, but I'm guessing it was also documented in the XP DDK.)
IOCTL_STORAGE_GET_HOTPLUG_INFO was introduced in Windows XP, but the
basic functionality was backported to Windows 2000 for SP5. Instead of
responding to the IOCTL, you add a registry key under your service key
to specify that you want hotplug enabled. If you can't wait until
Windows 2000 SP5 is released, this change is available as a QFE today.
See KB article Q328504 for more details.
If you only need to support FAT, I believe this should work for you.
Molly Brown
Microsoft Corporation