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);
评论列表
文章目录