fix issue 34

This commit is contained in:
Chris Lu 2013-07-19 19:37:10 -07:00
parent dd2245956f
commit ff1c04c486

View file

@ -146,9 +146,8 @@ func (s *Store) FreezeVolume(volumeIdString string) error {
return fmt.Errorf("Volume %s is already read-only", volumeIdString) return fmt.Errorf("Volume %s is already read-only", volumeIdString)
} }
return v.freeze() return v.freeze()
} else {
return fmt.Errorf("volume id %s is not found during freeze!", vid)
} }
return fmt.Errorf("volume id %s is not found during freeze!", vid)
} }
func (l *DiskLocation) loadExistingVolumes() { func (l *DiskLocation) loadExistingVolumes() {
if dirs, err := ioutil.ReadDir(l.directory); err == nil { if dirs, err := ioutil.ReadDir(l.directory); err == nil {