ToiStorageDevice.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TOISTORAGEDEVICE_IDL
00016 #define TOISTORAGEDEVICE_IDL
00017
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiNotEnoughResourcesException.idl"
00020 #include "TToiUnhandledValueException.idl"
00021 #include "ToiApplicationService.idl"
00022 #include "ToiOperationManager.idl"
00023 #include "TToiInvalidPreconditionException.idl"
00024 #include "TToiOperationNotSupportedException.idl"
00025
00026 interface ToiStorageDeviceStorageInfo;
00027
00028 interface ToiStorageDevicePartitionInfo;
00029
00035 interface ToiStorageDevice {
00036
00038 typedef unsigned long TToiStorageDeviceId;
00039
00041 typedef unsigned long TToiPartitionId;
00042
00044 typedef sequence < TToiPartitionId > TToiPartitionIdSequence;
00045
00048
00049 typedef long TToiFileSystemStatus;
00052
00058
00059 const TToiFileSystemStatus FS_STATUS_OK = 0;
00060
00068
00069 const TToiFileSystemStatus FS_STATUS_ERRORS_CORRECTED = 1;
00070
00079
00080 const TToiFileSystemStatus FS_STATUS_ERRORS_LEFT_UNCORRECTED = 2;
00081
00091
00092 const TToiFileSystemStatus FS_STATUS_MAJOR_FAILURE = 3;
00093
00095
00097 typedef TToiFileSystemStatus TFileSystemStatus;
00098
00105
00106 ToiStorageDeviceStorageInfo getStorageInfo();
00107
00122
00123 ToiStorageDevicePartitionInfo getPartitionInfo(in TToiPartitionId partitionId)
00124 raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00125
00143 void mountPartition(in ToiOperationManager::TToiOperationId operationId,
00144 in TToiPartitionId partitionId,
00145 in string mountPoint)
00146 raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00147
00163 void unmountPartition(in ToiOperationManager::TToiOperationId operationId,
00164 in TToiPartitionId partitionId)
00165 raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00166
00183 void reformat(in ToiOperationManager::TToiOperationId operationId)
00184 raises (TToiInvalidArgumentException, TToiInvalidPreconditionException, TToiOperationNotSupportedException);
00185
00199 void scheduleReformatOnNextReboot(in TToiPartitionId partitionId)
00200 raises (TToiOperationNotSupportedException, TToiInvalidArgumentException);
00201
00215 void scheduleFileSystemRepairOnNextReboot(in TToiPartitionId partitionId)
00216 raises (TToiOperationNotSupportedException, TToiInvalidArgumentException);
00217
00227 void spinDown()
00228 raises (TToiInvalidPreconditionException);
00229
00238 void spinUp()
00239 raises (TToiInvalidPreconditionException);
00240
00241 };
00242
00243 #endif