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:
parent
1bd078fa7b
commit
eddf9bd63c
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue