]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: new magic for 8.4 style (unclean) activity log.
authorPhilipp Marek <philipp.marek@linbit.com>
Thu, 1 Sep 2011 12:16:21 +0000 (14:16 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 7 Sep 2011 05:58:16 +0000 (07:58 +0200)
Signed-off-by: Philipp Marek <philipp.marek@linbit.com>
libblkid/src/superblocks/drbd.c

index 1e404069bdaee737d99f94dd04ffb98adc8ef3bb..43e544e896d001845abd80c2e94a5b77bcbd21d2 100644 (file)
@@ -27,7 +27,8 @@
  * user/drbdmeta.c
  * We only support v08 for now
  */
-#define DRBD_MD_MAGIC_08 (DRBD_MAGIC+4)
+#define DRBD_MD_MAGIC_08         (DRBD_MAGIC+4)
+#define DRBD_MD_MAGIC_84_UNCLEAN (DRBD_MAGIC+5)
 
 /*
  * drbd/linux/drbd.h
@@ -83,7 +84,8 @@ static int probe_drbd(blkid_probe pr,
        if (!md)
                return -1;
 
-       if (be32_to_cpu(md->magic) != DRBD_MD_MAGIC_08)
+       if (be32_to_cpu(md->magic) != DRBD_MD_MAGIC_08 &&
+                       be32_to_cpu(md->magic) != DRBD_MD_MAGIC_84_UNCLEAN)
                return -1;
 
        /*