Volume info structure. More...
#include <phatvol.h>
Data Fields | |
int | vol_type |
Type of volume. | |
uint32_t | vol_numfree |
Number of free clusters. | |
uint32_t | vol_nxtfree |
Possibly next free cluster. | |
PHATSECTBUF | vol_buf [1] |
Sector buffer of this volume. | |
HANDLE | vol_fsmutex |
Mutual exclusion filesystem access semaphore. | |
HANDLE | vol_iomutex |
Mutual exclusion I/O semaphore. | |
unsigned int | vol_sectsz |
Bytes per sector. | |
unsigned int | vol_clustsz |
Sectors per cluster. | |
uint32_t | vol_tabsz |
Number of sectors per allocation table. | |
uint32_t | vol_tab_sect [2] |
First sector of each allocation table. | |
unsigned int | vol_rootsz |
Number of sectors used by the root directory. | |
uint32_t | vol_root_sect |
First sector of the root directory. | |
uint32_t | vol_root_clust |
First cluster of the root directory. | |
uint32_t | vol_last_clust |
Last data cluster number. | |
uint32_t | vol_data_sect |
First data sector. |
Type of volume.
Either 12, 16 or 32.
Definition at line 196 of file phatvol.h.
Referenced by AllocFirstCluster(), IsFixedRootDir(), PhatDirOpen(), PhatDirReleaseChain(), PhatFilePosSet(), PhatFileRead(), PhatFileWrite(), and PhatVolMount().
Number of free clusters.
Definition at line 198 of file phatvol.h.
Referenced by AllocFirstCluster(), Phat12ReleaseChain(), Phat16ReleaseChain(), Phat32ReleaseChain(), PhatFileWrite(), and PhatVolMount().
Sector buffer of this volume.
Definition at line 207 of file phatvol.h.
Referenced by Phat12GetClusterLink(), Phat12SetClusterLink(), Phat16GetClusterLink(), Phat16SetClusterLink(), Phat32GetClusterLink(), Phat32SetClusterLink(), PhatDirEntryUpdate(), PhatFileRead(), PhatFileWrite(), PhatSectorFlush(), PhatSectorLoad(), PhatVolMount(), and PhatVolUnmount().
Mutual exclusion filesystem access semaphore.
Definition at line 210 of file phatvol.h.
Referenced by PhatVolMount().
Mutual exclusion I/O semaphore.
Definition at line 212 of file phatvol.h.
Referenced by PhatSectorLoad(), and PhatVolMount().
unsigned int _PHATVOL::vol_sectsz |
Bytes per sector.
Definition at line 214 of file phatvol.h.
Referenced by Phat12GetClusterLink(), Phat12SetClusterLink(), PhatDirCreate(), PhatFilePosSet(), PhatFileRead(), PhatFileWrite(), and PhatVolMount().
unsigned int _PHATVOL::vol_clustsz |
Sectors per cluster.
Definition at line 216 of file phatvol.h.
Referenced by PhatClusterSector(), PhatDirCreate(), PhatFilePosSet(), PhatFileRead(), PhatFileWrite(), and PhatVolMount().
Number of sectors per allocation table.
Definition at line 219 of file phatvol.h.
Referenced by PhatVolMount().
First sector of each allocation table.
We maintain upto two allocation tables.
Definition at line 224 of file phatvol.h.
Referenced by Phat12SetClusterLink(), Phat16SetClusterLink(), Phat32SetClusterLink(), and PhatVolMount().
unsigned int _PHATVOL::vol_rootsz |
Number of sectors used by the root directory.
Definition at line 227 of file phatvol.h.
Referenced by PhatFilePosSet(), PhatFileRead(), PhatFileWrite(), and PhatVolMount().
First sector of the root directory.
Definition at line 229 of file phatvol.h.
Referenced by PhatClusterSector(), and PhatVolMount().
First cluster of the root directory.
Definition at line 231 of file phatvol.h.
Referenced by PhatDirCreate(), PhatDirOpen(), and PhatVolMount().
Last data cluster number.
The first cluster number is 2, so this value is equal to the total number of data clusters plus 2.
Definition at line 238 of file phatvol.h.
Referenced by PhatVolMount().
First data sector.
The first sector following the root directory.
Definition at line 243 of file phatvol.h.
Referenced by PhatClusterSector(), and PhatVolMount().