def zfs_unmount(self, target):
cmd = '/sbin/zfs unmount {}'.format(target)
logger.debug('Unmounting {}'.format(target))
logger.debug('Executing: {}'.format(cmd))
if local(cmd).return_code != 0:
raise SnapshotException('Failed to unmount filesystem')
评论列表
文章目录