 |
ewmscp
..
|
Go to the documentation of this file. 1 #ifndef __gpfsFcntlHandler_h_
2 #define __gpfsFcntlHandler_h_
3 #include <gpfs_fcntl.h>
11 template <
typename T> T& element(
int index) {
12 size_t offset =
sizeof(
header);
13 for (
int i = 0; i < index; i++) {
18 template <
typename T> T& add(
int structType) {
20 item->structLen =
sizeof(T);
21 item->structType = structType;
22 header.totalLength += item->structLen;
27 void call(
int fd,
const std::string& path);
45 return buffer.acl.acl_nace;
48 const gpfs_ace_v4_t*
begin()
const;
49 const gpfs_ace_v4_t*
end()
const;
50 gpfs_ace_v4_t*
begin();
52 void get(
int fd,
const std::string& path);
53 void set(
int fd,
const std::string& path);
56 const gpfs_ace_v4_t& rhs) {
57 return lhs.aceType == rhs.aceType &&
58 lhs.aceFlags == rhs.aceFlags &&
59 lhs.aceIFlags == rhs.aceIFlags &&
60 lhs.aceMask == rhs.aceMask &&
61 lhs.aceWho == rhs.aceWho;
bool operator==(const gpfs_ace_v4_t &lhs, const gpfs_ace_v4_t &rhs)
const gpfs_ace_v4_t * begin() const
union gpfs_acl_handler::@3 buffer
class for handling non-opaque gpfs acls
char justTheSpace[0x10000]
class for handling gpfs_fcnt calls with their very special parameter handling
void get(int fd, const std::string &path)
union gpfs_fcntl_handler::@2 buffer
void set(int fd, const std::string &path)
void call(int fd, const std::string &path)
gpfs_acl_handler()
creates struct for getAcl
char justCharsProvidingSpace[GPFS_MAX_FCNTL_LENGTH]
const gpfs_ace_v4_t * end() const