2 * Ceph - scalable distributed file system
4 * Copyright (C) 2014 Inktank Storage, Inc.
6 * This is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License version 2.1, as published by the Free Software
9 * Foundation. See file COPYING.
16 #include "rados/librados.h"
24 int krbd_create_from_context(rados_config_t cct, struct krbd_ctx **pctx);
25 void krbd_destroy(struct krbd_ctx *ctx);
27 int krbd_map(struct krbd_ctx *ctx, const char *pool, const char *image,
28 const char *snap, const char *options, char **pdevnode);
30 int krbd_unmap(struct krbd_ctx *ctx, const char *devnode,
32 int krbd_unmap_by_spec(struct krbd_ctx *ctx, const char *pool,
33 const char *image, const char *snap,
46 int krbd_showmapped(struct krbd_ctx *ctx, ceph::Formatter *f);
48 #endif /* __cplusplus */
50 #endif /* CEPH_KRBD_H */