Syntax
typedef enum {
  VM_FS_SUCCESS = 0,
  VM_FS_RESERVED = -1,
  VM_FS_PARAMETER = -2,
  VM_FS_INVALID_FILENAME = -3,
  VM_FS_DRIVE_NOT_FOUND = -4,
  VM_FS_TOO_MANY_FILES = -5,
  VM_FS_NO_MORE_FILES = -6,
  VM_FS_WRONG_MEDIA = -7,
  VM_FS_INVALID_FILE_SYSTEM = -8,
  VM_FS_FILE_NOT_FOUND = -9,
  VM_FS_INVALID_FILE_HANDLE = -10,
  VM_FS_UNSUPPORTED_DEVICE = -11,
  VM_FS_UNSUPPORTED_DRIVE_FUNCTION = -12,
  VM_FS_CORRUPTED_PARTITION_TABLE = -13,
  VM_FS_TOO_MANY_DRIVES = -14,
  VM_FS_INVALID_FILE_POS = -15,
  VM_FS_ACCESS_DENIED = -16,
  VM_FS_STRING_BUFFER_TOO_SMALL = -17,
  VM_FS_GENERAL_FAILURE = -18,
  VM_FS_PATH_NOT_FOUND = -19,
  VM_FS_FAT_ALLOC = -20,
  VM_FS_ROOT_DIR_FULL = -21,
  VM_FS_DISK_FULL = -22,
  VM_FS_TIMEOUT = -23,
  VM_FS_BAD_SECTOR = -24,
  VM_FS_DATA = -25,
  VM_FS_MEDIA_CHANGED = -26,
  VM_FS_SECTOR_NOT_FOUND = -27,
  VM_FS_ADDRESS_MARK_NOT_FOUND = -28,
  VM_FS_DRIVE_NOT_READY = -29,
  VM_FS_WRITE_PROTECTION = -30,
  VM_FS_DMA_OVERRUN = -31,
  VM_FS_CRC = -32,
  VM_FS_DEVICE_RESOURCE = -33,
  VM_FS_INVALID_SECTOR_SIZE = -34,
  VM_FS_OUT_OF_BUFFERS = -35,
  VM_FS_FILE_EXISTS = -36,
  VM_FS_LONG_FILE_POS = -37,
  VM_FS_FILE_TOO_LARGE = -38,
  VM_FS_BAD_DIR_ENTRY = -39,
  VM_FS_ATTRIBUTE_CONFLICT = -40,
  VM_FS_CHECKDISK_RETRY = -41,
  VM_FS_LACK_OF_PROTECTION_SPACE = -42,
  VM_FS_SYSTEM_CRASH = -43,
  VM_FS_FAIL_GET_MEMORY = -44,
  VM_FS_READ_ONLY = -45,
  VM_FS_DEVICE_BUSY = -46,
  VM_FS_ABORTED = -47,
  VM_FS_QUOTA_OVER_DISK_SPACE = -48,
  VM_FS_PATH_OVER_LEN = -49,
  VM_FS_APP_QUOTA_FULL = -50,
  VM_FS_VF_MAP = -51,
  VM_FS_DEVICE_EXPORTED = -52,
  VM_FS_DISK_FRAGMENT = -53,
  VM_FS_DIRCACHE_EXPIRED = -54,
  VM_FS_QUOTA_USAGE_WARNING = -55,
  VM_FS_ERROR_DIRDATA_LOCKED = -56,
  VM_FS_INVALID_OPERATION = -57,
  VM_FS_ERROR_VF_PARENT_CLOSED = -58,
  VM_FS_ERROR_UNSUPPORTED_SERVICE = -59,
  VM_FS_MSDC_MOUNT = -100,
  VM_FS_MSDC_READ_SECTOR = -101,
  VM_FS_MSDC_WRITE_SECTOR = -102,
  VM_FS_MSDC_DISCARD_SECTOR = -103,
  VM_FS_MSDC_PRESNET_NOT_READY = -104,
  VM_FS_MSDC_NOT_PRESENT = -105,
  VM_FS_EXTERNAL_DEVICE_NOT_PRESENT = -106,
  VM_FS_HIGH_LEVEL_FORMAT = -107,
  VM_FS_CARD_BATCHCOUNT_NOT_PRESENT = -110,
  VM_FS_FLASH_MOUNT = -120,
  VM_FS_FLASH_ERASE_BUSY = -121,
  VM_FS_NAND_DEVICE_NOT_SUPPORTED = -122,
  VM_FS_FLASH_OTP_UNKNOWERR = -123,
  VM_FS_FLASH_OTP_OVERSCOPE = -124,
  VM_FS_FLASH_OTP_WRITEFAIL = -125,
  VM_FS_FDM_VERSION_MISMATCH = -126,
  VM_FS_FLASH_OTP_LOCK_ALREADY = -127,
  VM_FS_FDM_FORMAT = -128,
  VM_FS_FDM_USER_DRIVE_BROKEN = -129,
  VM_FS_FDM_SYS_DRIVE_BROKEN = -130,
  VM_FS_FDM_MULTIPLE_BROKEN = -131,
  VM_FS_LOCK_MUTEX_FAIL = -141,
  VM_FS_NO_NONBLOCKMODE = -142,
  VM_FS_NO_PROTECTIONMODE = -143,
  VM_FS_DISK_SIZE_TOO_LARGE = (VM_FS_MSDC_MOUNT),
  VM_FS_MINIMUM_RESULT = -65536,
  VM_FS_RESULT_MAX = 0x7FFFFFFF
} VM_FS_RESULT;
ContentsIndex
PreviousUpNext
VM_FS_RESULT
Syntax
typedef enum {
  VM_FS_SUCCESS = 0,
  VM_FS_RESERVED = -1,
  VM_FS_PARAMETER = -2,
  VM_FS_INVALID_FILENAME = -3,
  VM_FS_DRIVE_NOT_FOUND = -4,
  VM_FS_TOO_MANY_FILES = -5,
  VM_FS_NO_MORE_FILES = -6,
  VM_FS_WRONG_MEDIA = -7,
  VM_FS_INVALID_FILE_SYSTEM = -8,
  VM_FS_FILE_NOT_FOUND = -9,
  VM_FS_INVALID_FILE_HANDLE = -10,
  VM_FS_UNSUPPORTED_DEVICE = -11,
  VM_FS_UNSUPPORTED_DRIVE_FUNCTION = -12,
  VM_FS_CORRUPTED_PARTITION_TABLE = -13,
  VM_FS_TOO_MANY_DRIVES = -14,
  VM_FS_INVALID_FILE_POS = -15,
  VM_FS_ACCESS_DENIED = -16,
  VM_FS_STRING_BUFFER_TOO_SMALL = -17,
  VM_FS_GENERAL_FAILURE = -18,
  VM_FS_PATH_NOT_FOUND = -19,
  VM_FS_FAT_ALLOC = -20,
  VM_FS_ROOT_DIR_FULL = -21,
  VM_FS_DISK_FULL = -22,
  VM_FS_TIMEOUT = -23,
  VM_FS_BAD_SECTOR = -24,
  VM_FS_DATA = -25,
  VM_FS_MEDIA_CHANGED = -26,
  VM_FS_SECTOR_NOT_FOUND = -27,
  VM_FS_ADDRESS_MARK_NOT_FOUND = -28,
  VM_FS_DRIVE_NOT_READY = -29,
  VM_FS_WRITE_PROTECTION = -30,
  VM_FS_DMA_OVERRUN = -31,
  VM_FS_CRC = -32,
  VM_FS_DEVICE_RESOURCE = -33,
  VM_FS_INVALID_SECTOR_SIZE = -34,
  VM_FS_OUT_OF_BUFFERS = -35,
  VM_FS_FILE_EXISTS = -36,
  VM_FS_LONG_FILE_POS = -37,
  VM_FS_FILE_TOO_LARGE = -38,
  VM_FS_BAD_DIR_ENTRY = -39,
  VM_FS_ATTRIBUTE_CONFLICT = -40,
  VM_FS_CHECKDISK_RETRY = -41,
  VM_FS_LACK_OF_PROTECTION_SPACE = -42,
  VM_FS_SYSTEM_CRASH = -43,
  VM_FS_FAIL_GET_MEMORY = -44,
  VM_FS_READ_ONLY = -45,
  VM_FS_DEVICE_BUSY = -46,
  VM_FS_ABORTED = -47,
  VM_FS_QUOTA_OVER_DISK_SPACE = -48,
  VM_FS_PATH_OVER_LEN = -49,
  VM_FS_APP_QUOTA_FULL = -50,
  VM_FS_VF_MAP = -51,
  VM_FS_DEVICE_EXPORTED = -52,
  VM_FS_DISK_FRAGMENT = -53,
  VM_FS_DIRCACHE_EXPIRED = -54,
  VM_FS_QUOTA_USAGE_WARNING = -55,
  VM_FS_ERROR_DIRDATA_LOCKED = -56,
  VM_FS_INVALID_OPERATION = -57,
  VM_FS_ERROR_VF_PARENT_CLOSED = -58,
  VM_FS_ERROR_UNSUPPORTED_SERVICE = -59,
  VM_FS_MSDC_MOUNT = -100,
  VM_FS_MSDC_READ_SECTOR = -101,
  VM_FS_MSDC_WRITE_SECTOR = -102,
  VM_FS_MSDC_DISCARD_SECTOR = -103,
  VM_FS_MSDC_PRESNET_NOT_READY = -104,
  VM_FS_MSDC_NOT_PRESENT = -105,
  VM_FS_EXTERNAL_DEVICE_NOT_PRESENT = -106,
  VM_FS_HIGH_LEVEL_FORMAT = -107,
  VM_FS_CARD_BATCHCOUNT_NOT_PRESENT = -110,
  VM_FS_FLASH_MOUNT = -120,
  VM_FS_FLASH_ERASE_BUSY = -121,
  VM_FS_NAND_DEVICE_NOT_SUPPORTED = -122,
  VM_FS_FLASH_OTP_UNKNOWERR = -123,
  VM_FS_FLASH_OTP_OVERSCOPE = -124,
  VM_FS_FLASH_OTP_WRITEFAIL = -125,
  VM_FS_FDM_VERSION_MISMATCH = -126,
  VM_FS_FLASH_OTP_LOCK_ALREADY = -127,
  VM_FS_FDM_FORMAT = -128,
  VM_FS_FDM_USER_DRIVE_BROKEN = -129,
  VM_FS_FDM_SYS_DRIVE_BROKEN = -130,
  VM_FS_FDM_MULTIPLE_BROKEN = -131,
  VM_FS_LOCK_MUTEX_FAIL = -141,
  VM_FS_NO_NONBLOCKMODE = -142,
  VM_FS_NO_PROTECTIONMODE = -143,
  VM_FS_DISK_SIZE_TOO_LARGE = (VM_FS_MSDC_MOUNT),
  VM_FS_MINIMUM_RESULT = -65536,
  VM_FS_RESULT_MAX = 0x7FFFFFFF
} VM_FS_RESULT;
Description

File system return values.

File

vmfs.h

Members
Members 
Description 
VM_FS_SUCCESS = 0 
No error 
VM_FS_RESERVED = -1 
Reserved, not used 
VM_FS_PARAMETER = -2 
User 
VM_FS_INVALID_FILENAME = -3 
User 
VM_FS_DRIVE_NOT_FOUND = -4 
User or Fatal 
VM_FS_TOO_MANY_FILES = -5 
User or Normal: Exceeded the maximum number of file handles or more than 256 files in sort 
VM_FS_NO_MORE_FILES = -6 
Normal 
VM_FS_WRONG_MEDIA = -7 
Fatal 
VM_FS_INVALID_FILE_SYSTEM = -8 
Fatal 
VM_FS_FILE_NOT_FOUND = -9 
User or Normal 
VM_FS_INVALID_FILE_HANDLE = -10 
User or Normal 
VM_FS_UNSUPPORTED_DEVICE = -11 
User 
VM_FS_UNSUPPORTED_DRIVE_FUNCTION = -12 
User or Fatal 
VM_FS_CORRUPTED_PARTITION_TABLE = -13 
Fatal 
VM_FS_TOO_MANY_DRIVES = -14 
Not used 
VM_FS_INVALID_FILE_POS = -15 
User 
VM_FS_ACCESS_DENIED = -16 
User or Normal 
VM_FS_STRING_BUFFER_TOO_SMALL = -17 
User 
VM_FS_GENERAL_FAILURE = -18 
Normal 
VM_FS_PATH_NOT_FOUND = -19 
User 
VM_FS_FAT_ALLOC = -20 
Fatal: Disk crashes 
VM_FS_ROOT_DIR_FULL = -21 
Normal 
VM_FS_DISK_FULL = -22 
Normal 
VM_FS_TIMEOUT = -23 
Normal: FS_CloseMSDC with non-block 
VM_FS_BAD_SECTOR = -24 
Normal: NAND flash bad block 
VM_FS_DATA = -25 
Normal: NAND flash bad block 
VM_FS_MEDIA_CHANGED = -26 
Normal 
VM_FS_SECTOR_NOT_FOUND = -27 
Fatal 
VM_FS_ADDRESS_MARK_NOT_FOUND = -28 
Not used 
VM_FS_DRIVE_NOT_READY = -29 
Normal 
VM_FS_WRITE_PROTECTION = -30 
Normal: Only for MSDC 
VM_FS_DMA_OVERRUN = -31 
Not used 
VM_FS_CRC = -32 
Not used 
VM_FS_DEVICE_RESOURCE = -33 
Fatal: Device crashes 
VM_FS_INVALID_SECTOR_SIZE = -34 
Fatal 
VM_FS_OUT_OF_BUFFERS = -35 
Fatal 
VM_FS_FILE_EXISTS = -36 
User or Normal 
VM_FS_LONG_FILE_POS = -37 
User: FS_Seek new pos over sizeof int 
VM_FS_FILE_TOO_LARGE = -38 
User: filesize + pos over sizeof int 
VM_FS_BAD_DIR_ENTRY = -39 
Fatal 
VM_FS_ATTRIBUTE_CONFLICT = -40 
User: Can't specify FS_PROTECTION_MODE and FS_NONBLOCK_MOD 
VM_FS_CHECKDISK_RETRY = -41 
System: Don't care 
VM_FS_LACK_OF_PROTECTION_SPACE = -42 
Fatal: Device crashes 
VM_FS_SYSTEM_CRASH = -43 
Normal 
VM_FS_FAIL_GET_MEMORY = -44 
Normal 
VM_FS_READ_ONLY = -45 
User or Normal 
VM_FS_DEVICE_BUSY = -46 
Normal 
VM_FS_ABORTED = -47 
Normal 
VM_FS_QUOTA_OVER_DISK_SPACE = -48 
Normal: Configuration Mistake 
VM_FS_PATH_OVER_LEN = -49 
Normal 
VM_FS_APP_QUOTA_FULL = -50 
Normal 
VM_FS_VF_MAP = -51 
User or Normal 
VM_FS_DEVICE_EXPORTED = -52 
User or Normal 
VM_FS_DISK_FRAGMENT = -53 
Normal 
VM_FS_DIRCACHE_EXPIRED = -54 
Normal 
VM_FS_QUOTA_USAGE_WARNING = -55 
Normal or Fatal: System Drive Free Space Not Enough 
VM_FS_ERROR_DIRDATA_LOCKED = -56 
Normal 
VM_FS_INVALID_OPERATION = -57 
Normal 
VM_FS_ERROR_VF_PARENT_CLOSED = -58 
Virtual file's parent is closed 
VM_FS_ERROR_UNSUPPORTED_SERVICE = -59 
The specified FS service is closed in this project. 
VM_FS_MSDC_MOUNT = -100 
Normal 
VM_FS_MSDC_READ_SECTOR = -101 
Normal 
VM_FS_MSDC_WRITE_SECTOR = -102 
Normal 
VM_FS_MSDC_DISCARD_SECTOR = -103 
Normal 
VM_FS_MSDC_PRESNET_NOT_READY = -104 
System 
VM_FS_MSDC_NOT_PRESENT = -105 
Normal 
VM_FS_EXTERNAL_DEVICE_NOT_PRESENT = -106 
Normal 
VM_FS_HIGH_LEVEL_FORMAT = -107 
Normal 
VM_FS_CARD_BATCHCOUNT_NOT_PRESENT = -110 
Normal 
VM_FS_FLASH_MOUNT = -120 
Normal 
VM_FS_FLASH_ERASE_BUSY = -121 
Normal: Only for non-block mode 
VM_FS_NAND_DEVICE_NOT_SUPPORTED = -122 
Normal: Configuration Mistake 
VM_FS_FLASH_OTP_UNKNOWERR = -123 
User or Normal 
VM_FS_FLASH_OTP_OVERSCOPE = -124 
User or Normal 
VM_FS_FLASH_OTP_WRITEFAIL = -125 
User or Normal 
VM_FS_FDM_VERSION_MISMATCH = -126 
System 
VM_FS_FLASH_OTP_LOCK_ALREADY = -127 
User or Normal 
VM_FS_FDM_FORMAT = -128 
The format of the disk content is not correct 
VM_FS_FDM_USER_DRIVE_BROKEN = -129 
User drive unrecoverably broken 
VM_FS_FDM_SYS_DRIVE_BROKEN = -130 
System drive unrecoverably broken 
VM_FS_FDM_MULTIPLE_BROKEN = -131 
Multiple unrecoverably broken 
VM_FS_LOCK_MUTEX_FAIL = -141 
System: Don't care 
VM_FS_NO_NONBLOCKMODE = -142 
User: Try to call non-block mode other than NOR flash 
VM_FS_NO_PROTECTIONMODE = -143 
User: Try to call protection mode other than NOR flash 
VM_FS_DISK_SIZE_TOO_LARGE = (VM_FS_MSDC_MOUNT) 
Normal 
VM_FS_MINIMUM_RESULT = -65536 
0xFFFF0000 
VM_FS_RESULT_MAX = 0x7FFFFFFF 
Forces the compiler to use 4-byte integer for enum. 
Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.