aboutsummaryrefslogtreecommitdiffstats
path: root/qemu-img.c
AgeCommit message (Expand)AuthorFilesLines
2019-10-28Revert "qemu-img: Check post-truncation size"Max Reitz1-35/+4
2019-10-28block: Pass truncate exact=true where reasonableMax Reitz1-1/+6
2019-10-28block: Add @exact parameter to bdrv_co_truncate()Max Reitz1-1/+1
2019-10-14qemu-img: Support help options for --objectKevin Wolf1-13/+21
2019-09-16block: Use QEMU_IS_ALIGNEDNir Soffer1-1/+1
2019-08-27block: define .*_part io handlers in BlockDriverVladimir Sementsov-Ogievskiy1-2/+2
2019-08-19qemu-img: Fix bdrv_has_zero_init() use in convertMax Reitz1-3/+8
2019-08-16Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into stagingPeter Maydell1-0/+5
2019-08-16Clean up inclusion of sysemu/sysemu.hMarkus Armbruster1-1/+0
2019-08-16Include qemu/main-loop.h lessMarkus Armbruster1-0/+1
2019-08-16qemu-img convert: Deprecate using -n and -o togetherKevin Wolf1-0/+5
2019-07-02block: include base when checking image chain for block allocationAndrey Shinkevich1-1/+1
2019-06-14qemu-img: Add salvaging mode to convertMax Reitz1-21/+69
2019-06-14qemu-img: Move quiet into ImgConvertStateMax Reitz1-6/+7
2019-06-14qemu-img: Fix options leakage in img_rebase()Max Reitz1-0/+3
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-0/+1
2019-06-04block: Add BlockBackend.ctxKevin Wolf1-2/+4
2019-05-28qemu-img: rebase: Reuse in-chain BlockDriverStateSam Eiderman1-10/+23
2019-05-28qemu-img: rebase: Reduce reads on in-chain rebaseSam Eiderman1-1/+24
2019-05-28qemu-img: rebase: Reuse parent BlockDriverStateSam Eiderman1-20/+9
2019-05-10qemu-img: Use zero writes after source backing EOFMax Reitz1-2/+9
2019-05-10qemu-img: Allow rebase with no input baseMax Reitz1-27/+34
2019-05-10qemu-img: Use IEC binary prefixes for size constantsStefano Garzarella1-2/+3
2019-04-30qemu-img: use buffer-based ioVladimir Sementsov-Ogievskiy1-9/+4
2019-04-30qemu-img: Make create hint at protocol optionsMax Reitz1-1/+12
2019-04-18block/qapi: Clean up how we print to monitor or stdoutMarkus Armbruster1-3/+3
2019-04-17qemu-img: Use error_vreport() in error_exit()Markus Armbruster1-4/+2
2019-04-17log: Make glib logging go through QEMUChristophe Fergeau1-1/+1
2019-04-02qemu-img: Enable BDRV_REQ_MAY_UNMAP in convertNir Soffer1-1/+2
2019-03-30qemu-img: Gracefully shutdown when map can't finishEric Blake1-5/+9
2019-03-30qemu-img: Report bdrv_block_status failuresEric Blake1-0/+2
2019-03-26qemu-img: Use BDRV_REQ_NO_FALLBACK for pre-zeroingKevin Wolf1-1/+1
2019-03-08block: iterate_format with account of whitelistingAndrey Shinkevich1-1/+1
2019-02-26Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into stagingPeter Maydell1-27/+37
2019-02-25block: bdrv_get_full_backing_filename_from_...'s ret. val.Max Reitz1-8/+4
2019-02-25block: Use bdrv_refresh_filename() to pullMax Reitz1-2/+9
2019-02-25qemu-img: fix error reporting for -objectDaniel P. Berrangé1-13/+13
2019-02-25block/snapshot: remove bdrv_snapshot_delete_by_id_or_nameDaniel Henrique Barboza1-4/+11
2019-02-22qemu-img: use qemu_iovec_init_bufVladimir Sementsov-Ogievskiy1-8/+2
2019-01-31qemu-io: Add generic function for reinitializing optind.Richard W.M. Jones1-1/+1
2018-11-21qemu-img: Fix leakMax Reitz1-0/+1
2018-11-21qemu-img: Fix typoMax Reitz1-1/+1
2018-11-12qemu-img: assert block_job_get() does not return NULL in img_commit()Liam Merwick1-0/+1
2018-11-05option: Make option help nicer to readMax Reitz1-2/+2
2018-08-15qemu-img: fix regression copying secrets during convertDaniel P. Berrangé1-17/+15
2018-07-30qemu-img: Add -C option for convert with copy offloadingFam Zheng1-4/+17
2018-07-23qemu-img: avoid overflow of min_sparse parameterPeter Lieven1-5/+11
2018-07-12qemu-img: align result of is_allocated_sectorsPeter Lieven1-6/+38
2018-07-10block: split flags in copy_rangeVladimir Sementsov-Ogievskiy1-1/+1
2018-07-05qemu-img: allow compressed not-in-order writesVladimir Sementsov-Ogievskiy1-5/+0
2018-06-15qemu-img: Fix assert when mapping unaligned raw fileEric Blake1-1/+1
2018-06-11qemu-img: Remove deprecated -s snapshot_id_or_name optionThomas Huth1-6/+1
2018-06-11qemu-img: Special post-backing convert handlingMax Reitz1-1/+25
2018-06-11qemu-img: Resolve relative backing paths in rebaseMax Reitz1-1/+22
2018-06-11qemu-img: Recognize no creation support in -o helpMax Reitz1-0/+10
2018-06-11qemu-img: Add print_amend_option_help()Max Reitz1-2/+28
2018-06-11qemu-option: Pull out "Supported options" printMax Reitz1-0/+1
2018-06-11block: Add Error parameter to bdrv_amend_optionsMax Reitz1-2/+2
2018-06-11qemu-img: Amendment support implies create_optsMax Reitz1-2/+5
2018-06-01qemu-img: Convert with copy offloadingFam Zheng1-2/+48
2018-05-23job: Move progress fields to JobKevin Wolf1-2/+6
2018-05-23job: Add job_is_ready()Kevin Wolf1-1/+1
2018-05-23job: Move completion and cancellation to JobKevin Wolf1-1/+1
2018-05-23job: Move single job finalisation to JobKevin Wolf1-1/+1
2018-05-23job: Move BlockJobCreateFlags to JobKevin Wolf1-1/+1
2018-05-23job: Replace BlockJob.completed with job_is_completed()Kevin Wolf1-2/+2
2018-05-23job: Add reference countingKevin Wolf1-2/+2
2018-05-20qemu-img: remove references to GEN_DOCSJohn Snow1-2/+0
2018-05-15qemu-img: Use only string options in img_open_optsMax Reitz1-2/+2
2018-05-15qemu-img: Check post-truncation sizeMax Reitz1-4/+35
2018-05-04qobject: Replace qobject_incref/QINCREF qobject_decref/QDECREFMarc-André Lureau1-9/+9
2018-03-12Polish the version strings containing the package versionThomas Huth1-1/+1
2018-03-06Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into stagingPeter Maydell1-1/+1
2018-03-02Include less of the generated modular QAPI headersMarkus Armbruster1-1/+1
2018-03-02qemu-img: Make resize error message more generalMax Reitz1-1/+1
2018-02-09Include qapi/qmp/qbool.h exactly where neededMarkus Armbruster1-1/+0
2018-02-09Include qapi/qmp/qstring.h exactly where neededMarkus Armbruster1-0/+1
2018-02-09Include qapi/qmp/qdict.h exactly where neededMarkus Armbruster1-0/+2
2018-02-09Drop superfluous includes of qapi/qmp/qerror.hMarkus Armbruster1-1/+0
2018-02-08qemu-img: Map bench bufferFam Zheng1-1/+8
2017-11-21block: Add errp to bdrv_snapshot_goto()Kevin Wolf1-3/+3
2017-10-26qemu-img: Change img_compare() to be byte-basedEric Blake1-76/+48
2017-10-26qemu-img: Change img_rebase() to be byte-basedEric Blake1-50/+34
2017-10-26qemu-img: Change compare_sectors() to be byte-basedEric Blake1-28/+27
2017-10-26qemu-img: Change check_empty_sectors() to byte-basedEric Blake1-12/+15
2017-10-26qemu-img: Drop redundant error message in compareEric Blake1-14/+5
2017-10-26qemu-img: Add find_nonzero()Eric Blake1-4/+28
2017-10-26qemu-img: Speed up compare on pre-allocated larger fileEric Blake1-4/+4
2017-10-26qemu-img: Simplify logic in img_compare()Eric Blake1-27/+11
2017-10-26block: Convert bdrv_get_block_status_above() to bytesEric Blake1-21/+28
2017-10-26block: Convert bdrv_get_block_status() to bytesEric Blake1-11/+14
2017-10-26qemu-img: Switch get_block_status() to byte-basedEric Blake1-13/+11
2017-10-26block: Allow NULL file for bdrv_get_block_status()Eric Blake1-6/+4
2017-09-26qemu-img: add --shrink flag for resizePavel Butsykin1-0/+23
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-2/+1
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-1/+2
2017-07-18qemu-img: Check for backing image if specified during createJohn Snow1-5/+11
2017-07-13Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2017-07-12' into ...Peter Maydell1-1/+1
2017-07-12qobject: Catch another straggler for use of qdict_put_str()Eric Blake1-1/+1
2017-07-11qemu-img: Expose PreallocMode for resizingMax Reitz1-3/+30
2017-07-11block: Add PreallocMode to blk_truncate()Max Reitz1-1/+1
2017-07-11qemu-img: add measure subcommandStefan Hajnoczi1-0/+234
2017-07-11block: rip out all traces of password promptingDaniel P. Berrange1-31/+0
2017-07-11block: deprecate "encryption=on" in favor of "encrypt.format=aes"Daniel P. Berrange1-1/+3
2017-07-10block: Make bdrv_is_allocated_above() byte-basedEric Blake1-3/+10
2017-07-10block: Make bdrv_is_allocated() byte-basedEric Blake1-1/+7
2017-07-10qemu-img: drop -e and -6 options from the 'create' & 'convert' commandsDaniel P. Berrange1-18/+2
2017-06-26qemu-img: don't shadow opts variable in img_dd()Stefan Hajnoczi1-6/+3
2017-06-26fix: avoid an infinite loop or a dangling pointer problem in img_commitsochin.jiang1-7/+13
2017-05-30Merge remote-tracking branch 'kwolf/tags/for-upstream' into stagingStefan Hajnoczi1-31/+117
2017-05-29qemu-img: Fix leakage of options on errorFam Zheng1-0/+1
2017-05-29qemu-img: copy *key-secret opts when opening newly created filesDaniel P. Berrange1-5/+37
2017-05-29qemu-img: introduce --target-image-opts for 'convert' commandDaniel P. Berrange1-27/+57
2017-05-29qemu-img: fix --image-opts usage with dd commandDaniel P. Berrange1-2/+7
2017-05-29qemu-img: add support for --object with 'dd' commandDaniel P. Berrange1-0/+18
2017-05-23block: Use QDict helpers for --force-shareEric Blake1-4/+3
2017-05-11qemu-img: wait for convert coroutines to completeAnton Nefedov1-15/+11
2017-05-11qemu-img: Add --force-share option to subcommandsFam Zheng1-36/+117
2017-05-09qobject: Use simpler QDict/QList scalar insertion macrosEric Blake1-3/+3
2017-04-28qemu-img: use blk_co_pwrite_zeroes for zero sectors when compressedLidong Chen1-30/+14
2017-04-28qemu-img: improve convert_iteration_sectors()Vladimir Sementsov-Ogievskiy1-22/+10
2017-04-28block: Add errp to b{lk,drv}_truncate()Max Reitz1-13/+4
2017-04-27qemu-img/convert: Move bs_n > 1 && -B check downMax Reitz1-6/+7
2017-04-27qemu-img/convert: Use @opts for one thing onlyMax Reitz1-4/+6
2017-04-27qemu-img: simplify img_convertPeter Lieven1-120/+81
2017-04-24block: Make errp the last parameter of commit_active_startFam Zheng1-1/+1
2017-04-24block: Make errp the last parameter of bdrv_img_createFam Zheng1-1/+1
2017-03-27qemu-img: print short help on getopt failureStefan Hajnoczi1-20/+97
2017-03-27qemu-img: fix switch indentation in img_amend()Stefan Hajnoczi1-41/+41
2017-03-27qemu-img: show help for invalid global optionsStefan Hajnoczi1-0/+1
2017-02-28commit: Add filter-node-name to block-commitKevin Wolf1-2/+2
2017-02-28mirror: Use real permissions in mirror/active commit block jobKevin Wolf1-1/+5
2017-02-28block: Add BDRV_O_RESIZE for blk_new_open()Kevin Wolf1-1/+1
2017-02-28qemu-img: make convert asyncPeter Lieven1-96/+226
2017-02-23util/cutils: Change qemu_strtosz*() from int64_t to uint64_tMarkus Armbruster1-1/+4
2017-02-23util/cutils: Return qemu_strtosz*() error and value separatelyMarkus Armbruster1-3/+7
2017-02-23util/cutils: Let qemu_strtosz*() optionally reject trailing crapMarkus Armbruster1-6/+1
2017-02-23qemu-img: Wrap cvtnum() around qemu_strtosz()Markus Armbruster1-27/+31
2017-02-23util/cutils: New qemu_strtosz()Markus Armbruster1-10/+8
2017-02-12qemu-img: Avoid setting ret to unused value in img_convert()Peter Maydell1-4/+4
2017-02-12qemu-img: Use qemu_strtoul() rather than raw strtoul()Peter Maydell1-16/+16
2017-02-12qemu-img: Improve commit invalid base messageMax Reitz1-1/+3
2017-01-24qemu-img: remove dead checkPaolo Bonzini1-7/+5
2017-01-09qemu-img: fix in-flight count for qemu-img benchPaolo Bonzini1-7/+10
2016-11-01Replication/Blockjobs: Create replication jobs as internalJohn Snow1-2/+3
2016-10-28qemu-img: call aio_context_acquire/release around block jobPaolo Bonzini1-0/+6
2016-10-25qapi: rename QmpOutputVisitor to QObjectOutputVisitorDaniel P. Berrange1-3/+3
2016-10-25qapi: rename *qmp-*-visitor* to *qobject-*-visitor*Daniel P. Berrange1-1/+1
2016-10-24block: failed qemu-img command should return non-zero exit codeXu Tian1-0/+2
2016-10-24Put the copyright information on a separate lineThomas Huth1-1/+1
2016-10-12trace: provide mechanism for registering trace eventsDaniel P. Berrange1-0/+1
2016-09-20qemu-img: add skip option to ddReda Sallahi1-5/+45
2016-09-20qemu-img: add the 'dd' subcommandReda Sallahi1-1/+302
2016-09-13mirror: auto complete active commitWen Congyang1-1/+1
2016-09-05block: remove BlockDriver.bdrv_write_compressedPavel Butsykin1-1/+1
2016-09-05block/io: reuse bdrv_co_pwritev() for write compressedPavel Butsykin1-1/+1
2016-09-05block: switch blk_write_compressed() to byte-based interfacePavel Butsykin1-2/+4
2016-08-11Update ancient copyright string in -version outputPeter Maydell1-1/+1
2016-08-08error: Strip trailing '\n' from error string arguments (again)Markus Armbruster1-2/+2
2016-07-13qemu-img: Use strerror() for generic resize errorMax Reitz1-1/+1
2016-07-13qemu-img: Set the ID of the block job in img_commit()Alberto Garcia1-1/+1
2016-07-13commit: Add 'job-id' parameter to 'block-commit'Alberto Garcia1-1/+1
2016-07-06Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-07-06' into ...Peter Maydell1-17/+15
2016-07-06qapi: Add new visit_complete() functionEric Blake1-15/+15
2016-07-06qmp-output-visitor: Favor new visit_free() functionEric Blake1-3/+3
2016-07-06qemu-img: Don't leak errors when outputting JSONEric Blake1-6/+4
2016-07-05block: Convert bdrv_pwrite_zeroes() to BdrvChildKevin Wolf1-1/+1
2016-07-05block: Switch discard length bounds to byte-basedEric Blake1-1/+2
2016-07-05block: Switch transfer length bounds to byte-basedEric Blake1-4/+4
2016-07-05qemu-img: fix failed autotestsDenis V. Lunev1-1/+1
2016-06-28trace: enable tracing in qemu-imgDenis V. Lunev1-1/+18
2016-06-28qemu-img: move common options parsing before commands processingDenis V. Lunev1-13/+26
2016-06-16qemu-img bench: Fix uninitialised writethrough modeKevin Wolf1-1/+1
2016-06-08Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into stagingPeter Maydell1-0/+329
2016-06-08qemu-img bench: Add --flush-intervalKevin Wolf1-9/+86
2016-06-08qemu-img bench: Implement -S (step size)Kevin Wolf1-4/+21
2016-06-08qemu-img bench: Make start offset configurableKevin Wolf1-3/+20
2016-06-08qemu-img bench: Sequential writesKevin Wolf1-5/+33
2016-06-08qemu-img benchKevin Wolf1-0/+190
2016-06-07Makefile: Derive "PKGVERSION" from "git describe" by defaultFam Zheng1-0/+1
2016-05-25blockjob: Remove BlockJob.bsKevin Wolf1-1/+1
2016-05-25block: Rename blk_write_zeroes()Eric Blake1-2/+2
2016-05-20Use &error_fatal when initializing crypto on qemu-{img,io,nbd}Eduardo Habkost1-4/+1
2016-05-12qemu-img: check block status of backing file when converting.Ren Kimura1-2/+13
2016-05-12qemu-img: Switch to byte-based block accessEric Blake1-9/+19
2016-05-12block: Switch blk_*write_zeroes() to byte interfaceEric Blake1-1/+2
2016-04-28qom: -object error messages lost location, restore itMarkus Armbruster1-28/+11
2016-04-12block: initialize qcrypto API at startupDaniel P. Berrange1-0/+6
2016-04-12qemu-img: fix formatting of error messageDaniel P. Berrange1-1/+1
2016-03-30qemu-img: Fix preallocation with -S 0 for convertMax Reitz1-11/+15
2016-03-30block: Remove BDRV_O_CACHE_WBKevin Wolf1-1/+1
2016-03-30qemu-img: Call blk_set_enable_write_cache() explicitlyKevin Wolf1-32/+44
2016-03-30qemu-img: Expand all BDRV_O_FLAGS usesKevin Wolf1-12/+11
2016-03-30qemu-img/qemu-io: don't prompt for passwords if not requiredDaniel P. Berrange1-1/+2
2016-03-30block: add flag to indicate that no I/O will be performedDaniel P. Berrange1-22/+22
2016-03-22util: move declarations out of qemu-common.hVeronia Bahaa1-1/+1