From 7a387654c517893cc14f4d2ee57f5abec5e1677c Mon Sep 17 00:00:00 2001 From: Mudit Agarwal Date: Mon, 3 Aug 2020 08:29:54 +0530 Subject: [PATCH] rbd: remove deprecated fields from ImageInfo struct Corresponding fields for Parent_pool and Parent_name have been deprecated from ceph's rbd_image_info_t stuct, removing the same from go-ceph's ImageInfo struct. Signed-off-by: Mudit Agarwal --- rbd/rbd.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rbd/rbd.go b/rbd/rbd.go index 12e7a5a..b5f0648 100644 --- a/rbd/rbd.go +++ b/rbd/rbd.go @@ -56,8 +56,6 @@ type ImageInfo struct { Num_objs uint64 Order int Block_name_prefix string - Parent_pool int64 - Parent_name string } // SnapInfo represents the status information for a snapshot. @@ -408,9 +406,7 @@ func (image *Image) Stat() (info *ImageInfo, err error) { Obj_size: uint64(c_stat.obj_size), Num_objs: uint64(c_stat.num_objs), Order: int(c_stat.order), - Block_name_prefix: C.GoString((*C.char)(&c_stat.block_name_prefix[0])), - Parent_pool: int64(c_stat.parent_pool), - Parent_name: C.GoString((*C.char)(&c_stat.parent_name[0]))}, nil + Block_name_prefix: C.GoString((*C.char)(&c_stat.block_name_prefix[0]))}, nil } // IsOldFormat returns true if the rbd image uses the old format.