mirror of
https://github.com/ceph/go-ceph
synced 2025-02-07 05:51:36 +00:00
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 <muagarwa@redhat.com>
This commit is contained in:
parent
16a24da06d
commit
7a387654c5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user