TVolumeInfo Class Reference

class TVolumeInfo

Contains information about a volume mounted on a drive. Use RFs::Drive() if only the drive information is required.

If a drive supports removable media it may contain different volumes over time.

Volume information is made up of information concerning the drive on which it is mounted, which can also be accessed through RFs::Drive() , and the volume information, this is made up of the size of the volume, the free space, its unique identifying number and a name.

TVolumeInfo is initialised by RFs::Volume() .

RFs::Volume() RFs::Drive()

Constructor & Destructor Documentation

TVolumeInfo()

IMPORT_C TVolumeInfo ( )

Default constructor.

Member Data Documentation

TUint16 i16Reserved1

TUint16 i16Reserved1 [private]

TUint32 i32Reserved1

TUint32 i32Reserved1 [private]

TUint32 i32Reserved2

TUint32 i32Reserved2 [private]

TUint8 i8Reserved1

TUint8 i8Reserved1 [private]

Reserved for future expansion

TDriveInfo iDrive

TDriveInfo iDrive

Information about the drive on which the volume is mounted.

TDriveInfo

TFileCacheFlags iFileCacheFlags

TFileCacheFlags iFileCacheFlags

Flags which define the default file-caching behaviour for this volume

TFileCacheFlags

TInt64 iFree

TInt64 iFree

The amount of free space on the volume in bytes.

TBufC< KMaxFileName > iName

TBufC < KMaxFileName > iName

Name of the volume, with a maximum of KMaxFileName characters.

This field is optional.

KMaxFileName

TInt64 iSize

TInt64 iSize

The maximum size of the volume in bytes. The current amount of memory in use plus the amount of free memory.

TUint iUniqueID

TUint iUniqueID

The volume s unique identifying number.

TUint8 iVolSizeAsync

TUint8 iVolSizeAsync

Internal flag, used in the case of non-blocking getting volume information. RFs::Volume(TVolumeInfo& aVol,TInt aDrive, TRequestStatus& aStat)If this flag is set, it means that the volume information will be obtained asynchronously. More specific, on return iFree will reflect the _current_ amount of free space on volume at the moment of RFs::Volume() call, not the exact final value. This is because in this case getting volume information will be asynchronous, and the client will not be suspended until the mount finish calculating free space. At present appicable to FAT32 file system only.