summaryrefslogtreecommitdiffstats
path: root/src/libradosstriper
diff options
context:
space:
mode:
authorWei Wang <lightmelodies@outlook.com>2022-06-23 02:05:02 +0200
committerWei Wang <lightmelodies@outlook.com>2022-06-25 01:45:15 +0200
commitb0b4c91e449198a73e76f9c24d65db973d49197d (patch)
tree12ada0654616bcdd545cbd51595d38ef9bc64aeb /src/libradosstriper
parentMerge pull request #46840 from ceph/fix-backport2 (diff)
downloadceph-b0b4c91e449198a73e76f9c24d65db973d49197d.tar.xz
ceph-b0b4c91e449198a73e76f9c24d65db973d49197d.zip
librados: export stat2 in C API
Signed-off-by: Wei Wang <lightmelodies@outlook.com>
Diffstat (limited to 'src/libradosstriper')
-rw-r--r--src/libradosstriper/libradosstriper.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libradosstriper/libradosstriper.cc b/src/libradosstriper/libradosstriper.cc
index e98dfc17935..86bb4d9d4ac 100644
--- a/src/libradosstriper/libradosstriper.cc
+++ b/src/libradosstriper/libradosstriper.cc
@@ -532,6 +532,15 @@ extern "C" int rados_striper_stat(rados_striper_t striper,
return impl->stat(soid, psize, pmtime);
}
+extern "C" int rados_striper_stat2(rados_striper_t striper,
+ const char* soid,
+ uint64_t *psize,
+ struct timespec *pmtime)
+{
+ libradosstriper::RadosStriperImpl *impl = (libradosstriper::RadosStriperImpl *)striper;
+ return impl->stat2(soid, psize, pmtime);
+}
+
extern "C" int rados_striper_multi_aio_create_completion(void *cb_arg,
rados_callback_t cb_complete,
rados_callback_t cb_safe,
@@ -667,3 +676,13 @@ extern "C" int rados_striper_aio_stat(rados_striper_t striper,
libradosstriper::RadosStriperImpl *impl = (libradosstriper::RadosStriperImpl *)striper;
return impl->aio_stat(soid, (librados::AioCompletionImpl*)completion, psize, pmtime);
}
+
+extern "C" int rados_striper_aio_stat2(rados_striper_t striper,
+ const char* soid,
+ rados_completion_t completion,
+ uint64_t *psize,
+ struct timespec *pmtime)
+{
+ libradosstriper::RadosStriperImpl *impl = (libradosstriper::RadosStriperImpl *)striper;
+ return impl->aio_stat2(soid, (librados::AioCompletionImpl*)completion, psize, pmtime);
+}