diff options
-rw-r--r-- | hw/megasas.c | 1 | ||||
-rw-r--r-- | hw/mfi.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/hw/megasas.c b/hw/megasas.c index b845ea7..291ff40 100644 --- a/hw/megasas.c +++ b/hw/megasas.c @@ -1079,6 +1079,7 @@ static int megasas_dcmd_ld_get_list(MegasasState *s, MegasasCmd *cmd) /* Logical device size is in blocks */ bdrv_get_geometry(conf->bs, &ld_size); info.ld_list[num_ld_disks].ld.v.target_id = sdev->id; + info.ld_list[num_ld_disks].ld.v.lun_id = sdev->lun; info.ld_list[num_ld_disks].state = MFI_LD_STATE_OPTIMAL; info.ld_list[num_ld_disks].size = cpu_to_le64(ld_size); num_ld_disks++; @@ -1085,7 +1085,7 @@ struct mfi_pd_list { union mfi_ld_ref { struct { uint8_t target_id; - uint8_t reserved; + uint8_t lun_id; uint16_t seq; } v; uint32_t ref; |