dmlite
0.6
|
#include <inode.h>
Public Member Functions | |
virtual | ~INode () |
Destructor. More... | |
virtual void | begin (void) throw (DmException) |
Start a transaction. More... | |
virtual void | commit (void) throw (DmException) |
Commit a transaction. More... | |
virtual void | rollback (void) throw (DmException) |
Rollback changes. More... | |
virtual ExtendedStat | create (const ExtendedStat &f) throw (DmException) |
virtual void | symlink (ino_t inode, const std::string &link) throw (DmException) |
virtual void | unlink (ino_t inode) throw (DmException) |
virtual void | move (ino_t inode, ino_t dest) throw (DmException) |
virtual void | rename (ino_t inode, const std::string &name) throw (DmException) |
virtual ExtendedStat | extendedStat (ino_t inode) throw (DmException) |
virtual ExtendedStat | extendedStat (ino_t parent, const std::string &name) throw (DmException) |
virtual ExtendedStat | extendedStat (const std::string &guid) throw (DmException) |
virtual SymLink | readLink (ino_t inode) throw (DmException) |
virtual void | addReplica (const Replica &replica) throw (DmException) |
virtual void | deleteReplica (const Replica &replica) throw (DmException) |
virtual Replica | getReplica (int64_t rid) throw (DmException) |
virtual Replica | getReplica (const std::string &rfn) throw (DmException) |
virtual void | updateReplica (const Replica &replica) throw (DmException) |
virtual std::vector< Replica > | getReplicas (ino_t inode) throw (DmException) |
virtual void | utime (ino_t inode, const struct utimbuf *buf) throw (DmException) |
virtual void | setMode (ino_t inode, uid_t uid, gid_t gid, mode_t mode, const Acl &acl) throw (DmException) |
virtual void | setSize (ino_t inode, size_t size) throw (DmException) |
virtual void | setChecksum (ino_t inode, const std::string &csumtype, const std::string &csumvalue) throw (DmException) |
virtual std::string | getComment (ino_t inode) throw (DmException) |
virtual void | setComment (ino_t inode, const std::string &comment) throw (DmException) |
virtual void | deleteComment (ino_t inode) throw (DmException) |
virtual void | setGuid (ino_t inode, const std::string &guid) throw (DmException) |
virtual void | updateExtendedAttributes (ino_t inode, const Extensible &attr) throw (DmException) |
virtual IDirectory * | openDir (ino_t inode) throw (DmException) |
virtual void | closeDir (IDirectory *dir) throw (DmException) |
virtual ExtendedStat * | readDirx (IDirectory *dir) throw (DmException) |
virtual struct dirent * | readDir (IDirectory *dir) throw (DmException) |
![]() | |
virtual | ~BaseInterface () |
Virtual destructor. More... | |
virtual std::string | getImplId (void) const =0 throw () |
String ID of the implementation. More... | |
Additional Inherited Members | |
![]() | |
virtual void | setStackInstance (StackInstance *si) throw (DmException) |
virtual void | setSecurityContext (const SecurityContext *ctx) throw (DmException) |
Set the security context. More... | |
![]() | |
static void | setStackInstance (BaseInterface *i, StackInstance *si) throw (DmException) |
These method allows plugins to call other plugins setStackInstance and setSecurityContext. More... | |
static void | setSecurityContext (BaseInterface *i, const SecurityContext *ctx) throw (DmException) |
Low-level interface. Based on i-nodes.
|
virtual |
Destructor.
|
virtual |
Add a new replica for a file.
replica | Stores the data that is going to be added. fileid must point to the id of the logical file in the catalog. |
|
virtual |
Start a transaction.
|
virtual |
Close a directory.
dir | The opaque structure to close. |
|
virtual |
Commit a transaction.
|
virtual |
Create a new file or directory
f | The file that will be inserted. Its fields must be initialized. |
|
virtual |
Remove the associated comment.
inode | The file whose comment will be removed. |
|
virtual |
Delete a replica.
replica | The replica to remove. |
|
virtual |
Do an extended stat of en entry using its inode.
inode | The inode of the file. |
|
virtual |
Do an extended stat of an entry using the parent inode and the name.
parent | The parent inode. |
name | The file or directory name. |
|
virtual |
Do an extended stat using the GUID.
guid | The file GUID. |
|
virtual |
Get the comment associated to a file.
inode | The inode of the file. |
|
virtual |
Get a replica using the replica ID.
rid | The replica ID. |
|
virtual |
Get a replica.
rfn | The replica to retrieve. |
|
virtual |
Get replicas for a file.
inode | The entry inode. |
|
virtual |
Move a file between two directories.
inode | File to be moved. |
dest | The new parent. |
|
virtual |
Open a directory.
inode | The inode of the directory. |
|
virtual |
Read the next entry.
dir | The opaque structure of a directory. |
|
virtual |
Read the next entry.
dir | The opaque structure of a directory. |
|
virtual |
Get the symlink associated with a inode.
inode | The inode of the file. |
|
virtual |
Change the name of a file.
inode | The inode of the file. |
name | New name. |
|
virtual |
Rollback changes.
|
virtual |
Set the checksum of a file.
inode | The inode of the file. |
csumtype | The checksum type. |
csumvalue | The checksum value. |
|
virtual |
Set the comment associated to a file.
inode | The inode of the file. |
comment | The new comment. |
|
virtual |
Set the GUID of a file.
inode | The inode of the file. |
guid | The new GUID. |
|
virtual |
Set the mode of a file.
inode | The inode of the file. |
uid | The owner. If -1, not changed. |
gid | The group. If -1, not changed. |
mode | The new mode. S_IFMT bits are cleared, and kept as they are in the DB. |
acl | The new ACL. If empty, not changed. |
|
virtual |
Set the size of a file.
inode | The inode of the file. |
size | The new size. |
|
virtual |
Create or modify the file inode to point to another file.
inode | The file to modify. |
link | The new symbolic link. |
|
virtual |
Remove a file or directory. It will fail if it is a directory and it is not empty, or if it a file and it has replicas.
inode | The inode of the file. |
|
virtual |
Update extended metadata on the catalog.
attr | The extended attributes struct. |
|
virtual |
Modify a replica.
replica | The replica data. |
|
virtual |
Change access and/or modification time.
inode | The inode of the file. |
buf | A struct holding the new times. |