daemon: lvm_utils: Further narrow stat failure to ENOENT

Missed the 2nd stat
This commit is contained in:
Arye Yurkovsky
2025-12-08 19:21:40 +02:00
committed by rwmjones
parent 6aebf70e18
commit 62b0e2ab64

View File

@@ -47,7 +47,7 @@ let lv_canonical device =
fun lv ->
let stat2 =
try Some (stat lv)
with Unix_error _ -> None in
with Unix_error (ENOENT, _, _) -> None in
match stat2 with
| Some stat2 -> stat1.st_rdev = stat2.st_rdev
| None -> false