cov: add value check
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 23 Feb 2025 19:09:50 +0000 (20:09 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 24 Feb 2025 17:59:58 +0000 (18:59 +0100)
lib/metadata/thin_manip.c

index ddcdcf0f91b803ce433718350a0a3555caad20c9..3e725ab6cf35ef0b5d0cc92537b6aa040b42cba0 100644 (file)
@@ -624,7 +624,7 @@ int update_thin_pool_lv(struct logical_volume *lv, int activate)
 
        if (activate) {
                /* If the pool is not active, do activate deactivate */
-               monitored = dmeventd_monitor_mode();
+               monitored = (dmeventd_monitor_mode() == 1) ? 1 : 0;
                init_dmeventd_monitor(DMEVENTD_MONITOR_IGNORE);
                if (!lv_is_active(lv)) {
                        /*
This page took 0.08396 seconds and 5 git commands to generate.