Storage Service

The storage service in KreaTV provides access to the following hardware if connected to the STB:

The service is not responsible for the NOR and/or NAND flash located in the STB. These are controlled by other parts of the KreaTV software.

Using the Service

IToiStorageService

The IToiStorageService interface is the entry point to the storage service. It can be used to enumerate the different physical storages connected to the STB. For each physical storage connected, the service can be used to retrive a handle to that specific storage, a IToiStorage interface.

IToiStorage

The IToiStorage interface is used to retrieve information about and perform operations on a specific physical storage. It gives information regarding the different partitions of the storage as well as system information and health of the physical storage.

Operations to perform on the physical storage includes spinning the HDD up and down (if that is supported by the HDD), format partitions and mount/unmount partitions.

For a physical storage device it is also possible to get the status of the storage. The status returned for the device is not the current status since it is only possible to check the file system when it is unmounted and hence not on demand. At each system startup, KreaTV will check and try to fix any fault on all storages. The query for status will hence return the check result from the last startup and in order to trigger a new check, the system needs to reboot.

See also: TOI Storage Service Interface