mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Sort lsblk output by MAJ:MIN
This commit is contained in:
parent
4637e3600a
commit
e89a560bff
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user