|
cbmimage
|
Classes | |
| struct | cbmimage_fat_entry_s |
| cbmimage One entry of the FAT structure More... | |
| struct | cbmimage_fat_s |
| cbmimage FAT structure More... | |
Typedefs | |
| typedef struct cbmimage_fat_entry_s | cbmimage_fat_entry |
| cbmimage One entry of the FAT structure | |
| typedef struct cbmimage_fat_s | cbmimage_fat |
| cbmimage FAT structure | |
Functions | |
| cbmimage_fat * | cbmimage_fat_create (cbmimage_fileimage *image) |
| create a FAT structure | |
| void | cbmimage_fat_close (cbmimage_fat *fat) |
| close a FAT structure | |
| int | cbmimage_i_fat_set (cbmimage_fat *fat, cbmimage_blockaddress block, uint16_t target_lba) |
| int | cbmimage_fat_set (cbmimage_fat *fat, cbmimage_blockaddress block, cbmimage_blockaddress target) |
| set a block in the FAT to a target in the FAT | |
| int | cbmimage_fat_clear (cbmimage_fat *fat, cbmimage_blockaddress block) |
| set a block in the FAT to unused | |
| int | cbmimage_i_fat_get_target_lba (cbmimage_fat *fat, cbmimage_blockaddress block) |
| cbmimage_blockaddress | cbmimage_fat_get (cbmimage_fat *fat, cbmimage_blockaddress block) |
| get the target of a block in the FAT | |
| int | cbmimage_fat_is_used (cbmimage_fat *fat, cbmimage_blockaddress block) |
| check if a block in the FAT is marked as used | |
| void | cbmimage_fat_dump (cbmimage_fat *fat, int trackformat) |
| dump a FAT structure | |
| typedef struct cbmimage_fat_s cbmimage_fat |
cbmimage FAT structure
This structure holds a file allocaton table (FAT) into the image, build from the T/S links at the beginning of each block.
It helps in fast navigation inside of an image.
| typedef struct cbmimage_fat_entry_s cbmimage_fat_entry |
cbmimage One entry of the FAT structure
This structure holds the entry for one block inside of the file allocaton table (FAT) into the image, build from the T/S links at the beginning of each block.
It helps in fast navigation inside of an image.
| int cbmimage_fat_clear | ( | cbmimage_fat * | fat, |
| cbmimage_blockaddress | block ) |
set a block in the FAT to unused
| [in] | fat | pointer to a fat structure |
| [in] | block | The address of the block that is to be marked |
| void cbmimage_fat_close | ( | cbmimage_fat * | fat | ) |
close a FAT structure
| [in] | fat | pointer to a fat structure |
| cbmimage_fat * cbmimage_fat_create | ( | cbmimage_fileimage * | image | ) |
create a FAT structure
| [in] | image | pointer to the image data internal settings |
| void cbmimage_fat_dump | ( | cbmimage_fat * | fat, |
| int | trackformat ) |
dump a FAT structure
| [in] | fat | pointer to a fat structure |
| [in] | trackformat |
|
| cbmimage_blockaddress cbmimage_fat_get | ( | cbmimage_fat * | fat, |
| cbmimage_blockaddress | block ) |
get the target of a block in the FAT
| [in] | fat | pointer to a fat structure |
| [in] | block | The address of the block to be examined |
| int cbmimage_fat_is_used | ( | cbmimage_fat * | fat, |
| cbmimage_blockaddress | block ) |
check if a block in the FAT is marked as used
| [in] | fat | pointer to a fat structure |
| [in] | block | The address of the block to be examined |
| int cbmimage_fat_set | ( | cbmimage_fat * | fat, |
| cbmimage_blockaddress | block, | ||
| cbmimage_blockaddress | target ) |
set a block in the FAT to a target in the FAT
| [in] | fat | pointer to a fat structure |
| [in] | block | The address of the block that is to be marked |
| [in] | target | The target to which the block links to |
| int cbmimage_i_fat_get_target_lba | ( | cbmimage_fat * | fat, |
| cbmimage_blockaddress | block ) |
get the target of a block in the FAT
| [in] | fat | pointer to a fat structure |
| [in] | block | The address of the block to be examined |
| int cbmimage_i_fat_set | ( | cbmimage_fat * | fat, |
| cbmimage_blockaddress | block, | ||
| uint16_t | target_lba ) |
set a FAT block to a specific LBA target
| [in] | fat | pointer to a fat structure |
| [in] | block | The address of the block that is to be marked |
| [in] | target_lba | The LBA to which the block links to. This can also be one of the some special values (cf. remarks) |