fat.h (dosfstools-4.1) | : | fat.h (dosfstools-4.2) | ||
---|---|---|---|---|
skipping to change at line 26 | skipping to change at line 26 | |||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | |||
along with this program. If not, see <http://www.gnu.org/licenses/>. | along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
THe complete text of the GNU General Public License | THe complete text of the GNU General Public License | |||
can be found in /usr/share/common-licenses/GPL-3 file. | can be found in /usr/share/common-licenses/GPL-3 file. | |||
*/ | */ | |||
#ifndef _FAT_H | #ifndef _FAT_H | |||
#define _FAT_H | #define _FAT_H | |||
void read_fat(DOS_FS * fs); | void read_fat(DOS_FS * fs, int mode); | |||
/* Loads the FAT of the filesystem described by FS. Initializes the FAT, | /* Loads the FAT of the filesystem described by FS. Initializes the FAT, | |||
replaces broken FATs and rejects invalid cluster entries. */ | replaces broken FATs and rejects invalid cluster entries. */ | |||
void release_fat(DOS_FS * fs); | ||||
/* Release the FAT of the filesystem described by FS and free allocated memory. | ||||
Call it after finish work with FAT. */ | ||||
void get_fat(FAT_ENTRY * entry, void *fat, uint32_t cluster, DOS_FS * fs); | void get_fat(FAT_ENTRY * entry, void *fat, uint32_t cluster, DOS_FS * fs); | |||
/* Retrieve the FAT entry (next chained cluster) for CLUSTER. */ | /* Retrieve the FAT entry (next chained cluster) for CLUSTER. */ | |||
void set_fat(DOS_FS * fs, uint32_t cluster, int32_t new); | void set_fat(DOS_FS * fs, uint32_t cluster, int32_t new); | |||
/* Changes the value of the CLUSTERth cluster of the FAT of FS to NEW. Special | /* Changes the value of the CLUSTERth cluster of the FAT of FS to NEW. Special | |||
values of NEW are -1 (EOF, 0xff8 or 0xfff8) and -2 (bad sector, 0xff7 or | values of NEW are -1 (EOF, 0xff8 or 0xfff8) and -2 (bad sector, 0xff7 or | |||
0xfff7) */ | 0xfff7) */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 6 lines changed or added |