#include <sys/stat.h>
#include <sys/syslimits.h>
#include "common.h"
#include "partition.h"
Go to the source code of this file.
|
enum | FILE_TYPE { FT_DIRECTORY,
FT_FILE,
FT_DIRECTORY,
FT_FILE
} |
|
enum | DIR_ENTRY_offset {
DIR_ENTRY_name = 0x00,
DIR_ENTRY_extension = 0x08,
DIR_ENTRY_attributes = 0x0B,
DIR_ENTRY_caseInfo = 0x0C,
DIR_ENTRY_cTime_ms = 0x0D,
DIR_ENTRY_cTime = 0x0E,
DIR_ENTRY_cDate = 0x10,
DIR_ENTRY_aDate = 0x12,
DIR_ENTRY_clusterHigh = 0x14,
DIR_ENTRY_mTime = 0x16,
DIR_ENTRY_mDate = 0x18,
DIR_ENTRY_cluster = 0x1A,
DIR_ENTRY_fileSize = 0x1C,
DIR_ENTRY_name = 0x00,
DIR_ENTRY_extension = 0x08,
DIR_ENTRY_attributes = 0x0B,
DIR_ENTRY_caseInfo = 0x0C,
DIR_ENTRY_cTime_ms = 0x0D,
DIR_ENTRY_cTime = 0x0E,
DIR_ENTRY_cDate = 0x10,
DIR_ENTRY_aDate = 0x12,
DIR_ENTRY_clusterHigh = 0x14,
DIR_ENTRY_mTime = 0x16,
DIR_ENTRY_mDate = 0x18,
DIR_ENTRY_cluster = 0x1A,
DIR_ENTRY_fileSize = 0x1C
} |
|
|
static bool | _FAT_directory_isDirectory (DIR_ENTRY *entry) |
|
static bool | _FAT_directory_isWritable (DIR_ENTRY *entry) |
|
static bool | _FAT_directory_isDot (DIR_ENTRY *entry) |
|
bool | _FAT_directory_getFirstEntry (PARTITION *partition, DIR_ENTRY *entry, uint32_t dirCluster) |
|
bool | _FAT_directory_getNextEntry (PARTITION *partition, DIR_ENTRY *entry) |
|
bool | _FAT_directory_entryFromPath (PARTITION *partition, DIR_ENTRY *entry, const char *path, const char *pathEnd) |
|
bool | _FAT_directory_chdir (PARTITION *partition, const char *path) |
|
bool | _FAT_directory_removeEntry (PARTITION *partition, DIR_ENTRY *entry) |
|
bool | _FAT_directory_addEntry (PARTITION *partition, DIR_ENTRY *entry, uint32_t dirCluster) |
|
uint32_t | _FAT_directory_entryGetCluster (PARTITION *partition, const uint8_t *entryData) |
|
bool | _FAT_directory_entryFromPosition (PARTITION *partition, DIR_ENTRY *entry) |
|
void | _FAT_directory_entryStat (PARTITION *partition, DIR_ENTRY *entry, struct stat *st) |
|
bool | _FAT_directory_getVolumeLabel (PARTITION *partition, char *label) |
|
◆ ALIAS_ENTRY_LENGTH
#define ALIAS_ENTRY_LENGTH 11 |
◆ ATTRIB_ARCH
#define ATTRIB_ARCH 0x20 /* Archive */ |
◆ ATTRIB_DIR
#define ATTRIB_DIR 0x10 /* Directory */ |
◆ ATTRIB_HID
#define ATTRIB_HID 0x02 /* Hidden */ |
◆ ATTRIB_LFN
#define ATTRIB_LFN 0x0F /* Long file name */ |
◆ ATTRIB_RO
#define ATTRIB_RO 0x01 /* Read only */ |
◆ ATTRIB_SYS
#define ATTRIB_SYS 0x04 /* System */ |
◆ ATTRIB_VOL
#define ATTRIB_VOL 0x08 /* Volume */ |
◆ CASE_LOWER_BASE
#define CASE_LOWER_BASE 0x08 /* WinNT lowercase basename */ |
◆ CASE_LOWER_EXT
#define CASE_LOWER_EXT 0x10 /* WinNT lowercase extension */ |
◆ DIR_ENTRY_DATA_SIZE
#define DIR_ENTRY_DATA_SIZE 0x20 |
◆ DIR_SEPARATOR
#define DIR_SEPARATOR '/' |
◆ FAT16_ROOT_DIR_CLUSTER
#define FAT16_ROOT_DIR_CLUSTER 0 |
◆ LFN_ENTRY_LENGTH
#define LFN_ENTRY_LENGTH 13 |
◆ MAX_ALIAS_EXT_LENGTH
#define MAX_ALIAS_EXT_LENGTH 3 |
◆ MAX_ALIAS_LENGTH
#define MAX_ALIAS_LENGTH 13 |
◆ MAX_ALIAS_PRI_LENGTH
#define MAX_ALIAS_PRI_LENGTH 8 |
◆ MAX_LFN_LENGTH
#define MAX_LFN_LENGTH 256 |
◆ MAX_NUMERIC_TAIL
#define MAX_NUMERIC_TAIL 999999 |
◆ DIR_ENTRY_offset
Enumerator |
---|
DIR_ENTRY_name | |
DIR_ENTRY_extension | |
DIR_ENTRY_attributes | |
DIR_ENTRY_caseInfo | |
DIR_ENTRY_cTime_ms | |
DIR_ENTRY_cTime | |
DIR_ENTRY_cDate | |
DIR_ENTRY_aDate | |
DIR_ENTRY_clusterHigh | |
DIR_ENTRY_mTime | |
DIR_ENTRY_mDate | |
DIR_ENTRY_cluster | |
DIR_ENTRY_fileSize | |
DIR_ENTRY_name | |
DIR_ENTRY_extension | |
DIR_ENTRY_attributes | |
DIR_ENTRY_caseInfo | |
DIR_ENTRY_cTime_ms | |
DIR_ENTRY_cTime | |
DIR_ENTRY_cDate | |
DIR_ENTRY_aDate | |
DIR_ENTRY_clusterHigh | |
DIR_ENTRY_mTime | |
DIR_ENTRY_mDate | |
DIR_ENTRY_cluster | |
DIR_ENTRY_fileSize | |
◆ FILE_TYPE
Enumerator |
---|
FT_DIRECTORY | |
FT_FILE | |
FT_DIRECTORY | |
FT_FILE | |
◆ _FAT_directory_addEntry()
◆ _FAT_directory_chdir()
◆ _FAT_directory_entryFromPath()
◆ _FAT_directory_entryFromPosition()
◆ _FAT_directory_entryGetCluster()
◆ _FAT_directory_entryStat()
◆ _FAT_directory_getFirstEntry()
◆ _FAT_directory_getNextEntry()
◆ _FAT_directory_getVolumeLabel()
bool _FAT_directory_getVolumeLabel |
( |
PARTITION * |
partition, |
|
|
char * |
label |
|
) |
| |
◆ _FAT_directory_isDirectory()
◆ _FAT_directory_isDot()
◆ _FAT_directory_isWritable()
◆ _FAT_directory_removeEntry()