FSVolumeState

Syntax

#include <cafe/fs.h>

/* Volume state */
typedef enum
{
    FS_VOLSTATE_INITIAL = 0, /* Internal use only */

    /* Ready */
    FS_VOLSTATE_READY,

    /*
     * Media is not attached.
     * The state machine waits for a re-insert if it is remountable.
     * If not, app should unmount the volume by itself.
     */
    FS_VOLSTATE_NO_MEDIA,        // There is no media

    /*
     * Something is wrong with media.
     * State machine will wait for detach.
     */
    FS_VOLSTATE_INVALID_MEDIA,   // Unsupported media or state (cd-rom, reversed media)
    FS_VOLSTATE_DIRTY_MEDIA,     // Dirty / deformed media
    FS_VOLSTATE_WRONG_MEDIA,     // Media format is correct. but media is not the expected one.
    FS_VOLSTATE_MEDIA_ERROR,     // The other media error
    FS_VOLSTATE_DATA_CORRUPTED,  // Detected data corruption
    FS_VOLSTATE_WRITE_PROTECTED, // Write protected media

    /* Fatal */
    FS_VOLSTATE_JOURNAL_FULL,    // Journaling area is full. flushing data is needed.
    FS_VOLSTATE_FATAL,

    FS_VOLSTATE_INVALID
} FSVolumeState;

Elements

None.

Description

Status code list. FSGetLastError may be helpful here for debugging purpose.

See Also

Types / Structures
FSStatus
FSAsyncParams
FSRetFlag

Revision History

2013/05/08 Automated cleanup pass.
2012/07/20 Readability cleanup.
2011/12/13 Initial version.


CONFIDENTIAL