fs/fs Return Codes

Functions in fs/fs that indicate success or failure do so with the following set of return codes:

Return codeDescription
FS_EOKSuccess
FS_ECORRUPTFile system corrupt
FS_EHWError accessing storage medium
FS_EOFFSETInvalid offset
FS_EINVALInvalid argument
FS_ENOMEMInsufficient memory
FS_ENOENTNo such file or directory
FS_EEMPTYSpecified region is empty (internal only)
FS_EFULLDisk full
FS_EUNEXPDisk contains unexpected metadata
FS_EOSOS error
FS_EEXISTFile or directory already exists
FS_EACCESSOperation prohibited by file open mode
FS_EUNINITFile system not initialized

Header file

#include "fs/fs.h"