block: use /dev/dm-* instead of /dev/mapper/*
authorDaniel Golle <daniel@makrotopia.org>
Fri, 23 Jul 2021 21:32:56 +0000 (22:32 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 23 Jul 2021 21:34:53 +0000 (22:34 +0100)
This avoids a lot of problems as hotplug events also arrive for the
/dev/dm-* names.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
block.c

diff --git a/block.c b/block.c
index 5b0517eb95c8a22b928aedd06eb85b4fa8191c0e..b0ac52463c8fee4be17399bda8049781238d28b5 100644 (file)
--- a/block.c
+++ b/block.c
@@ -533,7 +533,7 @@ static void cache_load(int mtd)
        _cache_load("/dev/nvme*");
        _cache_load("/dev/vd*");
        _cache_load("/dev/xvd*");
-       _cache_load("/dev/mapper/*");
+       _cache_load("/dev/dm-*");
 }