[sheepdog] [PATCH 1/3] collie: avoid setting proto_ver outside sd_init_req
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Sun Jul 8 09:33:00 CEST 2012
This fixes a version mismatch problem of collie vdi getattr and
setattr commands.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
collie/vdi.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/collie/vdi.c b/collie/vdi.c
index 95be61f..1506d24 100644
--- a/collie/vdi.c
+++ b/collie/vdi.c
@@ -374,7 +374,6 @@ static int find_vdi_name(char *vdiname, uint32_t snapid, const char *tag,
else
sd_init_req(&hdr, SD_OP_LOCK_VDI);
wlen = SD_MAX_VDI_LEN + SD_MAX_VDI_TAG_LEN;
- hdr.proto_ver = SD_PROTO_VER;
hdr.data_length = wlen;
hdr.flags = SD_FLAG_CMD_WRITE;
hdr.vdi.snapid = snapid;
@@ -947,7 +946,6 @@ static int find_vdi_attr_oid(char *vdiname, char *tag, uint32_t snapid,
sd_init_req(&hdr, SD_OP_GET_VDI_ATTR);
wlen = SD_ATTR_OBJ_SIZE;
rlen = 0;
- hdr.proto_ver = SD_PROTO_VER;
hdr.flags = SD_FLAG_CMD_WRITE;
hdr.data_length = wlen;
hdr.vdi.snapid = vdi_cmd_data.snapshot_id;
--
1.7.9.5
More information about the sheepdog
mailing list