Nut/OS  4.10.3
API Reference
phatvol.c File Reference

Volume related routines of the PHAT file system. More...

#include <dev/blockdev.h>
#include <sys/event.h>
#include <fs/dospart.h>
#include <fs/phatio.h>
#include <fs/phatutil.h>
#include <fs/phatvol.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <memdebug.h>
Include dependency graph for phatvol.c:

Go to the source code of this file.

Functions

int PhatVolMount (NUTDEVICE *dev, NUTFILE *blkmnt, uint8_t part_type)
 Mount a PHAT volume.
int PhatVolUnmount (NUTDEVICE *dev)
 Unmount a PHAT volume.
uint32_t PhatClusterSector (NUTFILE *nfp, uint32_t clust)

Detailed Description

Volume related routines of the PHAT file system.

When mounting a partition, we expect the block device driver to call the related mount routine of the file system driver.

 *
 * $Log$
 * Revision 1.11  2009/02/13 14:52:05  haraldkipp
 * Include memdebug.h for heap management debugging support.
 *
 * Revision 1.10  2008/08/11 06:59:42  haraldkipp
 * BSD types replaced by stdint types (feature request #1282721).
 *
 * Revision 1.9  2006/10/08 16:42:56  haraldkipp
 * Not optimal, but simple and reliable exclusive access implemented.
 * Fixes bug #1486539. Furthermore, bug #1567790, which had been rejected,
 * had been reported correctly and is now fixed.
 *
 * Revision 1.8  2006/07/11 12:20:19  haraldkipp
 * PHAT file system failed when accessed from multiple threads. A mutual
 * exclusion semaphore fixes this.
 *
 * Revision 1.7  2006/07/10 08:48:47  haraldkipp
 * Automatically detect FAT12 and FAT16 volumes when no partition table
 * is provided.
 *
 * Revision 1.6  2006/06/18 16:40:34  haraldkipp
 * No need to set errno after malloc failed.
 *
 * Revision 1.5  2006/05/15 11:49:47  haraldkipp
 * Added support for media formats without partition table like USB sticks.
 *
 * Revision 1.4  2006/04/07 12:56:18  haraldkipp
 * Several memory holes fixed.
 *
 * Revision 1.3  2006/02/23 15:45:22  haraldkipp
 * PHAT file system now supports configurable number of sector buffers.
 * This dramatically increased write rates of no-name cards.
 * AVR compile errors corrected.
 *
 * Revision 1.2  2006/01/22 17:38:06  haraldkipp
 * If mounting fails, the occupied resources are no longer released in
 * PhatVolMount(). Instead the caller, PhatIOCtl() in this case, calls
 * PhatVolUnmount(). This reduces the code size and makes sure, the all
 * resources are released in all cases.
 *
 * Revision 1.1  2006/01/05 16:31:56  haraldkipp
 * First check-in.
 *
 *
 * 

Definition in file phatvol.c.