code: func (ps *Store) GetAllByCap(capability string) ([]plugingetter.CompatPlugin, error) {
  	result := make([]plugingetter.CompatPlugin, 0, 1)
  
  	/* Daemon start always calls plugin.Init thereby initializing a store.
  	 * So store on experimental builds can never be nil, even while
  	 * handling legacy plugins. However, there are legacy plugin unit
  	 * tests where the volume subsystem directly talks with the plugin,
  	 * bypassing the daemon. For such tests, this check is necessary.
  	 */
  	if ps != nil {
  		ps.RLock()
  		result = ps.getAllByCap(capability)
  		ps.RUnlock()
  	}
  
  	// Lookup with legacy model
  	if allowV1PluginsFallback {
  		pl, err := plugins.GetAll(capability)
  		if err != nil {
  			return nil, errors.Wrap(errdefs.System(err), "legacy plugin")
  		}
  		for _, p := range pl {
  			result = append(result, p)
  		}
  	}
  	return result, nil
  }
docs: // GetAllByCap returns a list of enabled plugins matching the given capability.