Changeset 14700 in vbox for trunk/src/VBox/Main
- Timestamp:
- Nov 27, 2008 12:23:25 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HardDisk2Impl.cpp
r14698 r14700 1929 1929 * As opposed to the CreateDiffStorage() method, this method doesn't try to lock 1930 1930 * this hard disk for reading assuming that the caller has already done so. This 1931 * is used when taking an online snaopshot (where all origi al hard disks are1931 * is used when taking an online snaopshot (where all original hard disks are 1932 1932 * locked for writing and must remain such). Note however that if @a aWait is 1933 1933 * @c false and this method returns a success then the thread started by 1934 * this method will *unlock the hard disk (unless it is in1934 * this method will unlock the hard disk (unless it is in 1935 1935 * MediaState_LockedWrite state) so make sure the hard disk is either in 1936 1936 * MediaState_LockedWrite or call #LockRead() before calling this method! If @a … … 1940 1940 * If @a aProgress is not NULL but the object it points to is @c null then a new 1941 1941 * progress object will be created and assigned to @a *aProgress on success, 1942 * otherwise the existing progress object is used. If Progress is NULL, then no1942 * otherwise the existing progress object is used. If @a aProgress is NULL, then no 1943 1943 * progress object is created/used at all. 1944 1944 * … … 1955 1955 * an asynchronous thread. 1956 1956 * 1957 * @note Locks this object and aTarget for writing.1957 * @note Locks this object and @a aTarget for writing. 1958 1958 */ 1959 1959 HRESULT HardDisk2::createDiffStorage (ComObjPtr <HardDisk2> &aTarget, … … 2000 2000 if (it->snapshotIds.size() == 0) 2001 2001 { 2002 return setError ( E_FAIL,2002 return setError (VBOX_E_OBJECT_IN_USE, 2003 2003 tr ("Hard disk '%ls' is attached to a virtual machine " 2004 2004 "with UUID {%RTuuid}. No differencing hard disks " -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r14699 r14700 7379 7379 7380 7380 <result name="VBOX_E_OBJECT_IN_USE"> 7381 Hard disk is stillattached to a virtual machine.7381 Hard disk is attached to a virtual machine. 7382 7382 </result> 7383 7383 </desc> … … 7407 7407 7408 7408 <note> 7409 The hard disk will be placedto <link to="MediaState::LockedRead"/>7409 The hard disk will be set to <link to="MediaState::LockedRead"/> 7410 7410 state for the duration of this operation. 7411 7411 </note> 7412 </desc> <param name="target" type="IHardDisk2" dir="in"> 7412 <result name="VBOX_E_OBJECT_IN_USE"> 7413 Hard disk not in NotCreated state. 7414 </result> 7415 </desc> 7416 <param name="target" type="IHardDisk2" dir="in"> 7413 7417 <desc>Target hard disk.</desc> 7414 7418 </param>
Note:
See TracChangeset
for help on using the changeset viewer.