summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-08-12 16:04:35 -0700
committerJeff Sharkey <jsharkey@android.com>2015-08-12 16:04:52 -0700
commiteddf9bd63c1f7e0f9709f7c58a1035fa43338325 (patch)
tree48f2cd2ea24e7c023de98ad96184a569f9adb3b6
parent1bd078fa7b5ca613cb3e793d67ccd86d2602787d (diff)
downloadvold-marshmallow-dev.tar.gz
Request specific tags from blkid.marshmallow-dev
Otherwise blkid can emit tags like SEC_TYPE which mess with the value extraction code. Bug: 23069906 Change-Id: Id2a588ff43a538747d1e44cd8218c96ebd0192c2
-rw-r--r--Utils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Utils.cpp b/Utils.cpp
index 06222c34..e19c9dfd 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -170,6 +170,12 @@ static status_t readMetadata(const std::string& path, std::string& fsType,
cmd.push_back(kBlkidPath);
cmd.push_back("-c");
cmd.push_back("/dev/null");
+ cmd.push_back("-s");
+ cmd.push_back("TYPE");
+ cmd.push_back("-s");
+ cmd.push_back("UUID");
+ cmd.push_back("-s");
+ cmd.push_back("LABEL");
cmd.push_back(path);
std::vector<std::string> output;