• qemu-io leaks the request buffer whenever the read or write function isn't
    executed completely down the "normal" code path.
    
    [hch: also fix the aio and vectored variants the same way]
    
    Signed-off-by: Kevin Wolf <kwolf@redhat.com>
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Kevin Wolf authored
     
    Browse Code »
  • Add a -g flag to the open command and the main qemu-io command line to
    allow opening a file growable.  This is only allowed for protocols,
    mirroring the limitation exposed through bdrv_file_open.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: Kevin Wolf <kwolf@redhat.com>
    Christoph Hellwig authored
     
    Browse Code »
  • Fix up a couple of issues with validating the input of the various
    length arguments for the vectored I/O commands:
    
     - do the alignment check on each length instead the always 0 count argument
     - use a long long varibale for the cvtnum return value so that we can check
       wether it wasn't a number
     - check for a too large argument instead of truncating it
    
    Also refactor it into a common helper for all four calers and avoid parsing
    the numbers twice.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Reviewed-by: Kevin Wolf <kwolf@redhat.com>
    Christoph Hellwig authored
     
    Browse Code »
  • Address a couple of review comments from Kevin.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored
     
    Browse Code »