[sheepdog] [PATCH 4/4] collie: handle snapshot name correctly in fix get_oid

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sun Sep 9 18:13:18 CEST 2012


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 collie/vdi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/collie/vdi.c b/collie/vdi.c
index 366c946..ca009a1 100644
--- a/collie/vdi.c
+++ b/collie/vdi.c
@@ -193,7 +193,7 @@ static void get_oid(uint32_t vid, char *name, char *tag, uint32_t snapid,
 	struct get_vdi_info *info = data;
 
 	if (info->name) {
-		if (info->tag) {
+		if (info->tag && info->tag[0]) {
 			if (!strcmp(name, info->name) && !strcmp(tag, info->tag))
 				info->vid = vid;
 		} else if (info->snapid) {
-- 
1.7.2.5




More information about the sheepdog mailing list