mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
rebase: update go-ceph to v0.5.0
as go-ceph is 0.5.0 is released updating the dependency to latest release. more info about release at https://github.com/ceph/go-ceph/releases/tag/v0.5.0 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
5f6fec5f0a
commit
2808d526bb
4
vendor/github.com/ceph/go-ceph/rbd/snapshot.go
generated
vendored
4
vendor/github.com/ceph/go-ceph/rbd/snapshot.go
generated
vendored
@ -30,7 +30,7 @@ func (image *Image) CreateSnapshot(snapname string) (*Snapshot, error) {
|
||||
|
||||
ret := C.rbd_snap_create(image.image, c_snapname)
|
||||
if ret < 0 {
|
||||
return nil, RBDError(ret)
|
||||
return nil, rbdError(ret)
|
||||
}
|
||||
|
||||
return &Snapshot{
|
||||
@ -139,7 +139,7 @@ func (snapshot *Snapshot) IsProtected() (bool, error) {
|
||||
ret := C.rbd_snap_is_protected(snapshot.image.image, c_snapname,
|
||||
&c_is_protected)
|
||||
if ret < 0 {
|
||||
return false, RBDError(ret)
|
||||
return false, rbdError(ret)
|
||||
}
|
||||
|
||||
return c_is_protected != 0, nil
|
||||
|
Reference in New Issue
Block a user