Project

General

Profile

Feature #760 » 0002-librbd-Use-the-correct-namespace-for-string-and-buff.patch

Wido den Hollander, 02/03/2011 05:52 AM

View differences:

src/include/librbd.hpp
int open_pool(const char *pool_name, pool_t *pool);
int close_pool(pool_t pool);
int list(pool_t pool, std::vector<string>& names);
int list(pool_t pool, std::vector<std::string>& names);
int create(pool_t pool, const char *name, size_t size, int *order);
int remove(pool_t pool, const char *name);
int copy(pool_t src_pool, const char *srcname, pool_t dest_pool, const char *destname);
......
int set_snap(image_t image, const char *snap_name);
/* I/O */
int read(image_t image, off_t ofs, size_t len, bufferlist& bl);
int read(image_t image, off_t ofs, size_t len, librados::bufferlist& bl);
int read_iterate(image_t image, off_t ofs, size_t len,
int (*cb)(off_t, size_t, const char *, void *), void *arg);
int write(image_t image, off_t ofs, size_t len, bufferlist& bl);
int write(image_t image, off_t ofs, size_t len, librados::bufferlist& bl);
/* lower level access */
void get_rados_pools(pool_t pool, librados::pool_t *md_pool, librados::pool_t *data_pool);
(2-2/2)