diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-07-11 07:28:12 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-07-11 07:28:12 +0000 |
commit | 9fdce5b41f46f15e23f0332bb0bcb7a56559ec5d (patch) | |
tree | bec4f517b7da610c015562188fb8e4e5fddef638 | |
parent | 9a62d3c88115baca3326800aece22149801470aa (diff) | |
parent | 82091b7da3f1bde510f17098ceee553726e853b8 (diff) | |
download | e2fsprogs-9fdce5b41f46f15e23f0332bb0bcb7a56559ec5d.tar.gz |
release-request-5ee66a34-3e58-4de0-ba73-1f49074ee497-for-git_oc-mr1-release-4169335 snap-temp-L20600000081126177
Change-Id: I004384f48e79b27ad86be04bf2bd30d909e6a8f9
-rw-r--r-- | lib/blkid/probe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index fae74a7f..3bcf4c3d 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -1473,6 +1473,7 @@ static int probe_exfat(struct blkid_probe *probe, struct blkid_magic *id, struct exfat_super_block *sb; struct exfat_entry_label *label; uuid_t uuid; + sb = (struct exfat_super_block *)buf; if (!sb || !CLUSTER_SIZE(sb)) { DBG(DEBUG_PROBE, printf("bad exfat superblock.\n")); @@ -1486,11 +1487,11 @@ static int probe_exfat(struct blkid_probe *probe, struct blkid_magic *id, blkid_set_tag(probe->dev, "LABEL", "disk", 4); } + memset(uuid, 0, sizeof (uuid)); snprintf(uuid, sizeof (uuid), "%02hhX%02hhX-%02hhX%02hhX", sb->volume_serial[3], sb->volume_serial[2], sb->volume_serial[1], sb->volume_serial[0]); - - set_uuid(probe->dev, uuid, 0); + blkid_set_tag(probe->dev, "UUID", uuid, strlen(uuid)); return 0; } |