aboutsummaryrefslogtreecommitdiffstats
path: root/qemu-nbd.c
AgeCommit message (Expand)AuthorFilesLines
2019-11-18nbd: Don't send oversize stringsEric Blake1-0/+9
2019-10-14qemu-nbd: Support help options for --objectKevin Wolf1-1/+8
2019-09-05nbd: Prepare for NBD_CMD_FLAG_FAST_ZEROEric Blake1-0/+1
2019-09-05nbd: Improve per-export flag handling in serverEric Blake1-3/+3
2019-09-05nbd: Advertise multi-conn for shared read-only connectionsEric Blake1-1/+1
2019-09-03socket: Add num connections to qio_net_listener_open_sync()Juan Quintela1-1/+1
2019-08-15block/nbd: use non-blocking io channel for nbd negotiationVladimir Sementsov-Ogievskiy1-1/+1
2019-06-13qemu-nbd: Do not close stderrMax Reitz1-1/+2
2019-06-13qemu-nbd: Add --pid-file optionMax Reitz1-0/+11
2019-06-12Include qemu-common.h exactly where neededMarkus Armbruster1-0/+1
2019-06-12Include qemu/module.h where needed, drop it from qemu-common.hMarkus Armbruster1-1/+1
2019-06-11qemu-common: Move tcg_enabled() etc. to sysemu/tcg.hMarkus Armbruster1-0/+1
2019-05-07qemu-nbd: Look up flag names in arrayMax Reitz1-29/+17
2019-04-17log: Make glib logging go through QEMUChristophe Fergeau1-1/+1
2019-03-06qemu-nbd: add support for authorization of TLS clientsDaniel P. Berrange1-1/+18
2019-02-04qemu-nbd: Deprecate qemu-nbd --partitionEric Blake1-0/+2
2019-01-21qemu-nbd: Add --list optionEric Blake1-13/+142
2019-01-21nbd/client: Move export name into NBDExportInfoEric Blake1-2/+4
2019-01-21qemu-nbd: Avoid strtol open-codingEric Blake1-19/+9
2019-01-21nbd/server: Favor [u]int64_t over off_tEric Blake1-18/+11
2019-01-21qemu-nbd: Sanity check partition boundsEric Blake1-1/+21
2019-01-14qemu-nbd: Add --bitmap=NAME optionEric Blake1-2/+8
2019-01-14nbd: Merge nbd_export_bitmap into nbd_export_newEric Blake1-2/+3
2019-01-14nbd: Merge nbd_export_set_name into nbd_export_newEric Blake1-5/+3
2019-01-14qemu-nbd: Rename 'exp' variable clashing with math::exp() symbolPhilippe Mathieu-Daudé1-9/+10
2019-01-05qemu-nbd: Fail earlier for -c/-d on non-linuxEric Blake1-2/+19
2019-01-04qemu-nbd: Use program name in error messagesEric Blake1-0/+1
2018-10-19qom: Clean up error reporting in user_creatable_add_opts_foreach()Markus Armbruster1-5/+3
2018-10-19Use error_fatal to simplify obvious fatal errors (again)Markus Armbruster1-5/+1
2018-10-03nbd/server: drop old-style negotiationVladimir Sementsov-Ogievskiy1-1/+1
2018-10-03qemu-nbd: drop old-style negotiationVladimir Sementsov-Ogievskiy1-19/+6
2018-10-03qemu-nbd: Document --tls-credsEric Blake1-0/+1
2018-05-23block: Cancel job in bdrv_close_all() callersKevin Wolf1-1/+7
2018-03-12Polish the version strings containing the package versionThomas Huth1-1/+1
2018-02-09Move include qemu/option.h from qemu-common.h to actual usersMarkus Armbruster1-1/+1
2018-02-09Include qapi/qmp/qdict.h exactly where neededMarkus Armbruster1-0/+1
2017-12-21blockdev: convert qemu-nbd server to QIONetListenerDaniel P. Berrange1-37/+24
2017-09-04qapi: Change data type of the FOO_lookup generated for enum FOOMarc-André Lureau1-1/+1
2017-09-04qapi: Generate FOO_str() macro for QAPI enum FOOMarkus Armbruster1-1/+0
2017-09-04qapi: Drop superfluous qapi_enum_parse() parameter maxMarkus Armbruster1-1/+0
2017-08-08maint: Include bug-reporting info in --help outputEric Blake1-1/+1
2017-07-24maint: Reorder include directives for qemu-{nbd, io}Eric Blake1-4/+4
2017-07-24qemu-nbd: Update version stringEric Blake1-2/+3
2017-07-14nbd: Implement NBD_INFO_BLOCK_SIZE on clientEric Blake1-1/+1
2017-07-14nbd: Create struct for tracking export infoEric Blake1-6/+4
2017-06-15qemu-nbd: Ignore SIGPIPEMax Reitz1-0/+4
2017-06-15nbd: Fix regression on resiliency to port scanEric Blake1-2/+2
2017-06-07nbd: Fully initialize client in case of failed negotiationEric Blake1-1/+1
2017-06-06nbd/client.c: use errp instead of LOGVladimir Sementsov-Ogievskiy1-1/+2
2017-05-09sockets: Limit SocketAddressLegacy to external interfacesMarkus Armbruster1-9/+8
2017-05-09sockets: Rename SocketAddress to SocketAddressLegacyMarkus Armbruster1-6/+6
2017-05-09qobject: Use simpler QDict/QList scalar insertion macrosEric Blake1-1/+1
2017-03-19qemu-ga: obey LISTEN_PID when using systemd socket activationPaolo Bonzini1-92/+8
2017-02-16qemu-nbd: Implement socket activation.Richard W.M. Jones1-9/+163
2016-11-02nbd: Add qemu-nbd -D for human-readable descriptionEric Blake1-1/+11
2016-10-24qemu-nbd: Add --fork optionMax Reitz1-1/+16
2016-10-12trace: provide mechanism for registering trace eventsDaniel P. Berrange1-0/+1
2016-10-06qemu-nbd: Shrink image size by specified offsetTomáš Golembiovský1-0/+8
2016-09-05nbd-server: Use a separate BlockBackendKevin Wolf1-2/+2
2016-08-03nbd: Limit nbdflags to 16 bitsEric Blake1-2/+2
2016-06-28trace: enable tracing in qemu-nbdDenis V. Lunev1-1/+18
2016-06-16nbd: Don't use *_to_cpup() functionsPeter Maydell1-2/+2
2016-05-20Use &error_fatal when initializing crypto on qemu-{img,io,nbd}Eduardo Habkost1-4/+1
2016-05-19qemu-common: stop including qemu/bswap.h from qemu-common.hPaolo Bonzini1-0/+1
2016-05-12nbd: Switch to byte-based block accessEric Blake1-4/+9
2016-04-28qom: -object error messages lost location, restore itMarkus Armbruster1-2/+1
2016-04-15nbd: fix assert() on qemu-nbd stopPavel Butsykin1-1/+1
2016-04-12block: initialize qcrypto API at startupDaniel P. Berrange1-0/+7
2016-04-08qemu-nbd: Document -x optionEric Blake1-0/+1
2016-03-30qemu-nbd: Call blk_set_enable_write_cache() explicitlyKevin Wolf1-1/+4
2016-03-22util: move declarations out of qemu-common.hVeronia Bahaa1-0/+1
2016-03-22include/qemu/osdep.h: Don't include qapi/error.hMarkus Armbruster1-0/+1
2016-03-18qapi: Don't special-case simple union wrappersEric Blake1-3/+3
2016-03-17blockdev: Split monitor reference from BB creationMax Reitz1-2/+2
2016-03-05util: Shorten references into SocketAddressEric Blake1-4/+5
2016-02-23all: Clean up includesPeter Maydell1-2/+0
2016-02-22qemu-nbd: use no_argument/required_argument constantsDaniel P. Berrange1-25/+26
2016-02-22qemu-nbd: don't overlap long option values with short optionsDaniel P. Berrange1-7/+7
2016-02-22qemu-nbd: allow specifying image as a set of options argsDaniel P. Berrange1-5/+38
2016-02-16nbd: enable use of TLS with qemu-nbd serverDaniel P. Berrange1-1/+61
2016-02-16nbd: implement TLS support in the protocol negotiationDaniel P. Berrange1-1/+3
2016-02-16nbd: allow setting of an export name for qemu-nbd serverDaniel P. Berrange1-2/+12
2016-02-16nbd: convert to using I/O channels for actual socket I/ODaniel P. Berrange1-7/+3
2016-02-16nbd: convert qemu-nbd server to use I/O channels for connection setupDaniel P. Berrange1-38/+53
2016-02-16qemu-nbd: add support for --object command line argDaniel P. Berrange1-0/+34
2016-02-04all: Clean up includesPeter Maydell1-4/+1
2016-01-15nbd: Always call "close_fn" in nbd_client_newFam Zheng1-7/+3
2016-01-13error: Clean up errors with embedded newlines (again)Markus Armbruster1-3/+2
2016-01-13error: Strip trailing '\n' from error string arguments (again)Markus Armbruster1-2/+2
2016-01-13qemu-io qemu-nbd: Use error_report() etc. instead of fprintf()Markus Armbruster1-1/+1
2016-01-13error: Use error_reportf_err() where it makes obvious senseMarkus Armbruster1-6/+5
2016-01-13qemu-nbd: Clean up "Failed to load snapshot" error messageMarkus Armbruster1-9/+5
2016-01-13error: Use error_report_err() instead of ad hoc printsMarkus Armbruster1-2/+1
2016-01-13error: Use error_report_err() where appropriate (again)Markus Armbruster1-1/+1
2016-01-13qemu-nbd: Replace BSDism <err.h> by error_report()Markus Armbruster1-44/+77
2015-12-17qapi: Don't let implicit enum MAX member collideEric Blake1-1/+1
2015-11-02sockets: Convert to new qapi union layoutEric Blake1-8/+8
2015-10-16qemu-nbd: always compile in --aio=MODE optionStefan Hajnoczi1-8/+0
2015-09-25qemu-nbd: convert to use the QAPI SocketAddress objectDaniel P. Berrange1-64/+38
2015-09-11Trivial: fix commandline help messageAndrey Korolyov1-1/+1
2015-08-14qemu-nbd: remove unnecessary qemu_notify_event()Paolo Bonzini1-1/+0
2015-06-22qerror: Move #include out of qerror.hMarkus Armbruster1-0/+1
2015-06-22QemuOpts: Wean off qerror_report_err()Markus Armbruster1-1/+2
2015-06-05qemu-nbd: Switch to qemu_set_fd_handlerFam Zheng1-4/+17
2015-03-18nbd: Set block size to BDRV_SECTOR_SIZEMax Reitz1-3/+2
2015-03-18nbd: Fix potential signed overflow issuesMax Reitz1-2/+3
2015-03-18qemu-nbd: fork() can failMax Reitz1-1/+3
2015-03-18nbd: Handle blk_getlength() failureMax Reitz1-1/+9
2015-03-18qemu-nbd: Detect unused partitions by system == 0Max Reitz1-2/+4
2015-02-26Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2015-02-18' into...Peter Maydell1-8/+4
2015-02-18error: Use error_report_err() where appropriateMarkus Armbruster1-8/+4
2015-02-16qemu-nbd: Use blk_new_open() in main()Max Reitz1-16/+9
2015-02-06nbd: Improve error messagesMax Reitz1-1/+6
2014-12-10qemu-nbd: Use BlockBackend where reasonableMax Reitz1-5/+5
2014-12-10nbd: Change external interface to BlockBackendMax Reitz1-1/+1
2014-10-20block: Make BlockBackend own its BlockDriverStateMarkus Armbruster1-1/+0
2014-10-20block: Connect BlockBackend to BlockDriverStateMarkus Armbruster1-2/+2
2014-10-20block: New BlockBackendMarkus Armbruster1-1/+4
2014-10-20block: Split bdrv_new_root() off bdrv_new()Markus Armbruster1-1/+1
2014-10-03block: Drop superfluous conditionals around qemu_opts_del()Markus Armbruster1-3/+1
2014-09-25qemu-nbd: Destroy the BlockDriverState properlyMarkus Armbruster1-1/+1
2014-09-22async: aio_context_new(): Handle event_notifier_init failureChrysostomos Nanakos1-1/+5
2014-09-08qemu-nbd: fix indentation and coding stylePeter Lieven1-36/+39
2014-09-08qemu-nbd: add option to set detect-zeroes modePeter Lieven1-0/+25
2014-06-30nbd: Shutdown socket before closing.Hani Benhabiles1-0/+1
2014-05-28qemu-nbd: Don't use qerror_report()Markus Armbruster1-3/+3
2014-05-24nbd: Miscellaneous typo fixes.Hani Benhabiles1-1/+1
2014-05-24nbd: Close socket on negotiation failure.Hani Benhabiles1-1/+3
2014-04-22block: Add errp to bdrv_new()Kevin Wolf1-1/+2
2014-03-17qemu-nbd: Fix coverity issuesPaolo Bonzini1-4/+13
2014-02-25Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into stagingPeter Maydell1-1/+53
2014-02-21nbd: move socket wrappers to qemu-nbdPaolo Bonzini1-0/+52
2014-02-21block: Add reference parameter to bdrv_open()Max Reitz1-1/+1
2014-02-21block: Change BDS parameter of bdrv_open() to **Max Reitz1-1/+1
2014-02-20util: Split out exec_dir from os_find_datadirFam Zheng1-0/+1
2013-12-04qemu-nbd: add doc for option -fWenchao Xia1-0/+1
2013-12-04qemu-nbd: support internal snapshot exportWenchao Xia1-2/+44
2013-09-12block: Error parameter for open functionsMax Reitz1-2/+4
2013-08-22aio / timers: Untangle include filesAlex Bligh1-0/+1
2013-04-15Add -f FMT / --format FMT arg to qemu-nbdDaniel P. Berrange1-2/+18
2013-03-15block: Add options QDict to bdrv_open() prototypeKevin Wolf1-1/+1
2013-02-22qemu-nbd: add --discard optionPaolo Bonzini1-3/+15
2012-12-19block: move include files to include/block/Paolo Bonzini1-2/+2
2012-11-12qemu-nbd: initialize main loop before block layerPaolo Bonzini1-1/+1
2012-09-19qemu-nbd: rewrite termination conditions to use a state machinePaolo Bonzini1-10/+27
2012-09-19nbd: add notification for closing an NBDExportPaolo Bonzini1-1/+1
2012-09-19nbd: add reference counting to NBDExportPaolo Bonzini1-0/+2
2012-09-19nbd: do not close BlockDriverState in nbd_export_closePaolo Bonzini1-0/+1
2012-07-24qemu-nbd: add --cache and --aio optionsPaolo Bonzini1-2/+40
2012-07-24qemu-nbd: reorganize help messagePaolo Bonzini1-11/+22
2012-04-19nbd: do not include block_int.hPaolo Bonzini1-2/+2
2012-04-19nbd: consistently return negative errno valuesPaolo Bonzini1-7/+8
2012-04-19nbd: consistently check for <0 or >=0Paolo Bonzini1-13/+13
2012-02-17open /dev/nbd in nbd_client_threadPaolo Bonzini1-18/+16
2012-02-17do not chdir(/) in qemu-nbd before opening all filesMichael Tokarev1-1/+7
2012-01-06qemu-nbd: drop loop which can never loopStefan Hajnoczi1-6/+4
2011-12-22qemu-nbd: move client handling to nbd.cPaolo Bonzini1-10/+4
2011-12-22qemu-nbd: use common main loopPaolo Bonzini1-67/+45
2011-12-22qemu-nbd: introduce NBDExportPaolo Bonzini1-10/+5
2011-12-22qemu-nbd: remove data_size argument to nbd_tripPaolo Bonzini1-3/+1
2011-12-22qemu-nbd: remove offset argument to nbd_tripPaolo Bonzini1-2/+1
2011-11-11qemu-nbd: open the block device after starting the client threadPaolo Bonzini1-17/+17
2011-11-11qemu-nbd: fix socket creation racePaolo Bonzini1-15/+15
2011-11-11qemu-nbd: print error messages from the daemon through a pipePaolo Bonzini1-9/+59
2011-11-11qemu-nbd: move client to a threadPaolo Bonzini1-80/+93
2011-11-11qemu-nbd: rename socket variablePaolo Bonzini1-13/+12
2011-11-11qemu-nbd: trap SIGTERMPaolo Bonzini1-5/+29
2011-09-19nbd: support feature negotiationPaolo Bonzini1-7/+6
2011-09-09Fix include statements for qemu-common.hStefan Weil1-1/+1
2011-08-20Use glib memory allocation and free functionsAnthony Liguori1-2/+2
2011-06-14Darwin: Fix compilation warning regarding the deprecated daemon() functionAlexandre Raymond1-1/+1
2011-06-08block: clarify the meaning of BDRV_O_NOCACHEChristoph Hellwig1-1/+1
2010-12-17Remove NULL checks for bdrv_new return valueKevin Wolf1-2/+0
2010-09-21nbd: correctly manage default portLaurent Vivier1-3/+3
2010-09-21use qemu_blockalign consistentlyChristoph Hellwig1-1/+1
2010-09-08Merge remote branch 'kwolf/for-anthony' into stagingAnthony Liguori1-1/+3
2010-09-04Respect return value from nbd_client()Jes Sorensen1-1/+4
2010-09-04Remove unused argument for nbd_client()Jes Sorensen1-1/+1
2010-08-30nbd: Introduce NBD named exports.Laurent Vivier1-1/+3
2010-05-17qemu-nbd: Improve error reportingRyota Ozaki1-10/+24
2010-04-23Replace calls of old bdrv_openKevin Wolf1-1/+1
2010-03-27qemu-nbd: Fix invalid usage of the first argument of errxRyota Ozaki1-17/+17
2010-03-27qemu-nbd: Fix return value handling of bdrv_openRyota Ozaki1-1/+1
2010-03-17read-only: minor cleanupNaphtali Sprei1-0/+1
2010-01-26win32: pair qemu_memalign() with qemu_vfree()Herve Poussineau1-1/+1
2010-01-20Clean-up a little bit the RW related bits of BDRV_O_FLAGS. BDRV_O_RDONLY gone...Naphtali Sprei1-1/+1
2009-12-23qemu-nbd: fix OpenBSD linker warningBlue Swirl1-1/+2
2009-12-23Compile qemu-nbd also on OpenBSD and SolarisBlue Swirl1-0/+1
2009-07-31Fix Sparse warnings: "Using plain integer as NULL pointer"Blue Swirl1-16/+16
2009-07-16Update to a hopefully more future proof FSF addressBlue Swirl1-2/+1
2009-06-15Fix warning in qemu-nbd.cAnthony Liguori1-2/+6
2009-02-05toplevel: remove error handling from qemu_malloc() callers (Avi Kivity)aliguori1-2/+0
2009-01-08qemu-nbd: fix options: -b (--bind) expects an argument (IFACE) (Uri Lublin)aliguori1-1/+1
2009-01-04Update FSF address in GPL/LGPL boilerplateaurel321-1/+1
2008-10-26Fix undeclared symbol warnings from sparseblueswir11-1/+1
2008-10-14Expand cache= option and use write-through caching by defaultaliguori1-1/+1
2008-09-10qemu-nbd: remove useless parameter from nbd_negotiate() (Laurent Vivier)aliguori1-1/+1
2008-07-18Allow qemu-nbd --version to show the application name dynamically, byths1-2/+2
2008-07-03Allow QEMU to connect directly to an NBD server, by Laurent Vivier.ths1-2/+8
2008-07-03Allow to share a disk image via nbd, by Laurent Vivier.ths1-21/+75