mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-18 21:58:06 +03:00
lockd: check for unlock failure in all cases
This suppresses an unwanted error message.
This commit is contained in:
parent
c27015368b
commit
9e8b3d4a98
@ -1454,6 +1454,10 @@ int lockd_gl(struct cmd_context *cmd, const char *def_mode, uint32_t flags)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!strcmp(mode, "un"))
|
||||
return 1;
|
||||
|
||||
/*
|
||||
* ENOLS: no lockspace was found with a global lock.
|
||||
* The VG with the global lock may not be visible or started yet,
|
||||
@ -1473,10 +1477,6 @@ int lockd_gl(struct cmd_context *cmd, const char *def_mode, uint32_t flags)
|
||||
result == -ESTARTING ||
|
||||
result == -EVGKILLED ||
|
||||
result == -ELOCKIO) {
|
||||
|
||||
if (!strcmp(mode, "un"))
|
||||
return 1;
|
||||
|
||||
/*
|
||||
* If an ex global lock fails, then the command fails.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user