chiark / gitweb /
libvolume_id: add parameter 'size' to all probe functions
[elogind.git] / extras / volume_id / lib / lvm.c
index 47d84b09686206b26be93441e383dea2f52a91b2..9c83c553078e7cdef830948ccbc338e3cf1f24d7 100644 (file)
@@ -41,12 +41,12 @@ struct lvm2_super_block {
 #define LVM1_SB_OFF                    0x400
 #define LVM1_MAGIC                     "HM"
 
-int volume_id_probe_lvm1(struct volume_id *id, uint64_t off)
+int volume_id_probe_lvm1(struct volume_id *id, uint64_t off, uint64_t size)
 {
        const uint8_t *buf;
        struct lvm1_super_block *lvm;
 
-       dbg("probing at offset 0x%llx", (unsigned long long) off);
+       info("probing at offset 0x%llx", (unsigned long long) off);
 
        buf = volume_id_get_buffer(id, off + LVM1_SB_OFF, 0x800);
        if (buf == NULL)
@@ -66,7 +66,7 @@ int volume_id_probe_lvm1(struct volume_id *id, uint64_t off)
 #define LVM2_LABEL_ID                  "LABELONE"
 #define LVM2LABEL_SCAN_SECTORS         4
 
-int volume_id_probe_lvm2(struct volume_id *id, uint64_t off)
+int volume_id_probe_lvm2(struct volume_id *id, uint64_t off, uint64_t size)
 {
        const uint8_t *buf;
        unsigned int soff;