From: Venky Shankar Date: Wed, 30 Sep 2020 08:50:32 +0000 (-0400) Subject: cephfs-mirror: typedef ceph_mount_info as MountRef shared pointer X-Git-Tag: v16.1.0~51^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a650b268a17c2e53aa6c729a59ff79a9a1ca0ec1;p=ceph.git cephfs-mirror: typedef ceph_mount_info as MountRef shared pointer Signed-off-by: Venky Shankar --- diff --git a/src/tools/cephfs_mirror/Types.h b/src/tools/cephfs_mirror/Types.h index 64dad1a9e5a..811d150eca8 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