aboutsummaryrefslogtreecommitdiffstats
path: root/nbd
AgeCommit message (Expand)AuthorFilesLines
2018-03-01nbd/client: fix error messages in nbd_handle_reply_errVladimir Sementsov-Ogievskiy3-18/+18
2018-03-01nbd: BLOCK_STATUS constantsVladimir Sementsov-Ogievskiy1-0/+10
2018-02-09Include qapi/error.h exactly where neededMarkus Armbruster1-1/+0
2018-01-26qapi: add nbd-server-removeVladimir Sementsov-Ogievskiy1-0/+13
2018-01-17nbd/server: structurize option reply sendingVladimir Sementsov-Ogievskiy1-27/+13
2018-01-17nbd/server: Add helper functions for parsing option payloadEric Blake1-60/+62
2018-01-17nbd/server: Add va_list form of nbd_negotiate_send_rep_err()Eric Blake1-6/+18
2018-01-17nbd/server: Better error for NBD_OPT_EXPORT_NAME failureEric Blake1-1/+1
2018-01-17nbd/server: refactor negotiation functions parametersVladimir Sementsov-Ogievskiy1-84/+84
2018-01-17nbd/server: Hoist nbd_reject_length() earlierEric Blake1-29/+29
2018-01-10nbd: rename nbd_option and nbd_opt_replyVladimir Sementsov-Ogievskiy1-6/+6
2018-01-09nbd/server: add additional assert to nbd_export_putVladimir Sementsov-Ogievskiy1-0/+6
2018-01-08nbd/server: Optimize final chunk of sparse readEric Blake1-6/+7
2018-01-08nbd/server: Implement sparse reads atop structured replyEric Blake2-3/+76
2017-11-28nbd/server: CVE-2017-15118 Stack smash on large export nameEric Blake1-0/+4
2017-11-28nbd/server: CVE-2017-15119 Reject options larger than 32MEric Blake1-0/+6
2017-11-17nbd/server: Fix error reporting for bad requestsEric Blake1-24/+12
2017-11-17nbd/client: Don't hard-disconnect on ESHUTDOWN from serverEric Blake1-6/+0
2017-11-17nbd/client: Use error_prepend() correctlyEric Blake1-24/+26
2017-11-09nbd/server: Fix structured read of length 0Eric Blake2-1/+21
2017-11-09nbd: Fix struct name for structured readsEric Blake1-1/+1
2017-11-09nbd/client: Nicer trace of structured replyEric Blake2-2/+4
2017-11-08nbd/server: fix nbd_negotiate_handle_infoVladimir Sementsov-Ogievskiy1-1/+2
2017-10-30nbd: Minimal structured read for clientVladimir Sementsov-Ogievskiy2-1/+12
2017-10-30nbd: Move nbd_read() to common headerEric Blake1-9/+0
2017-10-30nbd/client: prepare nbd_receive_reply for structured replyVladimir Sementsov-Ogievskiy2-23/+84
2017-10-30nbd/client: refactor nbd_receive_starttlsVladimir Sementsov-Ogievskiy2-18/+42
2017-10-30nbd/server: Include human-readable message in structured errorsEric Blake2-8/+14
2017-10-30nbd: Minimal structured read for serverVladimir Sementsov-Ogievskiy2-10/+99
2017-10-30nbd/server: Refactor zero-length option checkEric Blake1-28/+46
2017-10-30nbd/server: Simplify nbd_negotiate_options loopEric Blake1-15/+4
2017-10-30nbd/server: Report error for write to read-only exportEric Blake1-1/+2
2017-10-30nbd: Expose constants and structs for structured readEric Blake3-1/+30
2017-10-30nbd: Move nbd_errno_to_system_errno() to public headerEric Blake4-45/+37
2017-10-30nbd: Include error names in trace messagesEric Blake5-4/+30
2017-10-13nbd: header constants indentingVladimir Sementsov-Ogievskiy1-17/+17
2017-10-13nbd/server: simplify reply transmissionVladimir Sementsov-Ogievskiy1-25/+24
2017-10-13nbd/server: refactor nbd_co_send_simple_reply parametersVladimir Sementsov-Ogievskiy1-6/+7
2017-10-13nbd/server: do not use NBDReply structureVladimir Sementsov-Ogievskiy1-21/+15
2017-10-12nbd/server: structurize simple reply header sendingVladimir Sementsov-Ogievskiy2-24/+14
2017-10-12nbd: rename some simple-request related objects to be _simple_Vladimir Sementsov-Ogievskiy4-10/+10
2017-10-12NBD: use g_new() family of functionsMarc-André Lureau1-2/+2
2017-09-06nbd: Use new qio_channel_*_all() functionsEric Blake2-79/+7
2017-08-30nbd/client: fix nbd_send_request to return intVladimir Sementsov-Ogievskiy1-1/+1
2017-08-30nbd/client: refactor nbd_receive_replyVladimir Sementsov-Ogievskiy1-3/+9
2017-08-30nbd/client: refactor nbd_read_eofVladimir Sementsov-Ogievskiy2-14/+24
2017-08-30nbd/client: fix nbd_opt_goVladimir Sementsov-Ogievskiy1-2/+0
2017-08-15nbd: Fix order of bdrv_set_perm and bdrv_invalidate_cacheKevin Wolf1-9/+11
2017-08-15nbd: Fix trace message for disconnectEric Blake1-1/+1
2017-08-01trace-events: fix code style: print 0x before hex numbersVladimir Sementsov-Ogievskiy1-9/+9
2017-07-28nbd: fix memory leak in nbd_opt_go()Philippe Mathieu-Daudé1-3/+5
2017-07-17nbd: Fix server reply to NBD_OPT_EXPORT_NAME of older clientsEric Blake2-10/+16
2017-07-17nbd: Trace client command being sentEric Blake2-2/+3
2017-07-17nbd: Fix iotests failure due to changed client error messageEric Blake1-3/+2
2017-07-14nbd: Implement NBD_INFO_BLOCK_SIZE on clientEric Blake2-12/+70
2017-07-14nbd: Implement NBD_INFO_BLOCK_SIZE on serverEric Blake2-4/+45
2017-07-14nbd: Implement NBD_OPT_GO on clientEric Blake3-2/+130
2017-07-14nbd: Implement NBD_OPT_GO on serverEric Blake2-3/+179
2017-07-14nbd: Refactor reply to NBD_OPT_EXPORT_NAMEEric Blake1-22/+28
2017-07-14nbd: Simplify trace of client flags in negotiationEric Blake2-7/+3
2017-07-14nbd: Expose and debug more NBD constantsEric Blake5-37/+147
2017-07-14nbd: Don't bother tracing an NBD_OPT_ABORT response failureEric Blake2-12/+4
2017-07-14nbd: Create struct for tracking export infoEric Blake1-22/+22
2017-07-10nbd: use generic trace subsystem instead of TRACE macroVladimir Sementsov-Ogievskiy4-95/+119
2017-07-10nbd: refactor tracingVladimir Sementsov-Ogievskiy2-24/+9
2017-07-10nbd/server: rename clientflags var in nbd_negotiate_optionsVladimir Sementsov-Ogievskiy1-19/+19
2017-07-10nbd/server: fix TRACE in nbd_negotiate_send_rep_lenVladimir Sementsov-Ogievskiy1-1/+1
2017-07-10nbd/client: refactor TRACE of NBD_MAGICVladimir Sementsov-Ogievskiy1-9/+2
2017-07-10nbd/common: nbd_tls_handshake: remove extra TRACEVladimir Sementsov-Ogievskiy1-3/+1
2017-07-10nbd/server: add errp to nbd_send_reply()Vladimir Sementsov-Ogievskiy1-8/+9
2017-07-10nbd/server: use errp instead of LOGVladimir Sementsov-Ogievskiy1-106/+160
2017-07-10nbd/server: refactor nbd_negotiateVladimir Sementsov-Ogievskiy1-9/+3
2017-07-10nbd/server: nbd_negotiate: return 1 on NBD_OPT_ABORTVladimir Sementsov-Ogievskiy1-5/+15
2017-06-15nbd/server: refactor nbd_tripVladimir Sementsov-Ogievskiy1-33/+20
2017-06-15nbd/server: rename rc to retVladimir Sementsov-Ogievskiy1-19/+19
2017-06-15nbd/server: get rid of fail: return rcVladimir Sementsov-Ogievskiy1-16/+12
2017-06-15nbd/server: nbd_negotiate: fix error pathVladimir Sementsov-Ogievskiy1-1/+2
2017-06-15nbd/server: remove NBDClientNewDataVladimir Sementsov-Ogievskiy1-18/+7
2017-06-15nbd/server: refactor nbd_co_receive_requestVladimir Sementsov-Ogievskiy1-28/+13
2017-06-15nbd/server: get rid of EAGAIN dead codeVladimir Sementsov-Ogievskiy1-11/+7
2017-06-15nbd/server: refactor nbd_co_send_replyVladimir Sementsov-Ogievskiy1-4/+4
2017-06-15nbd/server: get rid of ssize_tVladimir Sementsov-Ogievskiy1-10/+8
2017-06-15nbd/server: get rid of nbd_negotiate_read and friendsVladimir Sementsov-Ogievskiy1-85/+22
2017-06-15nbd: make nbd_drop publicVladimir Sementsov-Ogievskiy3-26/+28
2017-06-15nbd: rename read_sync and friendsVladimir Sementsov-Ogievskiy4-46/+42
2017-06-15nbd: Fix regression on resiliency to port scanEric Blake1-9/+15
2017-06-07nbd: Fully initialize client in case of failed negotiationEric Blake1-5/+3
2017-06-06nbd/client.c: use errp instead of LOGVladimir Sementsov-Ogievskiy1-13/+17
2017-06-06nbd: add errp to read_sync, write_sync and drop_syncVladimir Sementsov-Ogievskiy3-50/+54
2017-06-06nbd: add errp parameter to nbd_wr_syncv()Vladimir Sementsov-Ogievskiy2-9/+7
2017-06-06nbd: read_sync and friends: return 0 on successVladimir Sementsov-Ogievskiy3-93/+88
2017-06-06nbd: strict nbd_wr_syncvVladimir Sementsov-Ogievskiy1-5/+6
2017-03-27nbd-client: fix handling of hungup connectionsPaolo Bonzini1-1/+1
2017-03-14nbd/client: fix drop_sync [CVE-2017-2630]Vladimir Sementsov-Ogievskiy1-1/+1
2017-02-28nbd/server: Use real permissions for NBD exportsKevin Wolf1-2/+9
2017-02-28block: Add error parameter to blk_insert_bs()Kevin Wolf1-1/+5
2017-02-28block: Add permissions to blk_new()Kevin Wolf1-1/+2
2017-02-21nbd: convert to use qio_channel_yieldPaolo Bonzini3-75/+30
2017-01-23io: change the QIOTask callback signatureDaniel P. Berrange2-7/+4
2017-01-03aio: add AioPollFn and io_poll() interfaceStefan Hajnoczi1-5/+4
2016-11-10nbd: Don't inf-loop on early EOFEric Blake1-6/+7
2016-11-02nbd: Implement NBD_CMD_WRITE_ZEROES on serverEric Blake1-2/+40
2016-11-02nbd: Improve server handling of shutdown requestsEric Blake3-0/+29
2016-11-02nbd: Refactor conversion to errno to silence checkpatchEric Blake1-6/+14
2016-11-02nbd: Support shorter handshakeEric Blake2-5/+18
2016-11-02nbd: Less allocation during NBD_OPT_LISTEric Blake1-72/+67
2016-11-02nbd: Let client skip portions of server replyEric Blake1-14/+33
2016-11-02nbd: Let server know when client gives up negotiationEric Blake1-0/+30
2016-11-02nbd: Share common option-sending code in clientEric Blake2-148/+109
2016-11-02nbd: Send message along with server NBD_REP_ERR errorsEric Blake1-19/+59
2016-11-02nbd: Share common reply-sending code in serverEric Blake1-25/+27
2016-11-02nbd: Rename struct nbd_request and nbd_replyEric Blake2-8/+8
2016-11-02nbd: Rename NBDRequest to NBDRequestDataEric Blake1-10/+10
2016-11-02nbd: Treat flags vs. command type as separate fieldsEric Blake3-25/+27
2016-11-02nbd: Add qemu-nbd -D for human-readable descriptionEric Blake2-10/+29
2016-10-27nbd: set name for all I/O channels createdDaniel P. Berrange2-0/+2
2016-09-05nbd-server: Use a separate BlockBackendKevin Wolf1-5/+20
2016-08-03nbd: Limit nbdflags to 16 bitsEric Blake2-19/+19
2016-08-03nbd: Fix bad flag detection on serverEric Blake1-1/+2
2016-07-20block: Convert BB interface to byte-based discardsEric Blake1-14/+5
2016-07-20nbd: Drop unused offset parameterEric Blake2-6/+3
2016-07-13coroutine: move entry argument to qemu_coroutine_createPaolo Bonzini1-6/+6
2016-06-17nbd/client.c: Correct trace format stringPeter Maydell1-1/+1
2016-06-16nbd: Avoid magic number for NBD max name sizeEric Blake2-3/+3
2016-06-16nbd: Detect servers that send unexpected error valuesEric Blake1-1/+3
2016-06-16nbd: Clean up ioctl handling of qemu-nbd -cEric Blake1-5/+15
2016-06-16nbd: Group all Linux-specific ioctl code in one placeEric Blake2-18/+13
2016-06-16nbd: Reject unknown request flagsEric Blake1-0/+5
2016-06-16nbd: Improve server handling of bogus commandsEric Blake1-19/+47
2016-06-16nbd: Quit server after any write errorEric Blake1-9/+23
2016-06-16nbd: More debug typo fixes, use correct formatsEric Blake2-40/+49
2016-06-16nbd: Use BDRV_REQ_FUA for better FUA where supportedEric Blake1-10/+6
2016-06-16nbd: Don't use cpu_to_*w() functionsPeter Maydell1-5/+5
2016-06-16nbd: Don't use *_to_cpup() functionsPeter Maydell2-9/+9
2016-05-29nbd: Don't trim unrequested bytesEric Blake1-6/+14
2016-05-19qemu-common: stop including qemu/bswap.h from qemu-common.hPaolo Bonzini1-0/+1
2016-05-18Fix some typos found by codespellStefan Weil1-1/+1
2016-05-12block: Allow BDRV_REQ_FUA through blk_pwrite()Eric Blake1-1/+1
2016-04-22nbd: Don't mishandle unaligned client requestsEric Blake1-6/+4
2016-04-15nbd: Don't kill server on client that doesn't request TLSEric Blake1-2/+13
2016-04-15nbd: Don't fail handshake on NBD_OPT_LIST descriptionsEric Blake1-2/+21
2016-04-08nbd: do not hang nbd_wr_syncv if outside a coroutine and no available dataPaolo Bonzini1-1/+4
2016-04-08nbd: Don't kill server when client requests unknown optionEric Blake1-1/+4
2016-04-08nbd: Fix NBD unsupported optionsAlex Bligh1-10/+45
2016-04-08nbd: Improve debug traces on little-endianEric Blake2-6/+7
2016-04-08nbd: Avoid bitrot in TRACE() usageEric Blake1-6/+9
2016-04-08nbd: Return correct error for write to read-only exportEric Blake1-0/+1
2016-04-05nbd: Fix poor debug messageEric Blake1-1/+1
2016-03-22include/qemu/osdep.h: Don't include qapi/error.hMarkus Armbruster3-0/+3
2016-02-23all: Clean up includesPeter Maydell1-4/+0
2016-02-16nbd: implement TLS support in the protocol negotiationDaniel P. Berrange4-8/+275
2016-02-16nbd: use "" as a default export name if none providedDaniel P. Berrange2-2/+3
2016-02-16nbd: always query export list in fixed new style protocolDaniel P. Berrange2-3/+194
2016-02-16nbd: make client request fixed new style if advertisedDaniel P. Berrange1-10/+17
2016-02-16nbd: make server compliant with fixed newstyle specDaniel P. Berrange1-23/+46
2016-02-16nbd: invert client logic for negotiating protocol versionDaniel P. Berrange1-31/+29
2016-02-16nbd: convert to using I/O channels for actual socket I/ODaniel P. Berrange4-124/+152
2016-02-09nbd: avoid unaligned uint64_t storeJohn Snow1-10/+10
2016-02-04all: Clean up includesPeter Maydell3-0/+3
2016-02-02nbd: Switch from close to eject notifierMax Reitz1-0/+13
2016-02-02nbd: client_close on error in nbd_co_client_startMax Reitz1-2/+1
2016-01-26Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into stagingPeter Maydell1-0/+2
2016-01-26nbd: add missed aio_context_acquire in nbd_export_newDenis V. Lunev1-0/+2
2016-01-20block: Rename BDRV_O_INCOMING to BDRV_O_INACTIVEKevin Wolf1-1/+1
2016-01-15nbd-server: do not exit on failed memory allocationPaolo Bonzini1-1/+5
2016-01-15nbd-server: do not check request length except for reads and writesPaolo Bonzini1-7/+7
2016-01-15nbd-server: Coroutine based negotiationFam Zheng1-47/+103
2016-01-15nbd: Split nbd.cFam Zheng5-0/+1591