Changeset 24923 in vbox
- Timestamp:
- Nov 24, 2009 8:00:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r24921 r24923 6998 6998 <method name="deleteSnapshot"> 6999 6999 <desc> 7000 Starts d iscarding the specified snapshot asynchronously.7000 Starts deleting the specified snapshot asynchronously. 7001 7001 See <link to="ISnapshot" /> for an introduction to snapshots. 7002 7002 … … 7010 7010 its child snapshots. 7011 7011 7012 If the discarded snapshot is the current one, its parent 7013 snapshot will become a new current snapshot. The current machine 7014 state is not directly affected in this case, except that 7015 currently attached differencing media based on media 7016 of the discarded snapshot will be also merged as described 7017 above. 7018 7019 If the discarded snapshot is the first one (the root snapshot) 7020 and it has exactly one child snapshot, this child snapshot will 7021 become the first snapshot after discarding. If there are no 7022 children at all (i.e. the first snapshot is the only snapshot of 7023 the machine), both the current and the first snapshot of the 7024 machine will be set to @c null. In all other cases, the first 7025 snapshot cannot be discarded. 7026 7027 You cannot discard the snapshot if it 7028 stores <link to="MediumType_Normal">normal</link> (non-differencing) 7029 media that have differencing media based on them. Snapshots of 7030 such kind can be discarded only when every normal medium has either 7031 no children at all or exactly one child. In the former case, the normal 7032 medium simply becomes unused (i.e. not attached to any VM). In the 7033 latter case, it receives all the changes stored in the child medium, 7034 and then it replaces the child medium in the configuration of the 7035 corresponding snapshot or machine. 7036 7037 Also, you cannot discard the snapshot if it stores media 7038 (of any type) having differencing child media that belong 7039 to other machines. Such snapshots can be only discarded after 7040 you discard all snapshots of other machines containing "foreign" 7041 child media, or detach these "foreign" child media from machines 7042 they are attached to. 7043 7044 One particular example of the snapshot storing normal media 7045 is the first snapshot of a virtual machine that had normal media 7046 attached when taking the snapshot. Be careful when 7047 discarding such snapshots because this implicitly commits 7048 changes (made since the snapshot being discarded has been taken) 7049 to normal media (as described above), which may be not what 7050 you want. 7051 7052 The virtual machine is put to 7053 the <link to="MachineState_Discarding">Discarding</link> state until 7054 the discard operation is completed. 7055 7056 <note> 7057 The machine must not be running, otherwise the operation 7058 will fail. 7059 </note> 7060 7061 <note> 7062 Child media of all normal media of the discarded snapshot 7063 must be accessible (see <link to="IMedium::state"/>) for this 7064 operation to succeed. In particular, this means that all virtual 7065 machines, whose media are directly or indirectly based on the 7066 media of discarded snapshot, must be powered off. 7067 </note> 7012 If the deleted snapshot is the current one, its parent snapshot will 7013 become a new current snapshot. The current machine state is not directly 7014 affected in this case, except that currently attached differencing 7015 media based on media of the discarded snapshot will be also merged as 7016 described above. 7017 7018 If the deleted snapshot is the first or current snapshot, then the 7019 respective IMachine attributes will be adjusted. Deleting the current 7020 snapshot will also implicitly call <link to="IMachine::saveSettings"/> 7021 to make all current machine settings permanent. 7022 7023 Deleting a snapshot has the following preconditions: 7024 7025 <ul> 7026 <li>Child media of all normal media of the discarded snapshot 7027 must be accessible (see <link to="IMedium::state"/>) for this 7028 operation to succeed. In particular, this means that all virtual 7029 machines, whose media are directly or indirectly based on the 7030 media of discarded snapshot, must be powered off.</li> 7031 7032 <li>You cannot delete the snapshot if a medium attached to it has 7033 more than once child medium (differencing images) because otherwise 7034 merging would be impossible. This might be the case if there is 7035 more than one child snapshot or differencing images were created 7036 for other reason (e.g. implicitly because of multiple machine 7037 attachments).</li> 7038 </ul> 7039 7040 7041 The virtual machine's <link to="IMachine::state">state</link> is changed to "DeletingSnapshot" 7042 while this operation is in progress. 7043 7068 7044 <note> 7069 7045 Merging medium contents can be very time and disk space … … 7072 7048 (head) snapshot on the branch, the operation will be rather 7073 7049 quick. 7074 </note>7075 <note>7076 Note that discarding the current snapshot7077 will implicitly call <link to="IMachine::saveSettings"/> to7078 make all current machine settings permanent.7079 7050 </note> 7080 7051 <result name="VBOX_E_INVALID_VM_STATE"> … … 8983 8954 using the <link to="#children"/> attribute. 8984 8955 8985 Note that the type of all differencing media is 8986 <link to="MediumType_Normal" />; all other values are meaningless for 8987 them. Base media may be of any type. 8956 Note that the type of all differencing media is "Normal"; all other 8957 values are meaningless for them. Base media may be of any type. 8988 8958 8989 8959 <h3>Creating hard disks</h3> … … 9426 9396 <desc> 9427 9397 Whether this differencing medium will be automatically reset each 9428 time a virtual machine it is attached to is powered up. 9398 time a virtual machine it is attached to is powered up. This 9399 attribute is automatically set to @c true for the last 9400 differencing image of an "immutable" medium (see 9401 <link to="MediumType" />). 9429 9402 9430 9403 See <link to="#reset"/> for more information about resetting … … 10164 10137 This operation will reset the differencing medium to its initial 10165 10138 state when it does not contain any sector data and any read operation is 10166 redirected to its parent medium. 10139 redirected to its parent medium. This automatically gets called 10140 during VM power-up for every medium whose <link to="#autoReset" /> 10141 attribute is @c true. 10167 10142 10168 10143 The medium will be write-locked for the duration of this operation (see
Note:
See TracChangeset
for help on using the changeset viewer.