for moved volumes, redirect with code 501

This commit is contained in:
Chris Lu
2012-09-20 02:47:32 -07:00
parent a1bc529db6
commit 462f2ed958
4 changed files with 56 additions and 4 deletions

View File

@@ -136,6 +136,11 @@ func (s *Store) Read(i VolumeId, n *Needle) (int, error) {
return 0, errors.New("Not Found")
}
func (s *Store) HasVolume(i VolumeId) bool {
_, ok := s.volumes[i]
return ok
}
type VolumeLocations struct {
Vid VolumeId
Locations []string