hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/ksm/KeySpaceManager.java
@Override
  public boolean checkVolumeAccess(String volume, OzoneAclInfo userAcl)
      throws IOException {
    try {
      metrics.incNumVolumeCheckAccesses();
      return volumeManager.checkVolumeAccess(volume, userAcl);
    } catch (Exception ex) {
      metrics.incNumVolumeCheckAccessFails();
      throw ex;
    }
  }
/**
   * Checks if the specified user can access this volume.
   *
   * @param volume - volume
   * @param userAcl - user acls which needs to be checked for access
   * @return true if the user has required access for the volume,
   *         false otherwise
   * @throws IOException
   */
Checks if the specified user can access this volume.
@param volume - volume
@param userAcl - user acls which needs to be checked for access
@return true if the user has required access for the volume,
false otherwise
@throws IOException
Checks if the specified user can access this volume . @param volume - volume @param userAcl - user acls which needs to be checked for access @return true if the user has required access for the volume false otherwise @throws IOException
@Override
  public boolean checkVolumeAccess(String volume, OzoneAclInfo userAcl)
      throws IOException {
    try {
      metrics.incNumVolumeCheckAccesses();
      return volumeManager.checkVolumeAccess(volume, userAcl);
    } catch (Exception ex) {
      metrics.incNumVolumeCheckAccessFails();
      throw ex;
    }
  }
@ Override public boolean checkVolumeAccess ( String volume , OzoneAclInfo userAcl ) throws IOException { try { metrics . incNumVolumeCheckAccesses ( ) ; return volumeManager . checkVolumeAccess ( volume , userAcl ) ; } catch ( Exception ex ) { metrics . incNumVolumeCheckAccessFails ( ) ; throw ex ; } }
Checks if the specified user can access this volume.
Checks if the specified user can access this volume .