ToiStorageDevice Interface Reference
Description
The ToiStorageDevice interface provides access to a storage device.
import "ToiStorageDevice.idl";
List of all members.
Public Member Functions |
ToiStorageDeviceStorageInfo | getStorageInfo () |
ToiStorageDevicePartitionInfo | getPartitionInfo (in TToiPartitionId partitionId) raises (TToiInvalidArgumentException, TToiInvalidPreconditionException) |
void | mountPartition (in ToiOperationManager::TToiOperationId operationId, in TToiPartitionId partitionId, in string mountPoint) raises (TToiInvalidArgumentException, TToiInvalidPreconditionException) |
void | unmountPartition (in ToiOperationManager::TToiOperationId operationId, in TToiPartitionId partitionId) raises (TToiInvalidArgumentException, TToiInvalidPreconditionException) |
void | reformat (in ToiOperationManager::TToiOperationId operationId) raises (TToiInvalidArgumentException, TToiInvalidPreconditionException, TToiOperationNotSupportedException) |
void | scheduleReformatOnNextReboot (in TToiPartitionId partitionId) raises (TToiOperationNotSupportedException, TToiInvalidArgumentException) |
void | scheduleFileSystemRepairOnNextReboot (in TToiPartitionId partitionId) raises (TToiOperationNotSupportedException, TToiInvalidArgumentException) |
void | spinDown () raises (TToiInvalidPreconditionException) |
void | spinUp () raises (TToiInvalidPreconditionException) |
Public Attributes |
|
|
const TToiFileSystemStatus | FS_STATUS_OK = 0 |
const TToiFileSystemStatus | FS_STATUS_ERRORS_CORRECTED = 1 |
const TToiFileSystemStatus | FS_STATUS_ERRORS_LEFT_UNCORRECTED = 2 |
const TToiFileSystemStatus | FS_STATUS_MAJOR_FAILURE = 3 |
Public Types |
typedef unsigned long | TToiStorageDeviceId |
typedef unsigned long | TToiPartitionId |
typedef sequence< TToiPartitionId > | TToiPartitionIdSequence |
typedef long | TToiFileSystemStatus |
typedef TToiFileSystemStatus | TFileSystemStatus |
Member Typedef Documentation
Typedef for backward compatibility when corrected naming typo of previous enum TFileSystemStatus.
The different kind of file system status values.
Type for partition identifier.
The sequence of partition identifiers.
Type for storage identifier.
Member Function Documentation
Returns partition info for a partition.
- Parameters:
-
| partitionId | Partition identifier. |
- Return values:
-
- Exceptions:
-
Returns storage info for this device.
- Return values:
-
Mounts a partition at a specified path.
- Parameters:
-
| operationId | Operation identifier for this operation. |
| partitionId | Partition identifier. |
| mountPoint | Mount point path. |
- Exceptions:
-
Reformat a device. This operation is only supported for external storage devices.
- Parameters:
-
| operationId | Operation identifier for this operation. |
- Exceptions:
-
Schedule a forced file system check of a partition and repair it at next reboot. This operation is only supported for internal storage devices.
- Parameters:
-
| partitionId | The partition to be checked and repaired. |
- Exceptions:
-
Schedule a reformat of a partition at next reboot. This operation is only supported for internal storage devices.
- Parameters:
-
| partitionId | The partition to format. |
- Exceptions:
-
Requests a spin down of a disk device. The platform may decide not to do this if the disk is used by platform.
- Exceptions:
-
Spins up a disk device.
- Exceptions:
-
Unmounts a partition.
- Parameters:
-
| operationId | Operation identifier for this operation. |
| partitionId | Partition identifier. |
- Exceptions:
-
Member Data Documentation
The file system had errors but they have been corrected (jfs_fsck return code 1 or 2).
This constant can also be accessed from toi.consts.ToiStorageDevice.FS_STATUS_ERRORS_CORRECTED.
The file system had errors that could not be corrected (jfs_fsck return code 4). A reformat is required to get the file system working.
This constant can also be accessed from toi.consts.ToiStorageDevice.FS_STATUS_ERRORS_LEFT_UNCORRECTED.
The file system is completely broken (all other return codes from jfs_fsck). Could also be that the partition has another file system than jfs. If the internal storage device has this status is should be reformated to get it working.
This constant can also be accessed from toi.consts.ToiStorageDevice.FS_STATUS_MAJOR_FAILURE.
No errors discovered on the file system (jfs_fsck return code 0).
This constant can also be accessed from toi.consts.ToiStorageDevice.FS_STATUS_OK.