This is a patch for bug 847848
If registering an existing lockspace with the sanlock daemon
returns an error, libvirt should not proceed to unlink the lockspace.
Signed-off-by: Asad Saeed <asad.saeed@acidseed.com>
Richa Marwaha <rmarwah@linux.vnet.ibm.com>
Peter Feiner <peter@gridcentric.ca>
Frido Roose <frido.roose@gmail.com>
+ Asad Saeed <asad.saeed@acidseed.com>
[....send patches to get your name here....]
virReportSystemError(-rv,
_("Unable to add lockspace %s"),
path);
- goto error_unlink;
+ goto error;
} else {
VIR_DEBUG("Lockspace %s is already registered", path);
}