_VolFlush


_VolFlush(
 unsigned int Volume,
 int Flags
 )

This service is called to flush a volume. The flush can just cause dirty buffers to be written or it can force all cached data in the FSD to be discarded in addition. This is usually called before a volume is being removed to flush all dirty buffers to disk.

Volume

Supplies a 0-based drive number for the volume that needs to be flushed.

Flags

The flag values are listed below.

Flush Flag Values:  
Value Meaning
VOL_DISCARD_CACHE Indicates that any filesystem data that is cached should be discarded.