]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-mirror: typedef ceph_mount_info as MountRef shared pointer
authorVenky Shankar <vshankar@redhat.com>
Wed, 30 Sep 2020 08:50:32 +0000 (04:50 -0400)
committerVenky Shankar <vshankar@redhat.com>
Tue, 12 Jan 2021 10:56:52 +0000 (05:56 -0500)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/tools/cephfs_mirror/Types.h

index 64dad1a9e5a10af927e6fc81a3862f3dfca5f1fd..811d150eca8f5a258676db3ad7db9cdc2e221bf5 100644 (file)
@@ -9,6 +9,7 @@
 #include <string_view>
 
 #include "include/rados/librados.hpp"
+#include "include/cephfs/libcephfs.h"
 #include "mds/mdstypes.h"
 
 namespace cephfs {
@@ -74,6 +75,9 @@ std::ostream& operator<<(std::ostream& out, const FilesystemSpec &spec);
 typedef std::shared_ptr<librados::Rados> RadosRef;
 typedef std::shared_ptr<librados::IoCtx> IoCtxRef;
 
+// not a shared_ptr since the type is incomplete
+typedef ceph_mount_info *MountRef;
+
 } // namespace mirror
 } // namespace cephfs