Updated block size handling

This commit is contained in:
Uwe Seimet 2021-08-27 23:27:34 +02:00
parent 72b2ba93ff
commit 8571a5c735

View File

@ -306,7 +306,7 @@ const PbDevices GetDevices()
status->set_locked(device->IsLocked());
const Disk *disk = dynamic_cast<Disk*>(device);
if (disk && disk->IsSectorSizeConfigurable()) {
if (disk) {
pbDevice->set_block_size(disk->GetSectorSizeInBytes());
}