FSArchiveResource

Definition



typedef struct FSArchiveResource
{
    u64     totalSize;
    u64     availableSize;
    u32     maxFileHandles;
    u32     currentFileHandles;
    u32     maxDirectoryHandles;
    u32     currentDirectoryHandles;
    // for FAT archives.
    u32     bytesPerSector;
    u32     sectorsPerCluster;
    u32     totalClusters;
    u32     availableClusters;
}
FSArchiveResource;

Description

A structure that indicates the resource information that can be obtained with FS_GetArchiveResource(). The details of each member are as follows.

totalSizeIndicates the total size of an archive in bytes.
Note that this will be a 64-bit integer.
availableSizeIndicates the amount of free space within an archive in bytes.
Note that this will be a 64-bit integer.
maxFileHandlesIndicates the maximum number of files that can be opened simultaneously.
currentFileHandlesIndicates the number of files that are currently open.
maxDirectoryHandlesIndicates the maximum number of directories that can be opened simultaneously.
currentDirectoryHandlesIndicates the number of directories that are currently open.
The following members are only valid for archives that have FAT as the internal structure, such as NAND archives and SD Card archives.
bytesPerSectorIndicates the number of bytes per sector.
sectorsPerClusterIndicates the number of sectors per cluster.
totalClustersIndicates the total number of clusters.
availableClustersIndicates the number of available clusters.

See Also

FS_GetArchiveResource

Revision History

2007/12/17 Initial version.


CONFIDENTIAL