summaryrefslogtreecommitdiff
path: root/extras/volume_id/lib/btrfs.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-12-09 18:14:23 +0100
committerKay Sievers <kay.sievers@vrfy.org>2008-12-09 18:14:23 +0100
commit14e182788853c56b14aa28dccf326c7d1671cfb5 (patch)
tree2a1c1b7dc41c70ff51033628dd0acd17558dd875 /extras/volume_id/lib/btrfs.c
parent07d9b845c665f9f0288585aed7c913b7f323df99 (diff)
volume_id: support sub-uuid's and plug in btrfs device uuid
Diffstat (limited to 'extras/volume_id/lib/btrfs.c')
-rw-r--r--extras/volume_id/lib/btrfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/volume_id/lib/btrfs.c b/extras/volume_id/lib/btrfs.c
index 09b03a68dc..5ef979f2f0 100644
--- a/extras/volume_id/lib/btrfs.c
+++ b/extras/volume_id/lib/btrfs.c
@@ -93,6 +93,7 @@ int volume_id_probe_btrfs(struct volume_id *id, uint64_t off, uint64_t size)
if (memcmp(bfs->magic, "_BHRfS_M", 8) != 0)
return -1;
volume_id_set_uuid(id, bfs->fsid, 0, UUID_DCE);
+ volume_id_set_uuid_sub(id, bfs->dev_item.uuid, 0, UUID_DCE);
volume_id_set_label_raw(id, bfs->label, 256);
volume_id_set_label_string(id, bfs->label, 256);
volume_id_set_usage(id, VOLUME_ID_FILESYSTEM);