X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fcls%2Fcephfs%2Fcls_cephfs_client.h;fp=src%2Fceph%2Fsrc%2Fcls%2Fcephfs%2Fcls_cephfs_client.h;h=b028917d4d7b7a7dc679cac49883379502e4f153;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/cls/cephfs/cls_cephfs_client.h b/src/ceph/src/cls/cephfs/cls_cephfs_client.h new file mode 100644 index 0000000..b028917 --- /dev/null +++ b/src/ceph/src/cls/cephfs/cls_cephfs_client.h @@ -0,0 +1,35 @@ + +#include "mds/mdstypes.h" +#include "cls_cephfs.h" + +class AccumulateArgs; +namespace librados { + class IoCtx; +} + +class ClsCephFSClient +{ + public: + static int accumulate_inode_metadata( + librados::IoCtx &ctx, + inodeno_t inode_no, + const uint64_t obj_index, + const uint64_t obj_size, + const time_t mtime); + + static int fetch_inode_accumulate_result( + librados::IoCtx &ctx, + const std::string &oid, + inode_backtrace_t *backtrace, + file_layout_t *layout, + AccumulateResult *result); + + static int delete_inode_accumulate_result( + librados::IoCtx &ctx, + const std::string &oid); + + static void build_tag_filter( + const std::string &scrub_tag, + bufferlist *out_bl); +}; +