FSStatus

Syntax

#include <cafe/fs.h>

#define FS_STATUS_OK                        0

#define FS_STATUS_ERROR_BASE                (0)
/* Command canceled */
#define FS_STATUS_CANCELED                  (FS_STATUS_ERROR_BASE-1)
/* Indicates the end of a file / directory */
#define FS_STATUS_END                       (FS_STATUS_ERROR_BASE-2)
/* Reached the max number of mount points, volumes, clients, handles */
#define FS_STATUS_MAX                       (FS_STATUS_ERROR_BASE-3)
/* Target is already opened or locked by another transaction */
#define FS_STATUS_ALREADY_OPEN              (FS_STATUS_ERROR_BASE-4)
/* Target path already exists */
#define FS_STATUS_EXISTS                    (FS_STATUS_ERROR_BASE-5)
/* Target path is not found */
#define FS_STATUS_NOT_FOUND                 (FS_STATUS_ERROR_BASE-6)
/* Target path is not file */
#define FS_STATUS_NOT_FILE                  (FS_STATUS_ERROR_BASE-7)
/* Target path is not directory */
#define FS_STATUS_NOT_DIR                   (FS_STATUS_ERROR_BASE-8)
/* Attempted to access file with bad file mode */
#define FS_STATUS_ACCESS_ERROR              (FS_STATUS_ERROR_BASE-9)
/* Did not have permission to complete operation */
#define FS_STATUS_PERMISSION_ERROR          (FS_STATUS_ERROR_BASE-10)
/* Request would push the file over the size limit */
#define FS_STATUS_FILE_TOO_BIG              (FS_STATUS_ERROR_BASE-11)
/* Request would cause one of the ancestor directories to exceed its quota
 * Or no free space left in storage */
#define FS_STATUS_STORAGE_FULL              (FS_STATUS_ERROR_BASE-12)
/* Transaction journal is full, need to flush */
#define FS_STATUS_JOURNAL_FULL              (FS_STATUS_ERROR_BASE-13)
/* Operation is not supported by file system */
#define FS_STATUS_UNSUPPORTED_CMD           (FS_STATUS_ERROR_BASE-14)

/* Medium is not ready */
#define FS_STATUS_MEDIA_NOT_READY           (FS_STATUS_ERROR_BASE-15)
/* Medium is invalid */
#define FS_STATUS_INVALID_MEDIA             (FS_STATUS_ERROR_BASE-16)
/* Medium is in some bad condition */
#define FS_STATUS_MEDIA_ERROR               (FS_STATUS_ERROR_BASE-17)
/* Data is corrupted */
#define FS_STATUS_DATA_CORRUPTED            (FS_STATUS_ERROR_BASE-18)
/* Medium is write protected */
#define FS_STATUS_WRITE_PROTECTED           (FS_STATUS_ERROR_BASE-19)

/* Fatal error  */
#define FS_STATUS_FATAL_ERROR              (FS_STATUS_ERROR_BASE-1024)

Elements

None.

Description

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

See Also

Types / Structures
FSGetLastError
FSAsyncParams
FSRetFlag
FSVolumeState

Revision History

2013/05/08 Automated cleanup pass.
2012/07/20 Readability cleanup.
2012/03/31 Added FS_STATUS_MEDIA_NOT_READY, FS_STATUS_INVALID_MEDIA, FS_STATUS_DATA_CORRUPTED, FS_STATUS_WRITE_PROTECTED.
2011/12/13 Initial version.


CONFIDENTIAL