Request specific tags from blkid.

Otherwise blkid can emit tags like SEC_TYPE which mess with the value
extraction code.

Bug: 23069906
Change-Id: Id2a588ff43a538747d1e44cd8218c96ebd0192c2
This commit is contained in:
Jeff Sharkey 2015-08-12 16:04:35 -07:00
parent 1bd078fa7b
commit eddf9bd63c

View file

@ -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;