FAT16 access
[FAT16 support]


Detailed Description

Basic functions for handling a FAT16 filesystem.


Functions

struct fat16_fs_struct * fat16_open (struct partition_struct *partition)
 Opens a FAT16 filesystem.
void fat16_close (struct fat16_fs_struct *fs)
 Closes a FAT16 filesystem.
uint32_t fat16_get_fs_size (const struct fat16_fs_struct *fs)
 Returns the amount of total storage capacity of the filesystem in bytes.
uint32_t fat16_get_fs_free (const struct fat16_fs_struct *fs)
 Returns the amount of free storage capacity on the filesystem in bytes.


Function Documentation

struct fat16_fs_struct* fat16_open ( struct partition_struct partition  )  [read]

Opens a FAT16 filesystem.

Parameters:
[in] partition Discriptor of partition on which the filesystem resides.
Returns:
0 on error, a FAT16 filesystem descriptor on success.
See also:
fat16_open

void fat16_close ( struct fat16_fs_struct *  fs  ) 

Closes a FAT16 filesystem.

When this function returns, the given filesystem descriptor will be invalid.

Parameters:
[in] fs The filesystem to close.
See also:
fat16_open

uint32_t fat16_get_fs_size ( const struct fat16_fs_struct *  fs  ) 

Returns the amount of total storage capacity of the filesystem in bytes.

Parameters:
[in] fs The filesystem on which to operate.
Returns:
0 on failure, the filesystem size in bytes otherwise.

uint32_t fat16_get_fs_free ( const struct fat16_fs_struct *  fs  ) 

Returns the amount of free storage capacity on the filesystem in bytes.

Note:
As the FAT16 filesystem is cluster based, this function does not return continuous values but multiples of the cluster size.
Parameters:
[in] fs The filesystem on which to operate.
Returns:
0 on failure, the free filesystem space in bytes otherwise.


Generated on Thu May 22 18:12:37 2008 for mega-eth by  doxygen 1.5.5