]> sourceware.org Git - lvm2.git/commit
lvmlockd: use lvmlock LV size 1470849140
authorDavid Teigland <teigland@redhat.com>
Wed, 25 Sep 2024 21:18:32 +0000 (16:18 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 26 Sep 2024 13:53:09 +0000 (08:53 -0500)
commite9413fb2111d221f187cb65b9e9d4abc0c7ef744
tree87d468aff197aab145e782895936d4ebd61efed2
parent9d7c19c2ce1872cc185e64c9fa4e27ab486c5975
lvmlockd: use lvmlock LV size

Previously, lvmlockd detected the end of the lvmlock LV
by doing i/o to it until an i/o error was returned.
This triggered sanlock warning messages, so use the LV
size to avoid accessing beyond the end of the device.

Previously, every lvcreate would refresh the lvmlock LV
in case another machine had extended it.  This involves
a lot of unnecessary work in most cases, so now compare
the LV size and device size to detect when a refresh is
needed.
daemons/lvmlockd/lvmlockd-core.c
daemons/lvmlockd/lvmlockd-internal.h
daemons/lvmlockd/lvmlockd-sanlock.c
lib/locking/lvmlockd.c
This page took 0.035331 seconds and 5 git commands to generate.