- Timestamp:
- Mar 20, 2009 10:47:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r18025 r18107 8112 8112 <desc> 8113 8113 The IMedium interface is a common interface for all objects representing 8114 virtual media such as hard disks, DVDimages.8114 virtual media such as hard disks, CD/DVD images and floppy images. 8115 8115 8116 8116 Each medium is associated with a storage unit (such as a file on the host … … 8168 8168 8169 8169 The given medium (with the created storage unit) is considered to be 8170 <i>accessible</i> when its storage unit can be successfully read from.8170 <i>accessible</i> when its storage unit can be read. 8171 8171 Accessible media are indicated by the <link to="MediaState_Created"/> 8172 8172 value of the <link to="#state"/> attribute. When the storage unit cannot … … 8232 8232 Current media state. Inspect <link to="MediaState"/> values for details. 8233 8233 8234 Reading this attribute may take long time because a newaccessibility8235 check of the storage unit is performed e verytime the attribute is read.8234 Reading this attribute may take a long time because an accessibility 8235 check of the storage unit is performed each time the attribute is read. 8236 8236 This check may cause a significant delay if the storage unit of the 8237 8237 given medium is, for example, a file located on a network share which is … … 8249 8249 accessibility check in this case. 8250 8250 8251 Note that not all media states are applicable to certainmedia types.8251 Note that not all media states are applicable to all media types. 8252 8252 For example, states <link to="MediaState_NotCreated"/>, 8253 8253 <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>, … … 8262 8262 8263 8263 The format of the location string is media type specific. For media 8264 types that useregular files in a host's file system, the location8265 string is just afull file name.8264 types using regular files in a host's file system, the location 8265 string is the full file name. 8266 8266 8267 8267 Some media types may support changing the storage unit location by … … 8290 8290 8291 8291 For example, for locations that are regular files in the host's file 8292 system, the value of this attribute is just afile name (+ extension),8292 system, the value of this attribute is just the file name (+ extension), 8293 8293 without the path specification. 8294 8294 … … 8344 8344 <desc> 8345 8345 Returns an array of UUIDs of all snapshots of the given machine where 8346 this medium is attached to it.8346 this medium is attached to. 8347 8347 8348 8348 If the medium is attached to the machine in the current state, then the … … 8356 8356 The returned array may be <tt>null</tt> if this medium is not attached 8357 8357 to the given machine at all, neither in the current state nor in one of 8358 snapshots.8358 the snapshots. 8359 8359 </desc> 8360 8360 <param name="machineId" type="uuid" dir="in"> … … 8424 8424 Cancels the read lock previously set by <link to="#lockRead"/>. 8425 8425 8426 Either on success or onfailure, this method returns the current state8426 For both, success and failure, this method returns the current state 8427 8427 of the medium <b>after</b> the operation. 8428 8428 … … 8446 8446 8447 8447 The write lock, as opposed to <link to="#lockRead"/>, is 8448 exclusive: there may be only one client that holdsa write lock8448 exclusive: there may be only one client holding a write lock 8449 8449 and there may be no read locks while the write lock is held. 8450 8450 … … 8453 8453 of its properties are up-to-date. Any method that changes the 8454 8454 properties of this medium or contents of the storage unit will 8455 return an error ( (unless explicitly stated otherwise) and an8456 attempt to start a virtual machine that wantsto modify or to8457 read the medium will alsofail.8455 return an error (unless explicitly stated otherwise) and an 8456 attempt to start a virtual machine wanting to modify or to 8457 read the medium will fail. 8458 8458 8459 8459 When the virtual machine is started up, it locks for writing all 8460 media it uses to write data to. If some media cannot be locked8460 media it uses to write data to. If any medium could not be locked 8461 8461 for writing, the startup procedure will fail. 8462 8462 8463 8463 The medium locked for writing must be unlocked using the <link 8464 8464 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/> 8465 can <b>not</b> be nested and must be followed by a paired<link8466 to="#unlockWrite"/> call .8465 can <b>not</b> be nested and must be followed by a<link 8466 to="#unlockWrite"/> call before the next lockWrite call. 8467 8467 8468 8468 This method sets the media state to <link … … 8471 8471 to="MediaState_Inaccessible"/>. As you can see, inaccessible 8472 8472 media can be locked too. This is not an error; this method 8473 performs a logical lock that preventsmodifications of this8473 performs a logical lock preventing modifications of this 8474 8474 media through the VirtualBox API, not a physical lock of the 8475 8475 underlying storage unit. 8476 8476 8477 Either on success or onfailure, this method returns the current8477 For both, success and failure, this method returns the current 8478 8478 state of the medium <b>before</b> the operation. 8479 8479 … … 8495 8495 Cancels the write lock previously set by <link to="#lockWrite"/>. 8496 8496 8497 Either on success or onfailure, this method returns the current8497 For both, success and failure, this method returns the current 8498 8498 state of the medium <b>after</b> the operation. 8499 8499 … … 9787 9787 </result> 9788 9788 <result name="VBOX_E_OBJECT_NOT_FOUND"> 9789 Could not find a CD/DVD image matching @a imageI D.9789 Could not find a CD/DVD image matching @a imageId. 9790 9790 </result> 9791 9791 <result name="VBOX_E_INVALID_OBJECT_STATE">
Note:
See TracChangeset
for help on using the changeset viewer.