示例#1
0
文件: blockSD.py 项目: oVirtorg/vdsm
def _createVMSfs(dev):
    """
    Create a special file system to store VM data
    """
    cmd = [constants.EXT_MKFS, "-q", "-j", "-E", "nodiscard", dev]
    rc = misc.execCmd(cmd, sudo=True, deathSignal=signal.SIGKILL)[0]
    if rc != 0:
        raise se.MkfsError(dev)
示例#2
0
def _createVMSfs(dev):
    """
    Create a special file system to store VM data
    """
    cmd = [constants.EXT_MKFS, "-q", "-j", "-K", dev]
    rc = misc.execCmd(cmd)[0]
    if rc != 0:
        raise se.MkfsError(dev)