Directory used by an MTP driver process to publish storage-related objects
The /pps/services/multimedia/mtp/driverdir/storages/ directory contains objects that represent the presistent storage mediums of the device. For example, suppose the user attaches a smartphone that has an SD card inserted. The MTP driver that manages communication with that smartphone creates the driverdir/storages directory and publishes two objects in storages—one for the phone's internal storage and the other for the SD card. The name of each object is the ID of the storage that it describes. The content of a storage object looks like this:
[n]@00010001 FileSystemType::0x2 LastKnownStorageModificationTime::1136011133 MaxCapacity::12724617216 StorageDesc::Phone StorageID::00010001 StorageLabel::SECZ9519043CHOHB StorageType::0x3
Attribute | Data type | Description |
---|---|---|
FileSystemType | Hexadecimal string | Filesystem used by the storage. For details on the meanings of different field values, see section 5.2.2.2 of revision 1.1 of the Media Transfer Protocol specification. |
LastKnownStorageModificationTime | Number | Timestamp indicating when the storage was last modified |
MaxCapacity | Number | Maximum capacity (in bytes) of the storage |
StorageDesc | String | Description of the storage (e.g., 256Mb SD Card) |
StorageID | String | Storage ID, as a string. The first four digits identify the storage's physical location while the last four identify its logical partition. |
StorageLabel | String | Volume label. This field is present only if the filesystem on the storage is mounted. |
StorageType | Hexadecimal string | Type (i.e., physical nature) of the storage. For details on the meanings of different field values, see section 5.2.2.1 of the Media Transfer Protocol specification. |