Re: [libvirt] [PATCH] conf: Don't corrupt metadata on OOM

2013-09-17 Thread Peter Krempa
On 09/17/13 11:56, Ján Tomko wrote: > On 09/17/2013 11:19 AM, Peter Krempa wrote: >> Eric Blake suggested that we could do a little better in case copying of >> the metadata to be set fails. With this patch, the old metadata is >> discarded after the new string is copied successfuly. >> --- >> src

Re: [libvirt] [PATCH] conf: Don't corrupt metadata on OOM

2013-09-17 Thread Ján Tomko
On 09/17/2013 11:19 AM, Peter Krempa wrote: > Eric Blake suggested that we could do a little better in case copying of > the metadata to be set fails. With this patch, the old metadata is > discarded after the new string is copied successfuly. > --- > src/conf/domain_conf.c | 13 + > 1

[libvirt] [PATCH] conf: Don't corrupt metadata on OOM

2013-09-17 Thread Peter Krempa
Eric Blake suggested that we could do a little better in case copying of the metadata to be set fails. With this patch, the old metadata is discarded after the new string is copied successfuly. --- src/conf/domain_conf.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --g