code: func (devices *DeviceSet) exportDeviceMetadata(hash string) (*deviceMetadata, error) {
  	info, err := devices.lookupDeviceWithLock(hash)
  	if err != nil {
  		return nil, err
  	}
  
  	info.lock.Lock()
  	defer info.lock.Unlock()
  
  	metadata := &deviceMetadata{info.DeviceID, info.Size, info.Name()}
  	return metadata, nil
  }
docs: // Status returns the current status of this deviceset