|
dmlite
0.6
|
#include <inode.h>


Public Member Functions | |
| virtual | ~INode () |
| Destructor. More... | |
| virtual void | begin (void) |
| Start a transaction. More... | |
| virtual void | commit (void) |
| Commit a transaction. More... | |
| virtual void | rollback (void) |
| Rollback changes. More... | |
| virtual ExtendedStat | create (const ExtendedStat &f) |
| virtual void | symlink (ino_t inode, const std::string &link) |
| virtual void | unlink (ino_t inode) |
| virtual void | move (ino_t inode, ino_t dest) |
| virtual void | rename (ino_t inode, const std::string &name) |
| virtual ExtendedStat | extendedStat (ino_t inode) |
| virtual DmStatus | extendedStat (ExtendedStat &xstat, ino_t inode) |
| virtual ExtendedStat | extendedStat (ino_t parent, const std::string &name) |
| virtual DmStatus | extendedStat (ExtendedStat &xstat, ino_t parent, const std::string &name) |
| virtual ExtendedStat | extendedStat (const std::string &guid) |
| virtual SymLink | readLink (ino_t inode) |
| virtual void | addReplica (const Replica &replica) |
| virtual void | deleteReplica (const Replica &replica) |
| virtual Replica | getReplica (int64_t rid) |
| virtual Replica | getReplica (const std::string &rfn) |
| virtual void | updateReplica (const Replica &replica) |
| virtual std::vector< Replica > | getReplicas (ino_t inode) |
| virtual void | utime (ino_t inode, const struct utimbuf *buf) |
| virtual void | setMode (ino_t inode, uid_t uid, gid_t gid, mode_t mode, const Acl &acl) |
| virtual void | setSize (ino_t inode, size_t size) |
| virtual void | setChecksum (ino_t inode, const std::string &csumtype, const std::string &csumvalue) |
| virtual std::string | getComment (ino_t inode) |
| virtual void | setComment (ino_t inode, const std::string &comment) |
| virtual void | deleteComment (ino_t inode) |
| virtual void | setGuid (ino_t inode, const std::string &guid) |
| virtual void | updateExtendedAttributes (ino_t inode, const Extensible &attr) |
| virtual IDirectory * | openDir (ino_t inode) |
| virtual void | closeDir (IDirectory *dir) |
| virtual ExtendedStat * | readDirx (IDirectory *dir) |
| virtual struct dirent * | readDir (IDirectory *dir) |
Public Member Functions inherited from dmlite::BaseInterface | |
| virtual | ~BaseInterface () |
| Virtual destructor. More... | |
| virtual std::string | getImplId (void) const =0 throw () |
| String ID of the implementation. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from dmlite::BaseInterface | |
| virtual void | setStackInstance (StackInstance *si) |
| virtual void | setSecurityContext (const SecurityContext *ctx) |
| Set the security context. More... | |
Static Protected Member Functions inherited from dmlite::BaseInterface | |
| static void | setStackInstance (BaseInterface *i, StackInstance *si) |
| These method allows plugins to call other plugins setStackInstance and setSecurityContext. More... | |
| static void | setSecurityContext (BaseInterface *i, const SecurityContext *ctx) |
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 an entry using its inode.
| inode | The inode of the file. |
|
virtual |
Do an extended stat of an entry using its inode, exception-safe version.
| xstat | The extended status of the file. |
| 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 of an entry using the parent inode and the name, exception-safe version.
| xstat | The extended status of the file. |
| 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. |
1.8.15