def _clean_up(self): try: delete_lio_device(self.loop_dev) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file)
def _clean_up(self): try: BlockDev.dm_remove("testMap") except: pass try: delete_lio_device(self.loop_dev) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file)
def _clean_up(self): try: utils.delete_lio_device(self.loop_dev) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file) try: utils.delete_lio_device(self.loop_dev2) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file2) try: utils.umount(self.mount_dir) except: pass
def _clean_up(self): if self.bcache_dev: try: BlockDev.kbd_bcache_destroy(self.bcache_dev) except: pass try: delete_lio_device(self.loop_dev) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file) try: delete_lio_device(self.loop_dev2) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file2)
def _clean_up(self): try: BlockDev.crypto_luks_close("libblockdevTestLUKS") except: pass try: delete_lio_device(self.loop_dev) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file) try: delete_lio_device(self.loop_dev2) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file2) os.unlink(self.keyfile)
def _clean_up(self): try: BlockDev.lvm_pvremove(self.loop_dev, None) except: pass try: BlockDev.lvm_pvremove(self.loop_dev2, None) except: pass try: delete_lio_device(self.loop_dev) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file) try: delete_lio_device(self.loop_dev2) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file2)
def _clean_up(self): try: BlockDev.md_deactivate("bd_test_md") except: pass try: BlockDev.md_deactivate(BlockDev.md_node_from_name("bd_test_md")) except: pass try: BlockDev.md_destroy(self.loop_dev) except: pass try: BlockDev.md_destroy(self.loop_dev2) except: pass try: BlockDev.md_destroy(self.loop_dev3) except: pass try: BlockDev.md_deactivate("bd_test_md") except: pass try: BlockDev.md_deactivate(BlockDev.md_node_from_name("bd_test_md")) except: pass try: delete_lio_device(self.loop_dev) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file) try: delete_lio_device(self.loop_dev2) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file2) try: delete_lio_device(self.loop_dev3) except RuntimeError: # just move on, we can do no better here pass os.unlink(self.dev_file3)