示例#1
0
文件: mount.go 项目: gnawux/hyper
func UmountExistingVolume(fstype, target, sharedDir string) error {
	if fstype == "dir" {
		return storage.UmountVFSVolume(target, sharedDir)
	}
	if !path.IsAbs(target) {
		return nil
	}
	return dm.UnmapVolume(target)
}
示例#2
0
文件: storage.go 项目: juito/hyper
func CleanupExistingVolume(fstype, filepath, sharedDir string) error {
	if fstype == "dir" {
		return storage.UmountVFSVolume(filepath, sharedDir)
	}
	return dm.UnmapVolume(filepath)
}