volume_id: disable detection routines which are not setting label and uuid anyway
[platform/upstream/busybox.git] / util-linux / volume_id / unused_lvm.c
similarity index 93%
rename from util-linux/volume_id/lvm.c
rename to util-linux/volume_id/unused_lvm.c
index f9f9395..caee04b 100644 (file)
@@ -36,17 +36,14 @@ struct lvm2_super_block {
 
 int volume_id_probe_lvm1(struct volume_id *id, uint64_t off)
 {
-       const uint8_t *buf;
        struct lvm1_super_block *lvm;
 
        dbg("probing at offset 0x%llx", (unsigned long long) off);
 
-       buf = volume_id_get_buffer(id, off + LVM1_SB_OFF, 0x800);
-       if (buf == NULL)
+       lvm = volume_id_get_buffer(id, off + LVM1_SB_OFF, 0x800);
+       if (lvm == NULL)
                return -1;
 
-       lvm = (struct lvm1_super_block *) buf;
-
        if (lvm->id[0] != 'H' || lvm->id[1] != 'M')
                return -1;