cvmfs/catalog_mgr_rw.cc
bool WritableCatalogManager::FindCatalog(const string &path,
                                         WritableCatalog **result)
{
  Catalog *best_fit =
    AbstractCatalogManager::FindCatalog(PathString(path.data(), path.length()));
  assert (best_fit != NULL);
  Catalog *catalog = NULL;
  bool retval = MountSubtree(PathString(path.data(), path.length()),
                             best_fit, &catalog);
  if (!retval)
    return false;

  bool found = LookupPath(path, kLookupSole, NULL);
  if (!found || !catalog->IsWritable())
    return false;

  *result = static_cast<WritableCatalog *>(catalog);
  return true;
}
/**
 * Tries to retrieve the catalog containing the given path
 * This method is just a wrapper around the FindCatalog method of
 * AbstractCatalogManager to provide a direct interface returning
 * WritableCatalog classes.
 * @param path the path to look for
 * @param result the retrieved catalog (as a pointer)
 * @return true if catalog was found, false otherwise
 */
Tries to retrieve the catalog containing the given path
This method is just a wrapper around the FindCatalog method of
AbstractCatalogManager to provide a direct interface returning
WritableCatalog classes.
@param path the path to look for
@param result the retrieved catalog (as a pointer)
@return true if catalog was found, false otherwise
Tries to retrieve the catalog containing the given path This method is just a wrapper around the FindCatalog method of AbstractCatalogManager to provide a direct interface returning WritableCatalog classes . @param path the path to look for @param result the retrieved catalog ( as a pointer ) @return true if catalog was found false otherwise
bool WritableCatalogManager::FindCatalog(const string &path,
                                         WritableCatalog **result)
{
  Catalog *best_fit =
    AbstractCatalogManager::FindCatalog(PathString(path.data(), path.length()));
  assert (best_fit != NULL);
  Catalog *catalog = NULL;
  bool retval = MountSubtree(PathString(path.data(), path.length()),
                             best_fit, &catalog);
  if (!retval)
    return false;
  bool found = LookupPath(path, kLookupSole, NULL);
  if (!found || !catalog->IsWritable())
    return false;
  *result = static_cast<WritableCatalog *>(catalog);
  return true;
}
bool WritableCatalogManager :: FindCatalog ( const string & path , WritableCatalog * * result ) { Catalog * best_fit = AbstractCatalogManager :: FindCatalog ( PathString ( path . data ( ) , path . length ( ) ) ) ; assert ( best_fit != NULL ) ; Catalog * catalog = NULL ; bool retval = MountSubtree ( PathString ( path . data ( ) , path . length ( ) ) , best_fit , & catalog ) ; if ( ! retval ) return false ; bool found = LookupPath ( path , kLookupSole , NULL ) ; if ( ! found || ! catalog -> IsWritable ( ) ) return false ; * result = static_cast < WritableCatalog * > ( catalog ) ; return true ; }
Tries to retrieve the catalog containing the given path
 This method is just a wrapper around the FindCatalog method of
 AbstractCatalogManager to provide a direct interface returning
 WritableCatalog classes.
Tries to retrieve the catalog containing the given path This method is just a wrapper around the FindCatalog method of AbstractCatalogManager to provide a direct interface returning WritableCatalog classes .