[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [RFC] virCommandRun return error number



Hi all,

I copy portions of libvirt/src/storage/storage_backend_sheepdog.c
[...]
125     ret = virCommandRun(cmd, NULL);
126     if (ret == 0)
127         ret = virStorageBackendSheepdogParseNodeInfo(pool->def, output);
[...]

I found virCommandRun may return '-1', which hinds something error happens.
However, Sheepdog hasn't check here. Maybe i have come up with this bug.
I cannot remember clearly. Could anyone please give me some suggestions?
If ture, i will give a patch for this bug ;-).


--
Thanks
Harry Wei


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]