-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextent_client.h
35 lines (26 loc) · 1007 Bytes
/
extent_client.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// extent client interface.
#ifndef extent_client_h
#define extent_client_h
#include <string>
#include "extent_protocol.h"
#include "rpc.h"
#include <sys/types.h>
class extent_client {
private:
rpcc *cl;
extent_protocol::userid_t userid;
std::string userkey;
public:
extent_client(std::string dst, extent_protocol::userid_t, std::string);
extent_protocol::status get(extent_protocol::extentid_t eid,
std::string &buf);
extent_protocol::status getattr(extent_protocol::extentid_t eid,
extent_protocol::attr &a);
extent_protocol::status put(extent_protocol::extentid_t eid, std::string buf);
extent_protocol::status remove(extent_protocol::extentid_t eid);
extent_protocol::status setattr(extent_protocol::extentid_t eid,
extent_protocol::attr a);
extent_protocol::status groupadd(extent_protocol::groupid_t gid);
extent_protocol::status useradd(extent_protocol::userid_t uid, extent_protocol::groupid_t gid);
};
#endif