FS_FlushVolume


FS_FlushVolume(
 PIOREQ pir
 )

The cached buffers for the file systems are committed to disk through FS_FlushVolume. This routine handles the INT 21h function: 0Dh.

All of the cached or buffered data for the file system must be written out to disk when this function is called.

ir_rh

Supplies handle to disk volume or network resource on which data needs to be flushed out.

ir_options

Supplies processing options.

Proccessing Option Values:

The following option may be specified.

Value

Meaning

VOL_DISCARD_CACHE

Indicator to discard cached/buffered data. If this option is specified then all data buffers associated with the volume should be discarded.

VOL_REMOUNT

This flag can only be specified alone. The FSD should discard any current cached information about this volume and mount the volume again. If there are any open files or pending i/o on this volume, the operation should be failed. Typically, this function is used by disk utilities that have reformatted a volume so that its disk geometry has changed. It provides the means to indicate to an FSD that the volume geometry of a volume it is mounted on has changed and should be re-read.


ir_user

Supplies user id for this request.

ir_pid

Supplies process id for this request.

ir_error

Returns status of the operation ( 0 if no error, errorcode otherwise ).