From 19439f3958bec2cf688bf270986d94ff7fb36b51 Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Tue, 20 Dec 2016 19:24:31 +0800 Subject: [PATCH] rbd: the length of args on create_v3 should be 3 instead of 2 Signed-off-by: Vicente Cheng --- rbd/rbd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbd/rbd.go b/rbd/rbd.go index 8e3fd81..d4f839a 100644 --- a/rbd/rbd.go +++ b/rbd/rbd.go @@ -152,7 +152,7 @@ func Create(ioctx *rados.IOContext, name string, size uint64, order int, defer C.free(unsafe.Pointer(c_name)) switch len(args) { - case 2: + case 3: ret = C.rbd_create3(C.rados_ioctx_t(ioctx.Pointer()), c_name, C.uint64_t(size), C.uint64_t(args[0]), &c_order,