Partager via


ReportDiskError (Compact 2013)

3/26/2014

This function is called by FSDMGR when a disk IOCTL fails.

Syntax

DWORD ReportDiskError(
   HDSK hDsk,
   PCFSDERRINFO pErrInfo
);

Parameters

  • hDsk
    [in] Handle to the disk.
  • pErrInfo
    [in] Pointer to the FSDERRINFO structure, which describes the information of the disk I/O attempt.

Return Value

The following table shows the possible return values.

Parameter

Value

Description

FSDERR_RETRY

0

Indicates to FSDMGR to retry the operation.

FSDERR_FAIL

1

Indicates to FSDMGR to fail the operation.

FSDERR_REBOOT

2

Indicates to FSDMGR to reboot the device.

FSDERR_IGNORE

3

Indicates to FSDMGR to ignore the failure. Should only be used for optional IOCTLs; specifically, delete_sector and flush_cache.

Remarks

When FSDMGR calls this function, the error handler can look at the error information and return the action to take. FSDMGR will perform the corresponding action based on the return value.

Requirements

Header

Fsderr.h

See Also

Reference

Error Handler Functions