typedef struct { VMCHAR label[24]; VMCHAR drive_letter; VMUINT8 write_protect; VMCHAR reserved[2]; VMUINT32 serial_number; VMUINT32 first_physical_sector; VMUINT32 fat_type; VMUINT32 fat_count; VMUINT32 max_directory_entries; VMUINT32 bytes_per_sector; VMUINT32 sectors_per_cluster; VMUINT32 total_clusters; VMUINT32 bad_clusters; VMUINT32 free_cluster; VMUINT32 files; VMUINT32 file_chains; VMUINT32 free_chains; VMUINT32 largest_free_chain; } vm_fs_disk_info_t;
typedef struct { VMCHAR label[24]; VMCHAR drive_letter; VMUINT8 write_protect; VMCHAR reserved[2]; VMUINT32 serial_number; VMUINT32 first_physical_sector; VMUINT32 fat_type; VMUINT32 fat_count; VMUINT32 max_directory_entries; VMUINT32 bytes_per_sector; VMUINT32 sectors_per_cluster; VMUINT32 total_clusters; VMUINT32 bad_clusters; VMUINT32 free_cluster; VMUINT32 files; VMUINT32 file_chains; VMUINT32 free_chains; VMUINT32 largest_free_chain; } vm_fs_disk_info_t;
Disk information
vmfs.h
|
Members |
Description |
|
VMCHAR label[24]; |
A zero-terminated Short File Name with the volume's label. |
|
VMCHAR drive_letter; |
The drive letter in UPPER case. |
|
VMUINT8 write_protect; |
Indicates the disk is in write protection or not. 1 means in protection, 0 means not. |
|
VMCHAR reserved[2]; |
Reserved fields |
|
VMUINT32 serial_number; |
The volume's serial number. |
|
VMUINT32 first_physical_sector; |
The LBA address of the logical drive's boot record. For diskettes, this value will be 0. |
|
VMUINT32 fat_type; |
2, 16, or 32 for FAT-12, FAT-16, or FAT-32 |
|
VMUINT32 fat_count; |
The number of FATs on the volume. |
|
VMUINT32 max_directory_entries; |
The maximum number of directory entries on the volume. |
|
VMUINT32 bytes_per_sector; |
The sector size. This value will usually be 512. |
|
VMUINT32 sectors_per_cluster; |
Specifies the size of the smallest unit of storage that can be allocated to a file in sectors. |
|
VMUINT32 total_clusters; |
Number of clusters for file storage on the volume. |
|
VMUINT32 bad_clusters; |
The number of clusters, which are marked bad and are unavailable for file storage. |
|
VMUINT32 free_cluster; |
The number of clusters currently available. |
|
VMUINT32 files; |
The number of files on the volume including directories, but not counting the root directory and files with an allocated file size of 0. |
|
VMUINT32 file_chains; |
The number of contiguous cluster chains. On a completely unfragmented volume, this value would be identical to Files. |
|
VMUINT32 free_chains; |
The number of contiguous cluster chains of free clusters. On a completely unfragmented volume, this value would be 1. |
|
VMUINT32 largest_free_chain; |
The maximum allocated file size for a newly allocated contiguous file in clusters. On a completely unfragmented volume, this value would be identical to FreeClusters. |
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.