mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
sanlock: don't unlink lockspace if registration fails
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>
This commit is contained in:
parent
86157b594f
commit
ff73c6d3bc
1
AUTHORS
1
AUTHORS
@ -255,6 +255,7 @@ Patches have also been contributed by:
|
|||||||
Richa Marwaha <rmarwah@linux.vnet.ibm.com>
|
Richa Marwaha <rmarwah@linux.vnet.ibm.com>
|
||||||
Peter Feiner <peter@gridcentric.ca>
|
Peter Feiner <peter@gridcentric.ca>
|
||||||
Frido Roose <frido.roose@gmail.com>
|
Frido Roose <frido.roose@gmail.com>
|
||||||
|
Asad Saeed <asad.saeed@acidseed.com>
|
||||||
|
|
||||||
[....send patches to get your name here....]
|
[....send patches to get your name here....]
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ static int virLockManagerSanlockSetupLockspace(void)
|
|||||||
virReportSystemError(-rv,
|
virReportSystemError(-rv,
|
||||||
_("Unable to add lockspace %s"),
|
_("Unable to add lockspace %s"),
|
||||||
path);
|
path);
|
||||||
goto error_unlink;
|
goto error;
|
||||||
} else {
|
} else {
|
||||||
VIR_DEBUG("Lockspace %s is already registered", path);
|
VIR_DEBUG("Lockspace %s is already registered", path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user