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);
39 bool access(
const std::string& path,
int mode)
throw (
DmException);
40 bool accessReplica(
const std::string& replica,
int mode)
throw (
DmException);
45 std::vector<Replica> getReplicas(
const std::string& path)
throw (
DmException);
49 void putDone(
const std::string& host,
const std::string& rfn,
50 const std::map<std::string, std::string>& params)
throw (
DmException);
52 void symlink(
const std::string& oldpath,
54 std::string readLink(
const std::string& path)
throw (
DmException);
56 void unlink(
const std::string& path)
throw (
DmException);
58 void create(
const std::string& path, mode_t mode)
throw (
DmException);
60 void makeDir (
const std::string& path, mode_t mode)
throw (
DmException);
61 void removeDir(
const std::string& path)
throw (
DmException);
63 void rename(
const std::string& oldPath,
66 mode_t umask(mode_t mask)
throw ();
68 void setMode (
const std::string& path, mode_t mode)
throw (
DmException);
69 void setOwner (
const std::string& path, uid_t newUid, gid_t newGid,
72 void setSize (
const std::string& path,
size_t newSize)
throw (
DmException);
74 void setAcl(
const std::string& path,
const Acl& acls)
throw (
DmException);
76 void utime(
const std::string& path,
const struct utimbuf* buf)
throw (
DmException);
78 std::string getComment(
const std::string& path)
throw (
DmException);
79 void setComment(
const std::string& path,
82 void setGuid(
const std::string& path,
85 void updateExtendedAttributes(
const std::string& path,
102 ExtendedStat getParent(
const std::string& path, std::string* parentPath,
118 void addFileSizeToParents(
const std::string &fname,
bool subtract)
throw (
DmException);
146 void configure(
const std::string&,
const std::string&)
throw (
DmException);
157 #endif // BUILTIN_CATALOG_H File/directory metadata.
Definition: inode.h:28
unsigned symLinkLimit_
Definition: Catalog.h:137
Definition: security.h:51
Plug-ins must implement a concrete factory to be instantiated.
Definition: catalog.h:216
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:87
Plug-ins must implement a concrete factory to be instantiated.
Definition: Catalog.h:141
CatalogInterface can only be instantiated through this class.
Definition: dmlite.h:42
Interface for Catalog (Namespaces).
Definition: catalog.h:29
ino_t cwd_
Definition: Catalog.h:133
bool updateATime_
Definition: Catalog.h:151
IDirectory * idir
Definition: Catalog.h:16
unsigned symLinkLimit_
Definition: Catalog.h:152
Helpful typedef for KeyValue containers.
Definition: extensible.h:20
bool updateATime_
Definition: Catalog.h:136
std::string cwdPath_
Definition: Catalog.h:132
mode_t umask_
Definition: Catalog.h:135
const SecurityContext * secCtx_
Definition: Catalog.h:130
Namespace for the dmlite C++ API.
Definition: authn.h:15
StackInstance * si_
Definition: Catalog.h:128
ExtendedStat dir
Definition: Catalog.h:18
Typedef for directories.
Definition: inode.h:25
Typedef for directories.
Definition: catalog.h:26