chiark / gitweb /
volume_id: btrfs update
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 5 Nov 2008 01:22:07 +0000 (02:22 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 5 Nov 2008 01:22:07 +0000 (02:22 +0100)
extras/volume_id/lib/btrfs.c

index 75a9b0a9a9a99ce617178656c830e7c25932caeb..a725c4d12f22895004cb188b8c192565e24acc9a 100644 (file)
@@ -81,7 +81,7 @@ int volume_id_probe_btrfs(struct volume_id *id, uint64_t off, uint64_t size)
        if (buf == NULL)
                return -1;
        bfs = (struct btrfs_super_block *)buf;
        if (buf == NULL)
                return -1;
        bfs = (struct btrfs_super_block *)buf;
-       if (memcmp(bfs->magic, "_BBRfS_M", 8) != 0)
+       if (memcmp(bfs->magic, "_BDRfS_M", 8) != 0)
                return -1;
        volume_id_set_uuid(id, bfs->fsid, 0, UUID_DCE);
        volume_id_set_label_raw(id, bfs->label, 256);
                return -1;
        volume_id_set_uuid(id, bfs->fsid, 0, UUID_DCE);
        volume_id_set_label_raw(id, bfs->label, 256);