Feature Abort Save As
Make save_as job abortable.
qcow2-snapshot image handled by Process.Popen (qemu-img) qcow2-norm handled by Threded shutil copy iso-s simlink is not abortable (fast operation)
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
251 def merge(self, task, new_disk): 250 252 """ Merging a new_disk from the actual disk and its base. 251 253 """ 254 from time import sleep 255 import threading 256 257 class AbortException(Exception): 258 pass 259 if task.is_aborted(): 260 raise AbortException() 252 261 # Check if file already exists 253 262 if os.path.isfile(new_disk.get_path()): 254 263 raise Exception('File already exists: %s' % self.get_path()) 255 264 if self.format == "iso": 256 265 os.symlink(self.get_path(), new_disk.get_path()) 257 266 elif self.base_name: -
Owner
the next two blocks could be separate functions
-
-
Owner
+1