]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-worker: add debugging log about success of flock() for whole block device
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Feb 2025 00:20:51 +0000 (09:20 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 13 Feb 2025 15:54:46 +0000 (15:54 +0000)
(cherry picked from commit 951def0e276c041a262b3f147bb42206195fe13e)

src/udev/udev-worker.c

index 59f56f653cdafe081ffd7a68b9fe0c6b4a1f44c4..fc1bfd684c22cf1c803b225233a1711af4247504 100644 (file)
@@ -123,6 +123,7 @@ static int worker_lock_whole_disk(sd_device *dev, int *ret_fd) {
         if (flock(fd, LOCK_SH|LOCK_NB) < 0)
                 return log_device_debug_errno(dev, errno, "Failed to flock(%s): %m", val);
 
+        log_device_debug(dev, "Successfully took flock(LOCK_SH) for %s, it will be released after the event has been processed.", val);
         *ret_fd = TAKE_FD(fd);
         return 1;