µC/FS Error Codes

This section provides a brief explanation of µC/FS error codes defined in fs_err.h. Any error codes not listed here may be searched in fs_err.h for both their numerical value and usage.

System Error Codes

Error CodeMeaning
FS_ERR_NONENo error.
FS_ERR_INVALID_ARGInvalid argument.
FS_ERR_INVALID_CFGInvalid configuration.
FS_ERR_INVALID_CHKSUMInvalid checksum.
FS_ERR_INVALID_LENInvalid length.
FS_ERR_INVALID_TIMEInvalid date/time.
FS_ERR_INVALID_TIMESTAMPInvalid timestamp.
FS_ERR_INVALID_TYPEInvalid object type.
FS_ERR_MEM_ALLOCMem could not be alloc'd.
FS_ERR_NULL_ARGArg(s) passed NULL val(s).
FS_ERR_NULL_PTRPtr arg(s) passed NULL ptr(s).
FS_ERR_OSOS err.
FS_ERR_OVFValue too large to be stored in type.
FS_ERR_EOFEOF reached.
FS_ERR_WORKING_DIR_NONE_AVAILNo working dir avail.
FS_ERR_WORKING_DIR_INVALIDWorking dir invalid.

Buffer Error Codes

Error CodeMeaning
FS_ERR_BUF_NONE_AVAILNo buffer available.

Cache Error Codes

Error CodeMeaning
FS_ERR_CACHE_INVALID_MODEMode specified invalid.
FS_ERR_CACHE_INVALID_SEC_TYPEDevice already open.
FS_ERR_CACHE_TOO_SMALLDevice has changed.

Device Error Codes

Error CodeMeaning
FS_ERR_DEVDevice access error.
FS_ERR_DEV_ALREADY_OPENDevice already open.
FS_ERR_DEV_CHNGDDevice has changed.
FS_ERR_DEV_FIXEDDevice is fixed (cannot be closed).
FS_ERR_DEV_FULLDevice is full (no space could be allocated).
FS_ERR_DEV_INVALIDInvalid device.
FS_ERR_DEV_INVALID_CFGInvalid dev cfg.
FS_ERR_DEV_INVALID_ECCInvalid ECC.
FS_ERR_DEV_INVALID_IO_CTRLI/O control invalid.
FS_ERR_DEV_INVALID_LOW_FMTLow format invalid.
FS_ERR_DEV_INVALID_LOW_PARAMSInvalid low-level device parameters.
FS_ERR_DEV_INVALID_MARKInvalid mark.
FS_ERR_DEV_INVALID_NAMEInvalid device name.
FS_ERR_DEV_INVALID_OPInvalid operation.
FS_ERR_DEV_INVALID_SEC_NBRInvalid device sec nbr.
FS_ERR_DEV_INVALID_SEC_SIZEInvalid device sec size.
FS_ERR_DEV_INVALID_SIZEInvalid device size.
FS_ERR_DEV_INVALID_UNIT_NBRInvalid device unit nbr.
FS_ERR_DEV_IODevice I/O error.
FS_ERR_DEV_NONE_AVAILNo device avail.
FS_ERR_DEV_NOT_OPENDevice not open.
FS_ERR_DEV_NOT_PRESENTDevice not present.
FS_ERR_DEV_TIMEOUTDevice timeout.
FS_ERR_DEV_UNIT_NONE_AVAILNo unit avail.
FS_ERR_DEV_UNIT_ALREADY_EXISTUnit already exists.
FS_ERR_DEV_UNKNOWNUnknown.
FS_ERR_DEV_VOL_OPENVol open on dev.
FS_ERR_DEV_INCOMPATIBLE_LOW_PARAMSIncompatible low-level device parameters.
FS_ERR_DEV_INVALID_METADATADevice driver metadata is invalid.
FS_ERR_DEV_OP_ABORTEDOperation aborted.
FS_ERR_DEV_CORRUPT_LOW_FMTCorrupted low-level fmt.
FS_ERR_DEV_INVALID_SEC_DATARetrieved sec data is invalid.
FS_ERR_DEV_WR_PROTDevice is write protected.
FS_ERR_DEV_OP_FAILEDOperation failed.
FS_ERR_DEV_NAND_NO_AVAIL_BLKNo blk avail.
FS_ERR_DEV_NAND_NO_SUCH_SECThis sector is not available.
FS_ERR_DEV_NAND_ECC_NOT_SUPPORTEDThe needed ECC scheme is not supported.
FS_ERR_DEV_NAND_ONFI_EXT_PARAM_PAGENAND device extended parameter page must be read.

Device Driver Error Codes

 

Error CodeMeaning
FS_ERR_DEV_DRV_ALREADY_ADDEDDevice driver already added.
FS_ERR_DEV_DRV_INVALID_NAMEInvalid device driver name.
FS_ERR_DEV_DRV_NONE_AVAILNo driver available.

Directory Error Codes

Error CodeMeaning
FS_ERR_DIR_ALREADY_OPENDirectory already open.
FS_ERR_DIR_DISDirectory module disabled.
FS_ERR_DIR_FULLDirectory is full.
FS_ERR_DIR_NONE_AVAILNo directory avail.
FS_ERR_DIR_NOT_OPENDirectory not open.

ECC Error Codes

Error CodeMeaning
FS_ERR_ECC_CORRECTABLECorrectable ECC error.
FS_ERR_ECC_UNCORRECTABLEUncorrectable ECC error.

Entry Error Codes

Error CodeMeaning
FS_ERR_ENTRIES_SAMEPaths specify same file system entry.
FS_ERR_ENTRIES_TYPE_DIFFPaths do not both specify files OR directories.
FS_ERR_ENTRIES_VOLS_DIFFPaths specify file system entries on different vols.
FS_ERR_ENTRY_CORRUPTFile system entry is corrupt.
FS_ERR_ENTRY_EXISTSFile system entry exists.
FS_ERR_ENTRY_INVALIDFile system entry invalid.
FS_ERR_ENTRY_NOT_DIRFile system entry not a directory.
FS_ERR_ENTRY_NOT_EMPTYFile system entry not empty.
FS_ERR_ENTRY_NOT_FILEFile system entry not a file.
FS_ERR_ENTRY_NOT_FOUNDFile system entry not found.
FS_ERR_ENTRY_PARENT_NOT_FOUNDEntry parent not found.
FS_ERR_ENTRY_PARENT_NOT_DIREntry parent not a directory.
FS_ERR_ENTRY_RD_ONLYFile system entry marked read-only.
FS_ERR_ENTRY_ROOT_DIRFile system entry is a root directory.
FS_ERR_ENTRY_TYPE_INVALIDFile system entry type is invalid.
FS_ERR_ENTRY_OPENOperation not allowed on entry corresponding to an open file/dir.

File Error Codes

Error CodeMeaning
FS_ERR_FILE_ALREADY_OPENFile already open.
FS_ERR_FILE_BUF_ALREADY_ASSIGNEDBuf already assigned.
FS_ERR_FILE_ERRError indicator set on file.
FS_ERR_FILE_INVALID_ACCESS_MODEAccess mode is specified invalid.
FS_ERR_FILE_INVALID_ATTRIBAttributes are specified invalid.
FS_ERR_FILE_INVALID_BUF_MODEBuf mode is specified invalid or unknown.
FS_ERR_FILE_INVALID_BUF_SIZEBuf size is specified invalid.
FS_ERR_FILE_INVALID_DATE_TIMEDate/time is specified invalid.
FS_ERR_FILE_INVALID_DATE_TIME_FLAGDate/time flag is specified invalid.
FS_ERR_FILE_INVALID_NAMEName is specified invalid.
FS_ERR_FILE_INVALID_ORIGINOrigin is specified invalid or unknown.
FS_ERR_FILE_INVALID_OFFSETOffset is specified invalid.
FS_ERR_FILE_INVALID_FILESInvalid file arguments.
FS_ERR_FILE_INVALID_OPFile operation invalid.
FS_ERR_FILE_INVALID_OP_SEQFile operation sequence invalid.
FS_ERR_FILE_INVALID_POSFile position invalid.
FS_ERR_FILE_LOCKEDFile locked.
FS_ERR_FILE_NONE_AVAILNo file available.
FS_ERR_FILE_NOT_OPENFile not open.
FS_ERR_FILE_NOT_LOCKEDFile not locked.
FS_ERR_FILE_OVFFile size overflowed max file size.
FS_ERR_FILE_OVF_OFFSETFile offset overflowed max file offset.

Name Error Codes

Error CodeMeaning
FS_ERR_NAME_BASE_TOO_LONGBase name too long.
FS_ERR_NAME_EMPTYName empty.
FS_ERR_NAME_EXT_TOO_LONGExtension too long.
FS_ERR_NAME_INVALIDInvalid file name or path.
FS_ERR_NAME_MIXED_CASEName is mixed case.
FS_ERR_NAME_NULLName ptr arg(s) passed NULL ptr(s).
FS_ERR_NAME_PATH_TOO_LONGEntry path is too long.
FS_ERR_NAME_BUF_TOO_SHORTBuffer for name is too short.
FS_ERR_NAME_TOO_LONGFull name is too long.

Partition Error Codes

Error CodeMeaning
FS_ERR_PARTITION_INVALIDPartition invalid.
FS_ERR_PARTITION_INVALID_NBRPartition nbr specified invalid.
FS_ERR_PARTITION_INVALID_SIGPartition sig invalid.
FS_ERR_PARTITION_INVALID_SIZEPartition size invalid.
FS_ERR_PARTITION_MAXMax nbr partitions have been created in MBR.
FS_ERR_PARTITION_NOT_FINALPrev partition is not final partition.
FS_ERR_PARTITION_NOT_FOUNDPartition not found.
FS_ERR_PARTITION_ZEROPartition zero.

Pools Error Codes

Error CodeMeaning
FS_ERR_POOL_EMPTYPool is empty.
FS_ERR_POOL_FULLPool is full.
FS_ERR_POOL_INVALID_BLK_ADDRBlock not found in used pool pointers.
FS_ERR_POOL_INVALID_BLK_IN_POOLBlock found in free pool pointers.
FS_ERR_POOL_INVALID_BLK_IXBlock index invalid.
FS_ERR_POOL_INVALID_BLK_NBRNumber blocks specified invalid.
FS_ERR_POOL_INVALID_BLK_SIZEBlock size specified invalid.

File System Error Codes

Error CodeMeaning
FS_ERR_SYS_TYPE_NOT_SUPPORTEDFile sys type not supported.
FS_ERR_SYS_INVALID_SIGSec has invalid OR illegal sig.
FS_ERR_SYS_DIR_ENTRY_PLACEDir entry could not be placed.
FS_ERR_SYS_DIR_ENTRY_NOT_FOUNDDir entry not found.
FS_ERR_SYS_DIR_ENTRY_NOT_FOUND_YETDir entry not found (yet).
FS_ERR_SYS_SEC_NOT_FOUNDSec not found.
FS_ERR_SYS_CLUS_CHAIN_ENDCluster chain ended.
FS_ERR_SYS_CLUS_CHAIN_END_EARLYCluster chain ended before number clusters traversed.
FS_ERR_SYS_CLUS_INVALIDCluster invalid.
FS_ERR_SYS_CLUS_NOT_AVAILCluster not avail.
FS_ERR_SYS_SFN_NOT_AVAILSFN is not avail.
FS_ERR_SYS_LFN_ORPHANEDLFN entry orphaned.

Volume Error Codes

Error CodeMeaning
FS_ERR_VOL_INVALID_NAMEInvalid volume name.
FS_ERR_VOL_INVALID_SIZEInvalid volume size.
FS_ERR_VOL_INVALID_SEC_SIZEInvalid volume sector size.
FS_ERR_VOL_INVALID_CLUS_SIZEInvalid volume cluster size.
FS_ERR_VOL_INVALID_OPVolume operation invalid.
FS_ERR_VOL_INVALID_SEC_NBRInvalid volume sector number.
FS_ERR_VOL_INVALID_SYSInvalid file system on volume.
FS_ERR_VOL_NO_CACHENo cache assigned to volume.
FS_ERR_VOL_NONE_AVAILNo vol avail.
FS_ERR_VOL_NONE_EXISTNo vols exist.
FS_ERR_VOL_NOT_OPENVol not open.
FS_ERR_VOL_NOT_MOUNTEDVol not mounted.
FS_ERR_VOL_ALREADY_OPENVol already open.
FS_ERR_VOL_FILES_OPENFiles open on vol.
FS_ERR_VOL_DIRS_OPENDirs open on vol.
FS_ERR_JOURNAL_ALREADY_OPENJournal already open.
FS_ERR_JOURNAL_CFG_CHANGEDFile system suite cfg changed since log created.
FS_ERR_JOURNAL_FILE_INVALIDJournal file invalid.
FS_ERR_JOURNAL_FULLJournal full.
FS_ERR_JOURNAL_LOG_INVALID_ARGInvalid arg read from journal log.
FS_ERR_JOURNAL_LOG_INCOMPLETELog not completely entered in journal.
FS_ERR_JOURNAL_LOG_NOT_PRESENTLog not present in journal.
FS_ERR_JOURNAL_NOT_OPENJournal not open
FS_ERR_JOURNAL_NOT_REPLAYINGJournal not being replayed.
FS_ERR_JOURNAL_NOT_STARTEDJournaling not started.
FS_ERR_JOURNAL_NOT_STOPPEDJournaling not stopped.
FS_ERR_VOL_LABEL_INVALIDVolume label is invalid.
FS_ERR_VOL_LABEL_NOT_FOUNDVolume label was not found.
FS_ERR_VOL_LABEL_TOO_LONGVolume label is too long.

OS Layer Error Codes

Error CodeMeaning
FS_ERR_OS_LOCKLock not acquired.
FS_ERR_OS_INITOS not initialized.
FS_ERR_OS_INIT_LOCKLock signal not successfully initialized.
FS_ERR_OS_INIT_LOCK_NAMELock signal name not successfully initialized.