Fix max lun detection

This commit is contained in:
Bjoern Kerler 2022-08-21 22:06:46 +02:00
parent 84c2fa28ec
commit 6ff21d66ed
No known key found for this signature in database
GPG key ID: 52E823BB96A55380

View file

@ -1225,6 +1225,7 @@ class firehose(metaclass=LogBase):
self.cfg.total_blocks = si["total_blocks"] self.cfg.total_blocks = si["total_blocks"]
if "num_physical" in si: if "num_physical" in si:
self.cfg.num_physical = si["num_physical"] self.cfg.num_physical = si["num_physical"]
self.cfg.maxlun = self.cfg.num_physical
if "block_size" in si: if "block_size" in si:
self.cfg.block_size = si["block_size"] self.cfg.block_size = si["block_size"]
if "page_size" in si: if "page_size" in si: