mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-24 12:30:20 +00:00
rasctl -s display block size
This commit is contained in:
parent
6d7e186b94
commit
e254bc2b9c
@ -229,8 +229,11 @@ void CommandServerInfo(const string& hostname, int port)
|
|||||||
const PbDevice& device = *it;
|
const PbDevice& device = *it;
|
||||||
|
|
||||||
cout << " " << device.id() << ":" << device.unit() << " " << PbDeviceType_Name(device.type())
|
cout << " " << device.id() << ":" << device.unit() << " " << PbDeviceType_Name(device.type())
|
||||||
<< " " << device.vendor() << ":" << device.product() << ":" << device.revision()
|
<< " " << device.vendor() << ":" << device.product() << ":" << device.revision();
|
||||||
<< (device.file().name().empty() ? "" : " " + device.file().name()) << endl;
|
if (device.block_size()) {
|
||||||
|
cout << " " << device.block_size() << " BPS";
|
||||||
|
}
|
||||||
|
cout << (device.file().name().empty() ? "" : " " + device.file().name()) << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user