Revert "blockd: detect mountpoint of /dev/mapper/*"
authorDaniel Golle <daniel@makrotopia.org>
Fri, 23 Jul 2021 21:33:46 +0000 (22:33 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 23 Jul 2021 21:34:53 +0000 (22:34 +0100)
This reverts commit 4d4dcfb33c5d9fa31c9916e106bee309ec7b4b01.

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

index 9bb8ab25c47e80605ce7648c95a0919a4ee7faf3..edca896b14886ee5fceb38ea21edbac35e8454a0 100644 (file)
--- a/blockd.c
+++ b/blockd.c
@@ -89,15 +89,6 @@ _find_mount_point(char *device)
        mp = find_mount_point(dev, 0);
        free(dev);
 
-       if (mp)
-               return mp;
-
-       if (asprintf(&dev, "/dev/mapper/%s", device) == -1)
-               exit(ENOMEM);
-
-       mp = find_mount_point(dev, 0);
-       free(dev);
-
        return mp;
 }