chiark / gitweb /
volume_id: btrfs - update magic to latest disk format
[elogind.git] / extras / volume_id / lib / btrfs.c
index aae2fa616e82c93e8ba9e3c0d551b1825ae10431..75a9b0a9a9a99ce617178656c830e7c25932caeb 100644 (file)
@@ -75,14 +75,13 @@ int volume_id_probe_btrfs(struct volume_id *id, uint64_t off, uint64_t size)
        const uint8_t *buf;
        struct btrfs_super_block *bfs;
 
-       info("probing at offset 0x%llx, size 0x%llx\n",
-            (unsigned long long)off, (unsigned long long)size);
+       info("probing at offset 0x%" PRIx64 ", size 0x%" PRIx64 "\n", off, size);
 
        buf = volume_id_get_buffer(id, off + 0x4000, 0x200);
        if (buf == NULL)
                return -1;
        bfs = (struct btrfs_super_block *)buf;
-       if (memcmp(bfs->magic, "_B9RfS_M", 8) != 0)
+       if (memcmp(bfs->magic, "_BBRfS_M", 8) != 0)
                return -1;
        volume_id_set_uuid(id, bfs->fsid, 0, UUID_DCE);
        volume_id_set_label_raw(id, bfs->label, 256);