aboutsummaryrefslogtreecommitdiffstats
path: root/block.c
AgeCommit message (Expand)AuthorFilesLines
2018-03-02Include less of the generated modular QAPI headersMarkus Armbruster1-1/+0
2018-03-02Include qapi/qmp/qerror.h exactly where neededMarkus Armbruster1-1/+0
2018-02-09block: Simplify bdrv_can_write_zeroes_with_unmap()Eric Blake1-7/+1
2018-02-09Move include qemu/option.h from qemu-common.h to actual usersMarkus Armbruster1-0/+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/+1
2018-02-09Include qmp-commands.h exactly where neededMarkus Armbruster1-1/+0
2018-02-09Include qapi/error.h exactly where neededMarkus Armbruster1-0/+2
2017-12-22block: Keep nodes drained between reopen_queue/multipleKevin Wolf1-7/+16
2017-12-22block: Allow graph changes in subtree drained sectionKevin Wolf1-3/+29
2017-12-22block: Don't notify parents in drain call chainKevin Wolf1-4/+9
2017-12-22block: Open backing image in force share mode for size probeFam Zheng1-1/+2
2017-12-22block: Formats don't need CONSISTENT_READ with NO_IOKevin Wolf1-1/+5
2017-12-19block: avoid recursive AioContext acquire in bdrv_inactivate_all()Paolo Bonzini1-3/+11
2017-11-21block: Close a BlockDriverState completely even when bs->drv is NULLAlberto Garcia1-29/+28
2017-11-21block: Don't use BLK_PERM_CONSISTENT_READ for format probingKevin Wolf1-1/+4
2017-11-17block: Make bdrv_next() keep strong referencesMax Reitz1-0/+3
2017-11-17block: Guard against NULL bs->drvMax Reitz1-1/+18
2017-11-17block: qobject_is_equal() in bdrv_reopen_prepare()Max Reitz1-11/+18
2017-11-17block: Fix permissions in image activationKevin Wolf1-10/+22
2017-11-17block: Deprecate bdrv_set_read_only() and usersKevin Wolf1-0/+5
2017-11-17block: Fix error path in bdrv_backing_update_filename()Kevin Wolf1-1/+1
2017-10-26block: don't add 'driver' to options when referring to backing via node namePeter Krempa1-1/+2
2017-10-06commit: Remove overlay_bsKevin Wolf1-2/+4
2017-10-06commit: Support multiple roots above top nodeKevin Wolf1-28/+40
2017-10-06block: Introduce BdrvChildRole.update_filenameKevin Wolf1-5/+28
2017-10-06dirty-bitmap: Avoid size query failure during truncateEric Blake1-5/+11
2017-10-06block: Make bdrv_img_create() size selection easier to readEric Blake1-1/+1
2017-09-26block: Fix permissions after bdrv_reopen()Kevin Wolf1-0/+64
2017-09-26block: reopen: Queue children after their parentsKevin Wolf1-13/+13
2017-09-26block: Base permissions on rw state after reopenKevin Wolf1-15/+37
2017-09-26block: Add reopen queue to bdrv_check_perm()Kevin Wolf1-15/+19
2017-09-26block: Add reopen_queue to bdrv_child_perm()Kevin Wolf1-7/+12
2017-09-04block: remove unused bdrv_media_changedManos Pitsidianakis1-14/+0
2017-09-04block: pass bdrv_* methods to bs->file by default in block filtersManos Pitsidianakis1-2/+19
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-23block: Update open_flags after ->inactivate() callbackStefan Hajnoczi1-4/+3
2017-08-08block: Set BDRV_O_ALLOW_RDWR during rw reopenKevin Wolf1-1/+4
2017-08-08block: Allow reopen rw without BDRV_O_ALLOW_RDWRKevin Wolf1-4/+7
2017-08-08block: Fix order in bdrv_replace_child()Kevin Wolf1-2/+2
2017-08-01block: fix leaks in bdrv_open_driver()Manos Pitsidianakis1-11/+11
2017-08-01block: fix dangling bs->explicit_options in block.cManos Pitsidianakis1-0/+2
2017-07-24block: Skip implicit nodes in query-block/blockstatsKevin Wolf1-13/+0
2017-07-18qemu-img: Check for backing image if specified during createJohn Snow1-42/+52
2017-07-14Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2017-07-13' into...Peter Maydell1-5/+3
2017-07-13block: Don't try to set *errp directlyEduardo Habkost1-5/+3
2017-07-11block: Add PreallocMode to bdrv_truncate()Max Reitz1-2/+3
2017-07-11block: Add PreallocMode to BD.bdrv_truncate()Max Reitz1-1/+1
2017-07-11block: add bdrv_measure() APIStefan Hajnoczi1-0/+35
2017-07-11block: release persistent bitmaps on inactivateVladimir Sementsov-Ogievskiy1-0/+4
2017-07-11block: add bdrv_can_store_new_dirty_bitmapVladimir Sementsov-Ogievskiy1-0/+22
2017-07-11block: bdrv_close: release bitmaps after drv->bdrv_closeVladimir Sementsov-Ogievskiy1-3/+3
2017-07-11block: new bdrv_reopen_bitmaps_rw interfaceVladimir Sementsov-Ogievskiy1-0/+19
2017-07-11block: refactor bdrv_reopen_commitVladimir Sementsov-Ogievskiy1-6/+8
2017-07-11mirror: Fix inconsistent backing AioContext for after mirroringsochin.jiang1-0/+1
2017-07-11block: remove all encryption handling APIsDaniel P. Berrange1-76/+1
2017-06-16block: introduce dirty_bitmap_mutexPaolo Bonzini1-0/+1
2017-06-16block: protect tracked_requests and flush_queue with reqs_lockPaolo Bonzini1-0/+1
2017-06-16block: access write_gen with atomicsPaolo Bonzini1-1/+1
2017-06-16block: access copy_on_read with atomic opsPaolo Bonzini1-2/+4
2017-05-29block/file-*: *_parse_filename() and colonsMax Reitz1-0/+35
2017-05-29block: Fix backing paths for filenames with colonsMax Reitz1-5/+10
2017-05-11block: Fix write/resize permissions for inactive imagesKevin Wolf1-2/+33
2017-05-11block: Inactivate parents before childrenKevin Wolf1-7/+18
2017-05-11block: Drop permissions when migration completesKevin Wolf1-1/+11
2017-05-11block: New BdrvChildRole.activate() for blk_resume_after_migration()Kevin Wolf1-1/+11
2017-05-11block: Respect "force-share" in perm propagatingFam Zheng1-8/+24
2017-05-11block: Add, parse and store "force-share" optionFam Zheng1-0/+17
2017-05-11block: Make bdrv_perm_names publicFam Zheng1-1/+1
2017-05-09block: Simplify bdrv_append_temp_snapshot() logicEric Blake1-10/+7
2017-05-09qobject: Use simpler QDict/QList scalar insertion macrosEric Blake1-26/+19
2017-05-08qobject: Drop useless QObject castsEric Blake1-8/+4
2017-04-28block: assert no image modification under BDRV_O_INACTIVEDenis V. Lunev1-0/+2
2017-04-28block: Add .bdrv_truncate() error messagesMax Reitz1-2/+0
2017-04-28block: Add errp to BD.bdrv_truncate()Max Reitz1-2/+2
2017-04-28block: Add errp to b{lk,drv}_truncate()Max Reitz1-4/+12
2017-04-27block: An empty filename counts as no filenameMax Reitz1-1/+1
2017-04-27Revert "block/io: Comment out permission assertions"Max Reitz1-5/+1
2017-04-24block: use bdrv_can_set_read_only() during reopenJeff Cody1-6/+8
2017-04-24block: introduce bdrv_can_set_read_only()Jeff Cody1-1/+13
2017-04-24block: code movementJeff Cody1-5/+5
2017-04-24block: honor BDRV_O_ALLOW_RDWR when clearing bs->read_onlyJeff Cody1-0/+7
2017-04-24block: do not set BDS read_only if copy_on_read enabledJeff Cody1-1/+9
2017-04-24block: add bdrv_set_read_only() helper functionJeff Cody1-0/+5
2017-04-24block: Make errp the last parameter of bdrv_img_createFam Zheng1-2/+2
2017-04-11block/io: Comment out permission assertionsMax Reitz1-1/+5
2017-04-11block: Introduce bdrv_coroutine_enterFam Zheng1-0/+5
2017-04-11block: Quiesce old aio context during bdrv_set_aio_contextFam Zheng1-2/+5
2017-04-07block: Assert attached child node has right aio contextFam Zheng1-0/+4
2017-04-03block: Document -drive problematic code and bugsMarkus Armbruster1-3/+45
2017-03-17block: quiesce AioContext when detaching from itPaolo Bonzini1-0/+7
2017-03-17block: Propagate error in bdrv_open_backing_fileFam Zheng1-0/+1
2017-03-17block: Always call bdrv_child_check_perm firstFam Zheng1-4/+9
2017-03-13block: Refresh filename after changing backing fileKevin Wolf1-0/+2
2017-03-13block: Remove check_new_perm from bdrv_replace_child()Kevin Wolf1-7/+14
2017-03-08Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into stagingPeter Maydell1-62/+120
2017-03-07block: More detailed syntax error reporting for JSON filenamesMarkus Armbruster1-2/+7
2017-03-07qobject: Propagate parse errors through qobject_from_json()Markus Armbruster1-1/+1
2017-03-07block: Fix error handling in bdrv_replace_in_backing_chain()Kevin Wolf1-19/+6
2017-03-07block: Handle permission errors in change_parent_backing_link()Kevin Wolf1-6/+44
2017-03-07block: Ignore multiple children in bdrv_check_update_perm()Kevin Wolf1-13/+22
2017-03-07block: Factor out bdrv_replace_child_noperm()Kevin Wolf1-13/+25
2017-03-07block: Factor out should_update_child()Kevin Wolf1-15/+27
2017-02-28block: Add Error parameter to bdrv_append()Kevin Wolf1-6/+17
2017-02-28block: Add Error parameter to bdrv_set_backing_hd()Kevin Wolf1-7/+23
2017-02-28block: Assertions for resize permissionKevin Wolf1-0/+3
2017-02-28block: Allow backing file links in change_parent_backing_link()Kevin Wolf1-4/+3
2017-02-28block: BdrvChildRole.attach/detach() callbacksKevin Wolf1-35/+60
2017-02-28block: Fix pending requests check in bdrv_append()Kevin Wolf1-2/+2
2017-02-28block: Add BdrvChildRole.stay_at_nodeKevin Wolf1-0/+3
2017-02-28block: Include details on permission errors in messageKevin Wolf1-11/+56
2017-02-28block: Add BdrvChildRole.get_parent_desc()Kevin Wolf1-0/+9
2017-02-28block: Add error parameter to blk_insert_bs()Kevin Wolf1-1/+4
2017-02-28block: Add permissions to blk_new()Kevin Wolf1-1/+1
2017-02-28block: Request real permissions in bdrv_attach_child()Kevin Wolf1-2/+8
2017-02-28block: Require .bdrv_child_perm() with child nodesKevin Wolf1-2/+4
2017-02-28vvfat: Implement .bdrv_child_perm()Kevin Wolf1-1/+1
2017-02-28block: Default .bdrv_child_perm() for format driversKevin Wolf1-0/+44
2017-02-28block: Default .bdrv_child_perm() for filter driversKevin Wolf1-0/+23
2017-02-28block: Involve block drivers in permission grantingKevin Wolf1-4/+202
2017-02-28block: Let callers request permissions when attaching a child nodeKevin Wolf1-8/+58
2017-02-28block: Add Error argument to bdrv_attach_child()Kevin Wolf1-3/+13
2017-02-26Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into stagingPeter Maydell1-95/+170
2017-02-24block: Add bdrv_new_open_driver()Kevin Wolf1-1/+29
2017-02-24block: Factor out bdrv_open_driver()Kevin Wolf1-47/+65
2017-02-24block: Use BlockBackend for image probingKevin Wolf1-17/+19
2017-02-24block: Factor out bdrv_open_child_bs()Kevin Wolf1-24/+37
2017-02-24block: Attach bs->file only during .bdrv_open()Kevin Wolf1-11/+24
2017-02-24block: Pass BdrvChild to bdrv_truncate()Kevin Wolf1-1/+2
2017-02-22Don't check qobject_type() before qobject_to_qdict()Markus Armbruster1-2/+2
2017-02-12block: bdrv_invalidate_cache: invalidate children firstVladimir Sementsov-Ogievskiy1-6/+5
2017-02-12block: check full backing filename when searching protocol filenamesJeff Cody1-0/+13
2017-01-31trace: switch to modular code generation for sub-directoriesDaniel P. Berrange1-1/+1
2017-01-24block: remove dead checkPaolo Bonzini1-1/+1
2016-11-11block: Emit modules in bdrv_iterate_format()Max Reitz1-0/+18
2016-11-11block: Fix bdrv_iterate_format() sortingMax Reitz1-1/+1
2016-10-31block: Support streaming to an intermediate layerAlberto Garcia1-1/+3
2016-10-31block: Pause all jobs during bdrv_reopen_multiple()Alberto Garcia1-1/+4
2016-10-28block: only call aio_poll on the current thread's AioContextPaolo Bonzini1-0/+2
2016-10-28block: prepare bdrv_reopen_multiple to release AioContextPaolo Bonzini1-2/+2
2016-10-07block: Add qdev ID to DEVICE_TRAY_MOVEDKevin Wolf1-7/+0
2016-10-07block: Add bdrv_runtime_opts to query-command-line-optionsKevin Wolf1-1/+1
2016-09-29block: Move 'discard' option to bdrv_open_common()Kevin Wolf1-1/+16
2016-09-29block: Parse 'detect-zeroes' in bdrv_open_common()Kevin Wolf1-0/+33
2016-09-23block: Don't queue the same BDS twice in bdrv_reopen_queue_child()Alberto Garcia1-3/+19
2016-09-23block: Add "read-only" to the options QDictAlberto Garcia1-3/+35
2016-09-23block: Update bs->open_flags earlier in bdrv_open_common()Alberto Garcia1-3/+2
2016-09-23block: Set BDRV_O_ALLOW_RDWR and snapshot_options before storing the flagsAlberto Garcia1-12/+11
2016-09-23block: Remove bdrv_is_snapshotAlberto Garcia1-5/+0
2016-09-20blockdev: Add dynamic module loading for block driversMarc Mari1-7/+55
2016-09-13block: unblock backup operations in backing fileWen Congyang1-0/+17
2016-09-05nbd-server: Use a separate BlockBackendKevin Wolf1-0/+2
2016-07-19block: remove extra condition in bdrv_can_write_zeroes_with_unmapDenis V. Lunev1-1/+1
2016-07-18block: ignore flush requests when storage is cleanEvgeny Yakovlev1-0/+3
2016-07-13coroutine: move entry argument to qemu_coroutine_createPaolo Bonzini1-2/+2
2016-07-05block: Convert bdrv_pread(v) to BdrvChildKevin Wolf1-3/+4
2016-07-05block: Move bdrv_commit() to block/commit.cKevin Wolf1-110/+0
2016-07-05block: Use bool as appropriate for BDS membersEric Blake1-11/+11
2016-07-05block: Move request_alignment into BlockLimitEric Blake1-1/+1
2016-07-05block: Set default request_alignment during bdrv_refresh_limits()Eric Blake1-1/+0
2016-06-20Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2016-06-20' into...Peter Maydell1-15/+5
2016-06-20error: Remove NULL checks on error_propagate() callsEduardo Habkost1-15/+5
2016-06-20block: use safe iteration over AioContext notifiersStefan Hajnoczi1-10/+36
2016-06-16block/mirror: Fix target backing BDSMax Reitz1-8/+0
2016-06-16block: Allow replacement of a BDS by its overlayMax Reitz1-1/+15
2016-06-16block: Fix snapshot=on with aio=nativeKevin Wolf1-0/+4
2016-06-16block: Remove bs->zero_beyond_eofKevin Wolf1-2/+0
2016-06-16block: Don't enforce 512 byte minimum alignmentKevin Wolf1-1/+1
2016-06-08block: assert that bs->request_alignment is a power of 2Peter Lieven1-1/+1
2016-05-25block: Cancel jobs first in bdrv_close_all()Kevin Wolf1-21/+2
2016-05-25block: Propagate .drained_begin/end callbacksKevin Wolf1-1/+19
2016-05-25block: Fix reconfiguring graph with drained nodesKevin Wolf1-4/+14
2016-05-25block: Introduce bdrv_replace_child()Kevin Wolf1-6/+20
2016-05-25block: Drop bdrv_parent_cb_...() from bdrv_close()Max Reitz1-2/+0
2016-05-25block: Assert !bs->refcnt in bdrv_close()Max Reitz1-2/+1
2016-05-25block: Make bdrv_open() return a BDSMax Reitz1-94/+44
2016-05-25block: Drop bdrv_new_root()Max Reitz1-5/+0
2016-05-25block: Let bdrv_open_inherit() return the snapshotMax Reitz1-7/+40
2016-05-25block: Drop useless bdrv_new() callMax Reitz1-2/+1
2016-05-25block: Fix bdrv_next() memory leakKevin Wolf1-10/+8
2016-05-19block: Propagate AioContext change to all childrenMax Reitz1-10/+6
2016-05-19block: Remove BlockDriverState.blkKevin Wolf1-9/+1
2016-05-19block: Avoid bs->blk in bdrv_next()Kevin Wolf1-28/+12
2016-05-19block: User BdrvChild callback for device nameKevin Wolf1-2/+20
2016-05-19block: Use BdrvChild callbacks for change_media/resizeKevin Wolf1-13/+26
2016-05-19Revert "block: Forbid I/O throttling on nodes with multiple parents for 2.6"Kevin Wolf1-6/+0
2016-05-19block: Remove bdrv_move_feature_fields()Kevin Wolf1-30/+0
2016-05-19block: Decouple throttling from BlockDriverStateKevin Wolf1-34/+0
2016-05-19block: Move I/O throttling configuration functions to BlockBackendKevin Wolf1-1/+1
2016-05-19block: Move throttling fields from BDS to BBKevin Wolf1-11/+11
2016-05-19block: Make sure throttled BDSes always have a BBKevin Wolf1-0/+14
2016-05-12quorum: implement bdrv_add_child() and bdrv_del_child()Wen Congyang1-4/+4
2016-05-12Add new block driver interface to add/delete a BDS's childWen Congyang1-0/+49
2016-05-12block: Inactivate all childrenFam Zheng1-11/+36
2016-05-12block: Invalidate all childrenFam Zheng1-6/+14
2016-05-12block: Remove BlockDriver.bdrv_read/writeKevin Wolf1-2/+0
2016-05-12block: introduce bdrv_no_throttling_begin/endPaolo Bonzini1-1/+0