private Boolean validQuotaDirectoryPath(String volName,String quotaDirName){
  if (volName == null && quotaDirName == null) {
    _log.info("Invalid volume name and quota directory name ");
    return false;
  }
 else {
    if (quotaDirName.length() > QUOTA_DIR_MAX_NAME) {
      _log.error("quota directory name is too long {}, maximum {} chars",quotaDirName.length(),QUOTA_DIR_MAX_NAME);
      return false;
    }
    String qtreePath=VOL_ROOT + volName + "/"+ quotaDirName;
    if (qtreePath.length() > QUOTA_DIR_MAX_PATH) {
      _log.error("quota directory path is too long {}, maximum {} chars",qtreePath.length(),QUOTA_DIR_MAX_PATH);
      return false;
    }
  }
  return true;
}

private Boolean validQuotaDirectoryPath ( String volName , String quotaDirName ) { if ( volName == null && quotaDirName == null ) { _log . info ( "Invalid volume name and quota directory name " ) ; return false ; } else { if ( quotaDirName . length ( ) > QUOTA_DIR_MAX_NAME ) { _log . error ( "quota directory name is too long {}, maximum {} chars" , quotaDirName . length ( ) , QUOTA_DIR_MAX_NAME ) ; return false ; } String qtreePath = VOL_ROOT + volName + "/" + quotaDirName ; if ( qtreePath . length ( ) > QUOTA_DIR_MAX_PATH ) { _log . error ( "quota directory path is too long {}, maximum {} chars" , qtreePath . length ( ) , QUOTA_DIR_MAX_PATH ) ; return false ; } } return true ; }
return true if qtree name and its path in valid length , otherwise false .
