@@ -105,13 +105,13 @@ int AtaHardDisk::perform_command() {
105
105
uint64_t offset = this ->get_lba () * ATA_HD_SEC_SIZE;
106
106
uint32_t ints_size = ATA_HD_SEC_SIZE;
107
107
if (this ->r_command == READ_MULTIPLE) {
108
- if (this ->multiple_sector_count == 0 ) {
108
+ if (this ->sec_per_block == 0 ) {
109
109
LOG_F (ERROR, " %s: READ MULTIPLE with SET MULTIPLE==0" , this ->name .c_str ());
110
110
this ->r_status |= ERR;
111
111
this ->r_status &= ~BSY;
112
112
break ;
113
113
}
114
- ints_size *= this ->multiple_sector_count ;
114
+ ints_size *= this ->sec_per_block ;
115
115
}
116
116
hdd_img.read (buffer, offset, xfer_size);
117
117
this ->data_ptr = (uint16_t *)this ->buffer ;
@@ -130,13 +130,13 @@ int AtaHardDisk::perform_command() {
130
130
uint32_t xfer_size = sec_count * ATA_HD_SEC_SIZE;
131
131
uint32_t ints_size = ATA_HD_SEC_SIZE;
132
132
if (this ->r_command == WRITE_MULTIPLE) {
133
- if (this ->multiple_sector_count == 0 ) {
133
+ if (this ->sec_per_block == 0 ) {
134
134
LOG_F (ERROR, " %s: WRITE MULTIPLE with SET MULTIPLE==0" , this ->name .c_str ());
135
135
this ->r_status |= ERR;
136
136
this ->r_status &= ~BSY;
137
137
break ;
138
138
}
139
- ints_size *= this ->multiple_sector_count ;
139
+ ints_size *= this ->sec_per_block ;
140
140
}
141
141
this ->prepare_xfer (xfer_size, ints_size);
142
142
this ->post_xfer_action = [this ]() {
0 commit comments