mirror of
https://github.com/ceph/go-ceph
synced 2024-12-28 09:12:11 +00:00
rados: naming conventions: fixes in GetXattr 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
4307dc99ec
commit
1cb879d9e0
@ -342,15 +342,15 @@ func (ioctx *IOContext) Stat(object string) (stat ObjectStat, err error) {
|
|||||||
// GetXattr gets an xattr with key `name`, it returns the length of
|
// GetXattr gets an xattr with key `name`, it returns the length of
|
||||||
// the key read or an error if not successful
|
// the key read or an error if not successful
|
||||||
func (ioctx *IOContext) GetXattr(object string, name string, data []byte) (int, error) {
|
func (ioctx *IOContext) GetXattr(object string, name string, data []byte) (int, error) {
|
||||||
c_object := C.CString(object)
|
cObject := C.CString(object)
|
||||||
c_name := C.CString(name)
|
cName := C.CString(name)
|
||||||
defer C.free(unsafe.Pointer(c_object))
|
defer C.free(unsafe.Pointer(cObject))
|
||||||
defer C.free(unsafe.Pointer(c_name))
|
defer C.free(unsafe.Pointer(cName))
|
||||||
|
|
||||||
ret := C.rados_getxattr(
|
ret := C.rados_getxattr(
|
||||||
ioctx.ioctx,
|
ioctx.ioctx,
|
||||||
c_object,
|
cObject,
|
||||||
c_name,
|
cName,
|
||||||
(*C.char)(unsafe.Pointer(&data[0])),
|
(*C.char)(unsafe.Pointer(&data[0])),
|
||||||
(C.size_t)(len(data)))
|
(C.size_t)(len(data)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user