mount.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:treadmill 作者: Morgan-Stanley 项目源码 文件源码
def mount(source, target, fs_type, mnt_flags=()):
    """Mount ``source`` on ``target`` using filesystem type ``fs_type`` and
    mount flags ``mnt_flags``.

    NOTE: Mount data argument is not supported.
    """
    res = _MOUNT(source, target, fs_type, mnt_flags, 0)
    if res < 0:
        errno = ctypes.get_errno()
        raise OSError(
            errno, os.strerror(errno),
            'mount(%r, %r, %r, %r)' % (source, target, fs_type, mnt_flags)
        )

    return res


# int umount(const char *target);
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号