code: private File calculateFsRoot(File repositoryLocation) {
  		// Find first existing directory among ancestors
  		while (!AccessHelper.isDirectory(repositoryLocation)) {
  			repositoryLocation = repositoryLocation.getParentFile();
  		}
  		if (repositoryLocation.getName().equals(LogRepositoryBaseImpl.DEFAULT_LOCATION) ||
  				repositoryLocation.getName().equals(LogRepositoryBaseImpl.TRACE_LOCATION)) {
  			File parentFile = repositoryLocation.getParentFile() ;
  			if (AccessHelper.getTotalSpace(repositoryLocation) == AccessHelper.getTotalSpace(parentFile)) {
  				long thisFsSpace = AccessHelper.getFreeSpace(repositoryLocation) ;
  				long parentFsSpace = AccessHelper.getFreeSpace(parentFile) ;
  				// If it ends in tracedata or logdata and parent directory and this directory are highly similar (within 5%)
  				// in free space ... assume we can cut off the tracedata or logdata because on same fs. This means that
  				// in the case where the logs are the same fs ... we will consider combined needs.
  				if (thisFsSpace > 0 && parentFsSpace > 0 && thisFsSpace > (long)(parentFsSpace * .95) &&
  						thisFsSpace < (long)(parentFsSpace * 1.05)) {
  					repositoryLocation = parentFile ;
  				}
  			}
  		}
  		return repositoryLocation ;
  	}
docs: determine if the repository location is fine as is, or if it may be shortened. Shortening is hpel specific in
  that we look for logdata or tracedata as the suffix and, if it is there AND the parent directory is of about
  the same size, then we keep the parent directory.  This allows us to combine needs of different repositories
  that may be in the same fileSystem.  ie: If logdata, tracedata, and textLog all need just 20 meg each and they
  are on the same fs which has 50 meg left, the only way we know that this is a problem is if we consider the
  combined need.  By modifying the repositoryLoc, this should work for the vast majority of cases.
  @param repositoryLocation incoming repository location
  @return same or modified repository location depending on file system information