Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jun 12, 2011
  1. @sahlberg
  2. @sahlberg

    If an application specifies zero-copy read-buffers to read the data into

    sahlberg authored
    for a read10 call, the application might have specified too few buffers
    for the full I/O.
    For example if the application tries to read just 512 bytes off a MMC device.
    
    In this case we wopuld run out of buffers and fail with a SEGV.
    
    Instead of failing like this, return NULL from the function to locate a suitable buffer and read the remaining data from the command into the callback buffer instead, just like when no read-buffer at all has been specified.
Commits on Apr 23, 2011
  1. @sahlberg
Commits on Apr 22, 2011
  1. @sahlberg

    Fix typo in a printed string

    sahlberg authored
  2. @sahlberg
  3. @sahlberg
Commits on Apr 21, 2011
  1. @sahlberg

    Qemu patch. Update the qemu patch to provide task management abort task

    sahlberg authored
    when the qemu cancels an i/o.
    
    Update the patch to use FUA on all writes when qemu is in writethrough
    mode.
    
    Update to apply and compile against current master for qemu
  2. @sahlberg

    Fix documentation of how to use 'zero-copy' reads.

    sahlberg authored
    The function to specify the read buffers is called
    scsi_task_add_data_in_buffer, not scsi_task_add_data_buffer
    
    Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Commits on Apr 19, 2011
  1. @sahlberg

    Add 'zero-copy' in libiscsi for reads.

    sahlberg authored
    It is not real zero-copy since the data is still copied in the kernel,
    but it avoids copying the data inside libiscsi as well as in the callback.
    
    For SCSI tasks that will return data from the target, the application can now
    specify application buffers for libiscsi to read the data directly into.
    This is done by calling scsi_task_add_data_in_buffer(task, ...
    
    These buffers need not be linear, you can specify different areas to read into
    by calling this function several times.
    
    See examples/iscsiclient.c for an example.
Commits on Apr 18, 2011
  1. @sahlberg
  2. @sahlberg
  3. @sahlberg
Commits on Apr 16, 2011
  1. @sahlberg

    Add a few more tests of READ10 with a mismatch between the amount of …

    sahlberg authored
    …data
    
    specified in the CDB XFERLENGTH and the iSCSI EDTL
  2. @sahlberg
  3. @sahlberg
  4. @sahlberg

    Add a simple SCSI test tool.

    sahlberg authored
    For now focused on SBC but should be enhanced to cover other commandsets too
  5. @sahlberg
  6. @sahlberg
  7. @sahlberg
  8. @sahlberg

    In iscsi_scsi_response_cb()

    sahlberg authored
    dont pick task up from the argument, since this callback can be invoked
    from places where we dont have/know the task strucutre and it is thus NULL.
    
    Instead pick it up from scsi_cbstruct.
    
    This prevents a SEGV when processing REJECT to SCSI commands.
    (the scsi command callback dereferences the task pointer)
Commits on Apr 15, 2011
  1. @sahlberg
  2. @sahlberg

    Add support for READ6

    sahlberg authored
Commits on Apr 13, 2011
  1. @sahlberg

    TCP KEEPALIVE support

    sahlberg authored
    Add tcp keeplaive support on platforms that support these socket options.
    Set default to fail the socket after 120 seconds
Commits on Apr 10, 2011
  1. @sahlberg
  2. @sahlberg

    Target initiated NOP:

    sahlberg authored
    Initial support to try to respond to target initiated NOPs.
Commits on Apr 9, 2011
  1. @sahlberg

    Add RESERVATION CONFLICT

    sahlberg authored
    From Richard Sharpe,  add support to handle when a target responds with
    RESERVATION CONFLICT to a scsi i/o
Commits on Apr 6, 2011
  1. @sahlberg
Commits on Apr 5, 2011
  1. @sahlberg
Commits on Apr 4, 2011
  1. @sahlberg
  2. @sahlberg

    READ10: only set R flag in iscsi if we are reading >0 blocks.

    sahlberg authored
    If we are reading 0 blocks, the R flag should be clear
  3. @sahlberg
Commits on Apr 2, 2011
  1. @sahlberg

    Use ioctl(FIONREAD) to determine how many bytes are readable in the s…

    sahlberg authored
    …ocket
    
    and make sure we dont try to read mor than that.
Commits on Mar 27, 2011
  1. @sahlberg

    From Richard Sharpe

    sahlberg authored
    Add a mechanism where residual overflow/underflow can be reportad back to
    the application
    
    We probably need somethinf for bidir residuals at some stage too
  2. @sahlberg
  3. @sahlberg
Something went wrong with that request. Please try again.