]> sourceware.org Git - lvm2.git/commit
libdm: do not fail if GETVAL semctl fails for udev sync inc and dec
authorPeter Rajnoha <prajnoha@redhat.com>
Mon, 12 Aug 2024 12:31:19 +0000 (14:31 +0200)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 5 Sep 2024 10:14:42 +0000 (12:14 +0200)
commit1e485991938851e12c96014858e7d2c9e7eed383
treee6056ec711241277d642808a49e89ed8af01d31e
parentf7f08ba88146f638bf152a7ab3e3016939a819ce
libdm: do not fail if GETVAL semctl fails for udev sync inc and dec

While performing udev sync semaphore's inc/dec operation, we use the
result from GETVAL semctl just to print a debug message with current
value of that sempahore, nothing else.

If the GETVAL fails for whetever reason while the actual inc/dec
completes successfully, just log a warning message about the GETVAL
(and print the debug messages without the actual semaphore value)
and return success for the inc/dec operation as a whole.
device_mapper/libdm-common.c
libdm/libdm-common.c
This page took 0.042364 seconds and 5 git commands to generate.