Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

_PHATVOL Struct Reference
[Volume Support]

#include <phatvol.h>

Collaboration diagram for _PHATVOL:

Collaboration graph
[legend]

Detailed Description

Volume info structure.


Data Fields

int vol_type
 Type of volume.
u_long vol_numfree
 Number of free clusters.
u_long 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.
u_int vol_sectsz
 Bytes per sector.
u_int vol_clustsz
 Sectors per cluster.
u_long vol_tabsz
 Number of sectors per allocation table.
u_long vol_tab_sect [2]
 First sector of each allocation table.
u_int vol_rootsz
 Number of sectors used by the root directory.
u_long vol_root_sect
 First sector of the root directory.
u_long vol_root_clust
 First cluster of the root directory.
u_long vol_last_clust
 Last data cluster number.
u_long vol_data_sect
 First data sector.


Field Documentation

int _PHATVOL::vol_type
 

Type of volume.

Either 12, 16 or 32.

u_long _PHATVOL::vol_tab_sect[2]
 

First sector of each allocation table.

We maintain upto two allocation tables.

u_long _PHATVOL::vol_last_clust
 

Last data cluster number.

The first cluster number is 2, so this value is equal to the total number of data clusters plus 2.

u_long _PHATVOL::vol_data_sect
 

First data sector.

The first sector following the root directory.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/