XrdCephOssDir Class Reference
#include <XrdCephOssDir.hh>
List of all members.
Detailed Description
This class implements XrdOssDF interface for usage with a CEPH storage. It has a very restricted usage as the only valid path for opendir is '/'. The reason is that ceph is an object store where you can only list all objects, and that has no notion of hierarchy
This plugin is able to use any pool of ceph with any userId. There are several ways to provide the pool and userId to be used for a given operation. Here is the ordered list of possibilities. First one defined wins :
- the path can be prepended with userId and pool. Syntax is : [[userId@]pool:]<actual path>="">
- the XrdOucEnv parameter, when existing, can have 'cephUserId' and/or 'cephPool' entries
- the ofs.osslib directive can provide an argument with format : [userID@]pool
- default are 'admin' and 'default' for userId and pool respectively
Note that the definition of a default via the ofs.osslib directive may clash with one used in a ofs.xattrlib directive. In case both directives have a default and they are different, the behavior is not defined. In case one of the two only has a default, it will be applied for both plugins.
Constructor & Destructor Documentation
XrdCephOssDir::XrdCephOssDir |
( |
XrdCephOss * |
cephoss |
) |
|
virtual XrdCephOssDir::~XrdCephOssDir |
( |
|
) |
[inline, virtual] |
Member Function Documentation
virtual int XrdCephOssDir::Close |
( |
long long * |
retsz = 0 |
) |
[virtual] |
Close a directory or file.
- Parameters:
-
| retsz | If not nil, where the size of the file is to be returned. |
- Returns:
- 0 upon success or -errno or -osserr (see XrdOssError.hh).
Implements XrdOssDF.
virtual int XrdCephOssDir::Opendir |
( |
const char * |
path, |
|
|
XrdOucEnv & |
env | |
|
) |
| | [virtual] |
Open a directory.
- Parameters:
-
| path | - Pointer to the path of the directory to be opened. |
| env | - Reference to environmental information. |
- Returns:
- 0 upon success or -errno or -osserr (see XrdOssError.hh).
Reimplemented from XrdOssDF.
virtual int XrdCephOssDir::Readdir |
( |
char * |
buff, |
|
|
int |
blen | |
|
) |
| | [virtual] |
Get the next directory entry.
- Parameters:
-
| buff | - Pointer to buffer where a null terminated string of the entry name is to be returned. If no more entries exist, a null string is returned. |
| blen | - Length of the buffer. |
- Returns:
- 0 upon success or -errno or -osserr (see XrdOssError.hh).
Reimplemented from XrdOssDF.
Member Data Documentation
The documentation for this class was generated from the following file: