From a650b268a17c2e53aa6c729a59ff79a9a1ca0ec1 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Wed, 30 Sep 2020 04:50:32 -0400 Subject: [PATCH] cephfs-mirror: typedef ceph_mount_info as MountRef shared pointer Signed-off-by: Venky Shankar --- src/tools/cephfs_mirror/Types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/cephfs_mirror/Types.h b/src/tools/cephfs_mirror/Types.h index 64dad1a9e5a10..811d150eca8f5 100644 --- a/src/tools/cephfs_mirror/Types.h +++ b/src/tools/cephfs_mirror/Types.h @@ -9,6 +9,7 @@ #include #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 RadosRef; typedef std::shared_ptr IoCtxRef; +// not a shared_ptr since the type is incomplete +typedef ceph_mount_info *MountRef; + } // namespace mirror } // namespace cephfs -- 2.39.5