aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2017-07-10 19:51:58 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-07-10 19:51:58 +0000
commit9abc85f05b202bac7daf6feaf562dbe9456f37c2 (patch)
treebec4f517b7da610c015562188fb8e4e5fddef638
parentbedbcad1de4a5d809e67e7a58000fbceb31dd732 (diff)
parent4ef0afa5635b9e7009ed5b5a4c057c57137693a3 (diff)
downloadandroid_external_e2fsprogs-9abc85f05b202bac7daf6feaf562dbe9456f37c2.tar.gz
android_external_e2fsprogs-9abc85f05b202bac7daf6feaf562dbe9456f37c2.tar.bz2
android_external_e2fsprogs-9abc85f05b202bac7daf6feaf562dbe9456f37c2.zip
Merge "blkid: Resolve to the exFAT uuid change on reboot." am: 6eac3894a6 am: 68acc00e57
am: 4ef0afa563 Change-Id: Ibfaba811291cce3bed86a812d403cf1f598a1cf8
-rw-r--r--lib/blkid/probe.c5
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;
}