Mount object

USB mount objects have names in the form rawdevice[.partition#]. For example, if you attach a USB stick with a DOS partition and the raw device created is /dev/umass0, the mount object is named /pps/qnx/mount/umass0.0.

Note: We recommend learning about the PPS objects used by usblauncher by examining their contents, not their filenames because these filenames could change in the future.

Each mount object that usblauncher writes to PPS contains the following fields:

Name Description Type Example
blocks_size Size of each block (in bytes) Integer 512
blocks_total Total number of blocks Integer 1622502
fs_type Filesystem type. This field is present only if the filesystem is mounted. String with one of the following values: dos (fat32), qnx4, qnx6, nt, or unknown dos (fat32)
label Filesystem label. This field is present only if the filesystem is mounted. String Home movies 1
mnt_status Outcome of the mount operation Integer followed by string, in the format: errno (str_error(errno)) 48 (Not supported)
mount Mountpoint String /fs/usb0_0
partition Partition name. This field is present only if the mount object represents a partition. String /dev/umass/umass0t6
partition_count Total number of partitions. This field is present only if the mount object represents an entire device, not a partition. Integer 1
partition_order Partition index. This field is present only if the mount object represents a partition. Integer 0
plugin_name Name of plugin supplying extra mount information, followed by mount fields returned by plugin String in the following format: pname [attr_name::value]*

Here, pname is one of the following plugin names: ipod, mediafs, or generic.

The set of attributes written into this field depends on the plugin.
plugin_name::generic name:: id::5d05f0df-68f4-4cfe -b06e-ad664aad3ec8
PPS_DRIVER_ID Driver object path String /pps/qnx/driver/265837
PPS_RAWMOUNT_ID Mount object path String /pps/qnx/mount/umass0
raw Name of raw device String /dev/umass/umass0
read_only Read-only status of device. This field is present only if the filesystem is mounted. Boolean: 0 if writable or 1 if read-only 0 (writable)
status Error string. This field is present only if an error occurred when accessing the device's mounted filesystem. Integer followed by string, in the format: errno (str_error(errno)) 302 (Corrupted file system detected)