Example #1
0
// 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
}
Example #2
0
func (dms *DevMapperStorage) CleanUp() error {
	return dm.DMCleanup(dms.DmPoolData)
}