mirror of
https://github.com/ceph/go-ceph
synced 2025-01-17 11:40:43 +00:00
rbd: naming conventions: fixes in IsOldFormat function
Fix up variable names that don't meet Go standards. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
f4769e6f89
commit
ee7767a0d3
@ -421,19 +421,19 @@ func (image *Image) Stat() (info *ImageInfo, err error) {
|
||||
//
|
||||
// Implements:
|
||||
// int rbd_get_old_format(rbd_image_t image, uint8_t *old);
|
||||
func (image *Image) IsOldFormat() (old_format bool, err error) {
|
||||
func (image *Image) IsOldFormat() (bool, error) {
|
||||
if err := image.validate(imageIsOpen); err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
var c_old_format C.uint8_t
|
||||
var cOldFormat C.uint8_t
|
||||
ret := C.rbd_get_old_format(image.image,
|
||||
&c_old_format)
|
||||
&cOldFormat)
|
||||
if ret < 0 {
|
||||
return false, rbdError(ret)
|
||||
}
|
||||
|
||||
return c_old_format != 0, nil
|
||||
return cOldFormat != 0, nil
|
||||
}
|
||||
|
||||
// GetSize returns the size of the rbd image.
|
||||
|
Loading…
Reference in New Issue
Block a user