Skip to content

Commit

Permalink
Increase initial buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Nov 21, 2023
1 parent 4844f06 commit 83b2501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/controllers/abstract_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ using namespace scsi_defs;

AbstractController::AbstractController(BUS& bus, int target_id, int max_luns) : bus(bus), target_id(target_id), max_luns(max_luns)
{
// The initial buffer just has to be big enough for a CDB
ctrl.buffer.resize(ctrl.cmd.size());
// The initial buffer size is the size of the biggest supported sector
ctrl.buffer.resize(4096);

device_logger.SetIdAndLun(target_id, -1);
}
Expand Down

0 comments on commit 83b2501

Please sign in to comment.