mirror of https://github.com/ceph/go-ceph
rbd: fix naming convention violations in snapshot.go
Fix up variable names that don't meet Go standards. Command: gofmt -w -r 'c_is_protected -> cIsProtected' rbd/snapshot.go Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
7536a52346
commit
bf0ddeffa9
|
@ -133,18 +133,18 @@ func (snapshot *Snapshot) IsProtected() (bool, error) {
|
|||
return false, err
|
||||
}
|
||||
|
||||
var c_is_protected C.int
|
||||
var cIsProtected C.int
|
||||
|
||||
cSnapName := C.CString(snapshot.name)
|
||||
defer C.free(unsafe.Pointer(cSnapName))
|
||||
|
||||
ret := C.rbd_snap_is_protected(snapshot.image.image, cSnapName,
|
||||
&c_is_protected)
|
||||
&cIsProtected)
|
||||
if ret < 0 {
|
||||
return false, rbdError(ret)
|
||||
}
|
||||
|
||||
return c_is_protected != 0, nil
|
||||
return cIsProtected != 0, nil
|
||||
}
|
||||
|
||||
// Set updates the rbd image (not the Snapshot) such that the snapshot
|
||||
|
|
Loading…
Reference in New Issue