[Sheepdog] [PATCH, RFC] collie: add -r/--raw option for machine-readable output

Chris Webb chris at arachsys.com
Fri Jun 17 18:22:51 CEST 2011

Chris Webb <chris at arachsys.com> writes:

> @@ -387,8 +396,9 @@ static void print_vdi_list(uint32_t vid, char *name, char *tag, uint32_t snapid,

We need at least

-	char vdi_size_str[8], my_objs_str[8], cow_objs_str[8];
+	char vdi_size_str[16], my_objs_str[16], cow_objs_str[16];

in this function too, or the sizes in bytes get horribly truncated in the --raw

Best wishes,


More information about the sheepdog mailing list