Functions in fs/fs
that indicate success or failure do so with the following set of return codes:
Return code | Description |
---|---|
FS_EOK | Success |
FS_ECORRUPT | File system corrupt |
FS_EHW | Error accessing storage medium |
FS_EOFFSET | Invalid offset |
FS_EINVAL | Invalid argument |
FS_ENOMEM | Insufficient memory |
FS_ENOENT | No such file or directory |
FS_EEMPTY | Specified region is empty (internal only) |
FS_EFULL | Disk full |
FS_EUNEXP | Disk contains unexpected metadata |
FS_EOS | OS error |
FS_EEXIST | File or directory already exists |
FS_EACCESS | Operation prohibited by file open mode |
FS_EUNINIT | File system not initialized |
#include "fs/fs.h"