示例#1
0
文件: daemon.go 项目: Oliverlyn/hyper
// If the stop is 1, we do not delete the pool data. Or just delete it.
func (daemon *Daemon) CleanVolume(stop int) error {
	if daemon.Storage.StorageType == "devicemapper" {
		if stop == 0 {
			return dm.DMCleanup(daemon.Storage.DmPoolData)
		}
	}
	return nil
}
示例#2
0
文件: storage.go 项目: m1911/hyper
func (dms *DevMapperStorage) CleanUp() error {
	return dm.DMCleanup(dms.DmPoolData)
}