5 #ifndef BUILTIN_CATALOG_H 6 #define BUILTIN_CATALOG_H 26 std::string getImplId(
void)
const throw();
32 void changeDir (
const std::string&)
throw (
DmException);
33 std::string getWorkingDir (
void)
throw (
DmException);
36 const std::string& path,
45 bool access(
const std::string& path,
int mode)
throw (
DmException);
46 bool accessReplica(
const std::string& replica,
int mode)
throw (
DmException);
51 std::vector<Replica> getReplicas(
const std::string& path)
throw (
DmException);
55 void putDone(
const std::string& host,
const std::string& rfn,
56 const std::map<std::string, std::string>& params)
throw (
DmException);
58 void symlink(
const std::string& oldpath,
60 std::string readLink(
const std::string& path)
throw (
DmException);
62 void unlink(
const std::string& path)
throw (
DmException);
64 void create(
const std::string& path, mode_t mode)
throw (
DmException);
66 void makeDir (
const std::string& path, mode_t mode)
throw (
DmException);
67 void removeDir(
const std::string& path)
throw (
DmException);
69 void rename(
const std::string& oldPath,
72 mode_t umask(mode_t mask)
throw ();
74 void setMode (
const std::string& path, mode_t mode)
throw (
DmException);
75 void setOwner (
const std::string& path, uid_t newUid, gid_t newGid,
78 void setSize (
const std::string& path,
size_t newSize)
throw (
DmException);
80 void setAcl(
const std::string& path,
const Acl& acls)
throw (
DmException);
82 void utime(
const std::string& path,
const struct utimbuf* buf)
throw (
DmException);
84 std::string getComment(
const std::string& path)
throw (
DmException);
85 void setComment(
const std::string& path,
88 void setGuid(
const std::string& path,
91 void updateExtendedAttributes(
const std::string& path,
108 ExtendedStat getParent(
const std::string& path, std::string* parentPath,
124 void addFileSizeToParents(
const std::string &fname,
bool subtract)
throw (
DmException);
152 void configure(
const std::string&,
const std::string&)
throw (
DmException);
163 #endif // BUILTIN_CATALOG_H File/directory metadata.
Definition: inode.h:29
unsigned symLinkLimit_
Definition: Catalog.h:143
Definition: security.h:51
Plug-ins must implement a concrete factory to be instantiated.
Definition: catalog.h:237
virtual ~BuiltInDir()
Definition: Catalog.h:16
Security context. To be created by the Authn.
Definition: authn.h:64
Represent the complete location of a file.
Definition: pooldriver.h:42
Base exception class.
Definition: exceptions.h:17
File replica metadata.
Definition: inode.h:70
Plug-ins must implement a concrete factory to be instantiated.
Definition: Catalog.h:147
CatalogInterface can only be instantiated through this class.
Definition: dmlite.h:42
Interface for Catalog (Namespaces).
Definition: catalog.h:30
ino_t cwd_
Definition: Catalog.h:139
bool updateATime_
Definition: Catalog.h:157
IDirectory * idir
Definition: Catalog.h:16
unsigned symLinkLimit_
Definition: Catalog.h:158
Helpful typedef for KeyValue containers.
Definition: extensible.h:20
bool updateATime_
Definition: Catalog.h:142
std::string cwdPath_
Definition: Catalog.h:138
mode_t umask_
Definition: Catalog.h:141
const SecurityContext * secCtx_
Definition: Catalog.h:136
Namespace for the dmlite C++ API.
Definition: authn.h:15
StackInstance * si_
Definition: Catalog.h:134
ExtendedStat dir
Definition: Catalog.h:18
Typedef for directories.
Definition: inode.h:26
Typedef for directories.
Definition: catalog.h:27