<div dir="ltr">I am getting an error with the following command:<div>vdi snapshot -s 87cfe950-fada-4cd8-960d-17d9227ff74a_disk_tmp a68a173e-e6f0-414c-b036-c7a09abacbbb -a localhost -p 7000<br></div><div><br></div><div>Stderr: 'Please specify a non-integer value for a snapshot tag name'<br>
</div><div><br></div><div>This is with the 0.6.0 version which has the following for the vdi_parser function (collie/vdi.c):</div><div><div> case 's':</div><div> vdi_cmd_data.snapshot_id = strtol(opt, &p, 10);</div>
<div> if (opt == p) {</div><div> vdi_cmd_data.snapshot_id = 0;</div><div> pstrcpy(vdi_cmd_data.snapshot_tag,</div><div> sizeof(vdi_cmd_data.snapshot_tag), opt);</div><div> } else if (vdi_cmd_data.snapshot_id == 0) {</div>
<div> fprintf(stderr,</div><div> "The snapshot id must be larger than zero\n");</div><div> exit(EXIT_FAILURE);</div><div> }</div><div> break;</div></div><div><br>
</div><div><br></div><div>The current version looks like this (dog/vdi.c):</div><div><div> case 's':</div><div> vdi_cmd_data.snapshot_id = strtol(opt, &p, 10);</div><div> if (opt == p || *p != '\0') {</div>
<div> vdi_cmd_data.snapshot_id = 0;</div><div> pstrcpy(vdi_cmd_data.snapshot_tag,</div><div> sizeof(vdi_cmd_data.snapshot_tag), opt);</div><div> } else if (vdi_cmd_data.snapshot_id == 0) {</div>
<div> fprintf(stderr,</div><div> "The snapshot id must be larger than zero\n");</div><div> exit(EXIT_FAILURE);</div><div> }</div><div> break;</div></div><div><br>
</div><div>Based on my reading, this will still have the problem, although my C is quite rusty.</div><div><br></div><div>Thanks,</div><div>~ Scott</div></div>