Sort lsblk output by MAJ:MIN

This commit is contained in:
Martin 2017-08-10 19:09:56 +02:00
parent 4637e3600a
commit e89a560bff

View File

@ -871,7 +871,7 @@ namespace
std::vector<SLsblk> lsblk(const std::string& dev)
{
int rc = system(("lsblk -o MAJ:MIN,MODEL,SIZE,TYPE -P "+dev+" 1> out").c_str());
int rc = system(("lsblk -x MAJ:MIN -o MAJ:MIN,MODEL,SIZE,TYPE -P "+dev+" 1> out").c_str());
std::vector<SLsblk> ret;