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

phatvol.c File Reference


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: phatvol.c,v $
 * 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.
 *
 *
 * 


Functions

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


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