/usr/include/rados/rados_types.hpp is in librados-dev 0.80.7-2+deb8u2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #ifndef CEPH_RADOS_TYPES_HPP
#define CEPH_RADOS_TYPES_HPP
#include <utility>
#include <vector>
#include <stdint.h>
namespace librados {
typedef uint64_t snap_t;
enum {
SNAP_HEAD = (uint64_t)(-2),
SNAP_DIR = (uint64_t)(-1)
};
struct clone_info_t {
snap_t cloneid;
std::vector<snap_t> snaps; // ascending
std::vector< std::pair<uint64_t,uint64_t> > overlap; // with next newest
uint64_t size;
clone_info_t() : cloneid(0), size(0) {}
};
struct snap_set_t {
std::vector<clone_info_t> clones; // ascending
snap_t seq; // newest snapid seen by the object
snap_set_t() : seq(0) {}
};
}
#endif
|