示例#1
0
def umount_filesystem(target_dir, lazy=False):
    """umount filesystem on target directory.
    """
    if lazy:
        return mount.unmount(target=target_dir, mnt_flags=(mount.MNT_DETACH, ))
    else:
        return mount.unmount(target=target_dir)
示例#2
0
def umount_filesystem(target_dir):
    """umount filesystem on target directory.
    """
    return mount.unmount(target=target_dir)