FileSystem_FAT::TVolFormatParam_FAT Class Reference

class FileSystem_FAT::TVolFormatParam_FAT : public TVolFormatParam

This class describes specific parameters for formatting volume with FAT file system. The parameters are: FAT sub type (FAT12/16/32), Number of Sectors per cluster, Number of FAT tables, Number of reserved sectors. All parameters are optional and if not set, it is up to the file system implementation to decide values.

This class package (TVolFormatParam_FATBuf) shall be passed to the RFormat::Open() as "Special format information"

Please note that the parameters may have invalid combinations and it is not always possible to format volume with the specified FAT sub type, like FAT12. In this case RFormat::Open() will return corresponding error code (the concrete code depends on file system implementation).

RFormat::Open() does not modify any data in this structure.

TVolFormatParam_FATBuf RFormat::Open()

Inherits from

Constructor & Destructor Documentation

TVolFormatParam_FAT()

TVolFormatParam_FAT()[inline]

Member Functions Documentation

FatSubType()

TFatSubType FatSubType()const [inline]

Init()

voidInit()[inline]

initialises the data structure with default values for all parameters and automatically sets file system name as "FAT"

NumFATs()

TUint32 NumFATs()const [inline]

ReservedSectors()

TUint32 ReservedSectors()const [inline]

SectPerCluster()

TUint32 SectPerCluster()const [inline]

SetFatSubType(TFatSubType)

voidSetFatSubType(TFatSubTypeaSubType)[inline]

Set desired FAT subtype.

Parameters

TFatSubType aSubTypespecifies FAT12/16/32 subtype. Value 0 means "the file system will decide itself what to use"

SetFatSubType(const TDesC &)

voidSetFatSubType(const TDesC &aSubType)[inline]

Set desired FAT subtype using string literals, KFSSubType_FAT12, KFSSubType_FAT16, KFSSubType_FAT32

Parameters

const TDesC & aSubTypestring descriptor, like "FAT16"

SetFileSystemName(const TDesC &)

voidSetFileSystemName(const TDesC &aFsName)[private]

sets the file system name hash corresponding to aFsName

Parameters

const TDesC & aFsName

SetNumFATs(TUint32)

voidSetNumFATs(TUint32aNumFATs)[inline]

Set Number of FAT tables on the volume. The maximum is supported by the FAT FS implementation is 2

Parameters

TUint32 aNumFATsNumber of FAT tables. Value 0 means "the file system will decide itself what to use"

SetReservedSectors(TUint32)

voidSetReservedSectors(TUint32aReservedSectors)[inline]

Set number of reserved sectors on FAT volume. The file system will validate this parameter before formatting.

Parameters

TUint32 aReservedSectorsnumber of reserved sectors. Value 0 means "the file system will decide itself what to use"

SetSectPerCluster(TUint32)

voidSetSectPerCluster(TUint32aSpc)[inline]

Set Number of "Sectors per cluster". For valid values see FAT specs.

Parameters

TUint32 aSpcNumber of "Sectors per cluster". Value 0 means "the file system will decide itself what to use"

Member Enumerations Documentation

Enum anonymous

Enumerators

KOffsetSubType = 0
KOffsetReservedSec
KOffsetSpc
KOffsetNumFATs