Re: [libvirt] [PATCH V3]Sheepdog: Auto Adding volume and pool refresh.

2014-02-03 Thread Ján Tomko
On 01/31/2014 01:02 PM, joel SIMOES wrote: From: Joel joel.sim...@laposte.net Fix bug 1055479 https://bugzilla.redhat.com/show_bug.cgi?id=1055479 Libvirt lose sheepdogs volumes on pool refresh or restart. When restarting sheepdog pool, all volumes are missing. This patch add automatically

Re: [libvirt] [PATCH V3]Sheepdog: Auto Adding volume and pool refresh.

2014-02-03 Thread Joel Simoes
Howto check size of **char Thx. +char *line = *(lines + i); +cells = virStringSplit(line, , 0); +size_t j; +for (j = 0; *(cells + j); j++) { You can eliminate this whole loop by checking if cells has at least two entries and using cells[1] directly. Le

[libvirt] [PATCH V3]Sheepdog: Auto Adding volume and pool refresh.

2014-01-31 Thread joel SIMOES
From: Joel joel.sim...@laposte.net Fix bug 1055479 https://bugzilla.redhat.com/show_bug.cgi?id=1055479 Libvirt lose sheepdogs volumes on pool refresh or restart. When restarting sheepdog pool, all volumes are missing. This patch add automatically all volume from the added pool. ---