]> sourceware.org Git - lvm2.git/commit
lvmlockd: fix vgchange --locktype sanlock 1522553670
authorDavid Teigland <teigland@redhat.com>
Thu, 31 Oct 2024 21:31:35 +0000 (16:31 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 31 Oct 2024 21:31:35 +0000 (16:31 -0500)
commit4eb66fd20c2fa9487c8928d26fba6e28810c6229
tree1e75a1a6be5318d9650e7ae1c5a0fe7b2d139d7f
parent354ca52e8cb23c4587efd30eb804258e2063dca3
lvmlockd: fix vgchange --locktype sanlock

Fix regression from commit 7f29afdb06d
"lvmlockd: configurable sanlock lease sizes on 4K disks"

That change failed to recognize that a running lockspace will not
exist in lvmlockd when converting a local VG to a sanlock VG, i.e.
vgchange --locktype sanlock vgname.  When the vgchange attempted
to initialize new lv leases for existing LVs, lvmlockd would
return an error when it found no lockspace.
daemons/lvmlockd/lvmlockd-core.c
daemons/lvmlockd/lvmlockd-internal.h
daemons/lvmlockd/lvmlockd-sanlock.c
This page took 0.035644 seconds and 5 git commands to generate.