code: func (p *Pod) ToGarbage() error {
  	if !p.isAbortedPrepare && !p.isPrepared {
  		return fmt.Errorf("bug: only failed prepare or prepared pods may transition to garbage")
  	}
  
  	if err := os.Rename(p.Path(), p.garbagePath()); err != nil {
  		return err
  	}
  
  	df, err := os.Open(garbageDir(p.dataDir))
  	if err != nil {
  		return err
  	}
  	defer df.Close()
  	if err := df.Sync(); err != nil {
  		return err
  	}
  
  	p.isAbortedPrepare = false
  	p.isPrepared = false
  	p.isGarbage = true
  
  	return nil
  }
docs: // ToGarbage transitions a pod from abortedPrepared -> garbage or prepared -> garbage
  // This method refreshes the pod state.