diff options
| author | Simon Rettberg | 2025-10-30 23:31:23 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2025-12-09 15:33:20 +0100 |
| commit | 186eecd2417b6937341e6c07b446f991142207d1 (patch) | |
| tree | e15b482782fad33f9af378657e36a615ecdbf9ab /src/server/image.h | |
| parent | [SERVER] iscsi: Refactor receive function and PDU handling (diff) | |
| download | dnbd3-186eecd2417b6937341e6c07b446f991142207d1.tar.gz dnbd3-186eecd2417b6937341e6c07b446f991142207d1.tar.xz dnbd3-186eecd2417b6937341e6c07b446f991142207d1.zip | |
[SERVER] iscsi: Unify usage of length and position variables
There were a lot of similarly named and redundant variables in various
structs named pos, len, xfer_len, des_xfer_pos, etc. It could be very
challenging to keep track of what information is stored where when
working with the code.
Attempt to minimize this by relying only on a single "len" variable in
the scsi_task struct.
This refactoring uncovered a few inconsistencies in how allocation
length limitations were handled, which were addressed here too.
Diffstat (limited to 'src/server/image.h')
0 files changed, 0 insertions, 0 deletions
