mirror of https://github.com/ceph/go-ceph
fmt: apply gofmt updates
Signed-off-by: Noah Watkins <nwatkins@redhat.com>
This commit is contained in:
parent
6107372c34
commit
208695a8c1
|
@ -567,7 +567,7 @@ func (image *Image) ListLockers() (tag string, lockers []Locker, err error) {
|
|||
// no locker held on rbd image when either c_clients_len,
|
||||
// c_cookies_len or c_addrs_len is *0*, so just quickly returned
|
||||
if int(c_clients_len) == 0 || int(c_cookies_len) == 0 ||
|
||||
int(c_addrs_len) ==0 {
|
||||
int(c_addrs_len) == 0 {
|
||||
lockers = make([]Locker, 0)
|
||||
return "", lockers, nil
|
||||
}
|
||||
|
|
|
@ -48,14 +48,14 @@ func TestCreateImage(t *testing.T) {
|
|||
|
||||
name = GetUUID()
|
||||
image, err = rbd.Create(ioctx, name, 1<<22, 22,
|
||||
RbdFeatureLayering|RbdFeatureStripingV2)
|
||||
RbdFeatureLayering|RbdFeatureStripingV2)
|
||||
assert.NoError(t, err)
|
||||
err = image.Remove()
|
||||
assert.NoError(t, err)
|
||||
|
||||
name = GetUUID()
|
||||
image, err = rbd.Create(ioctx, name, 1<<22, 22,
|
||||
RbdFeatureLayering|RbdFeatureStripingV2, 4096, 2)
|
||||
RbdFeatureLayering|RbdFeatureStripingV2, 4096, 2)
|
||||
assert.NoError(t, err)
|
||||
err = image.Remove()
|
||||
assert.NoError(t, err)
|
||||
|
|
Loading…
Reference in New Issue