Changeset 24266 in vbox for trunk/src/VBox/Main/idl/VirtualBox.xidl
- Timestamp:
- Nov 2, 2009 3:29:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r24262 r24266 8325 8325 <const name="LockedRead" value="2"> 8326 8326 <desc> 8327 Medium is locked for reading, no data modification is possible. A 8328 medium is typically locked for reading while it is used by a running 8329 virtual machine but has a depending differencing image that receives 8330 the actual write operations. This way one base medium can have multiple 8331 child differencing images which can be written to simultaneously. 8327 Medium is locked for reading (see <link to="IMedium::lockRead"/>), 8328 no data modification is possible. 8332 8329 </desc> 8333 8330 </const> 8334 8331 <const name="LockedWrite" value="3"> 8335 8332 <desc> 8336 Medium is locked for writing, no concurrent data reading or modification 8337 is possible. A medium is typically locked for writing when it receives 8338 write operations from a running virtual machine. If a medium has 8339 differencing images, then while the machine is running, only the last 8340 ("leaf") differencing image is locked for writing, whereas its parents 8341 are locked for reading only. 8333 Medium is locked for writing (see <link to="IMedium::lockWrite"/>), 8334 no concurrent data reading or modification is possible. 8342 8335 </desc> 8343 8336 </const> … … 9171 9164 Locks this medium for reading. 9172 9165 9173 Theread lock is shared: many clients can simultaneously lock the9166 A read lock is shared: many clients can simultaneously lock the 9174 9167 same medium for reading unless it is already locked for writing (see 9175 9168 <link to="#lockWrite"/>) in which case an error is returned. … … 9178 9171 from within VirtualBox. This means that any method that changes 9179 9172 the properties of this medium or contents of the storage unit 9180 will return an error (unless explicitly stated otherwise) and9181 that an attempt to start a virtual machine that wants to modify9182 the medium will also fail.9173 will return an error (unless explicitly stated otherwise). That 9174 includes an attempt to start a virtual machine that wants to 9175 write to the the medium. 9183 9176 9184 9177 When the virtual machine is started up, it locks for reading all 9185 9178 media it uses in read-only mode. If some medium cannot be locked 9186 9179 for reading, the startup procedure will fail. 9180 A medium is typically locked for reading while it is used by a running 9181 virtual machine but has a depending differencing image that receives 9182 the actual write operations. This way one base medium can have 9183 multiple child differencing images which can be written to 9184 simultaneously. Read-only media such as DVD and floppy images are 9185 also locked for reading only (so they can be in use by multiple 9186 machines simultaneously). 9187 9188 A medium is also locked for reading when it is the source of a 9189 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>. 9187 9190 9188 9191 The medium locked for reading must be unlocked using the <link … … 9191 9194 <link to="#unlockRead"/> calls. 9192 9195 9193 This method sets the medium state to <link 9194 to="MediumState_LockedRead" /> on success. The state prior to 9195 this call must be <link to="MediumState_Created" />, 9196 <link to="MediumState_Inaccessible" /> or 9197 <link to="MediumState_LockedRead" />. 9198 As you can see, an inaccessible medium can be locked too. This is 9199 not an error; this method performs a logical lock that prevents 9200 modifications of this medium through the VirtualBox API, not a 9201 physical lock of the underlying storage unit. 9196 This method sets the medium state (see <link to="#state"/>) to 9197 "LockedRead" on success. The medium's previous state must be 9198 one of "Created", "Inaccessible" or "LockedRead". 9199 9200 Locking an inaccessible medium is not an error; this method performs 9201 a logical lock that prevents modifications of this medium through 9202 the VirtualBox API, not a physical file-system lock of the underlying 9203 storage unit. 9202 9204 9203 9205 This method returns the current state of the medium 9204 < b>before</b> the operation.9206 <i>before</i> the operation. 9205 9207 9206 9208 <result name="VBOX_E_INVALID_OBJECT_STATE"> … … 9221 9223 Cancels the read lock previously set by <link to="#lockRead"/>. 9222 9224 9223 For both ,success and failure, this method returns the current state9224 of the medium < b>after</b> the operation.9225 For both success and failure, this method returns the current state 9226 of the medium <i>after</i> the operation. 9225 9227 9226 9228 See <link to="#lockRead"/> for more details. … … 9242 9244 Locks this medium for writing. 9243 9245 9244 Thewrite lock, as opposed to <link to="#lockRead"/>, is9245 exclusive: there may be only one client holding a write lock 9246 A write lock, as opposed to <link to="#lockRead"/>, is 9247 exclusive: there may be only one client holding a write lock, 9246 9248 and there may be no read locks while the write lock is held. 9247 9248 When the medium is locked for writing, it cannot be modified 9249 from within VirtualBox and it is not guaranteed that the values 9249 As a result, read-locking fails if a write lock is held, and 9250 write-locking fails if either a read or another write lock is held. 9251 9252 When a medium is locked for writing, it cannot be modified 9253 from within VirtualBox, and it is not guaranteed that the values 9250 9254 of its properties are up-to-date. Any method that changes the 9251 9255 properties of this medium or contents of the storage unit will 9252 return an error (unless explicitly stated otherwise) and an 9253 attempt to start a virtual machine wanting to modify or to 9254 read the medium will fail. 9255 9256 When the virtual machine is started up, it locks for writing all 9256 return an error (unless explicitly stated otherwise). 9257 9258 When a virtual machine is started up, it locks for writing all 9257 9259 media it uses to write data to. If any medium could not be locked 9258 for writing, the startup procedure will fail. 9260 for writing, the startup procedure will fail. If a medium has 9261 differencing images, then while the machine is running, only 9262 the last ("leaf") differencing image is locked for writing, 9263 whereas its parents are locked for reading only. 9264 9265 A medium is also locked for writing when it is the target of a 9266 write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>. 9259 9267 9260 9268 The medium locked for writing must be unlocked using the <link 9261 to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/> 9262 can <b>not</b> be nested and must be followed by a<link 9263 to="#unlockWrite"/> call before the next lockWrite call. 9264 9265 This method sets the medium state to <link to="MediumState_LockedWrite" /> 9266 on success. The state prior to this call must be <link to="MediumState_Created"/> 9267 or <link to="MediumState_Inaccessible"/>. As you can see, an inaccessible 9268 medium can be locked too. This is not an error; this method 9269 performs a logical lock preventing modifications of this 9270 medium through the VirtualBox API, not a physical lock of the 9271 underlying storage unit. 9269 to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested. 9270 9271 This method sets the medium state (see <link to="#state"/>) to 9272 "LockedWrite" on success. The medium's previous state must be 9273 either "Created" or "Inaccessible". 9274 9275 Locking an inaccessible medium is not an error; this method performs 9276 a logical lock that prevents modifications of this medium through 9277 the VirtualBox API, not a physical file-system lock of the underlying 9278 storage unit. 9272 9279 9273 9280 For both, success and failure, this method returns the current 9274 state of the medium < b>before</b> the operation.9281 state of the medium <i>before</i> the operation. 9275 9282 9276 9283 <result name="VBOX_E_INVALID_OBJECT_STATE"> … … 9291 9298 Cancels the write lock previously set by <link to="#lockWrite"/>. 9292 9299 9293 For both ,success and failure, this method returns the current9294 state of the medium < b>after</b> the operation.9300 For both success and failure, this method returns the current 9301 state of the medium <i>after</i> the operation. 9295 9302 9296 9303 See <link to="#lockWrite"/> for more details.
Note:
See TracChangeset
for help on using the changeset viewer.