chiark / gitweb /
libvolume_id: add parameter 'size' to all probe functions
[elogind.git] / extras / volume_id / lib / lvm.c
index 727204280b3fd67edeb9ce0c784362e039a090bf..9c83c553078e7cdef830948ccbc338e3cf1f24d7 100644 (file)
@@ -41,7 +41,7 @@ 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;
@@ -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;