aboutsummaryrefslogtreecommitdiffstats
path: root/block.c
AgeCommit message (Expand)AuthorFilesLines
2013-11-15block: Fail if requested driver is not availableKevin Wolf1-0/+5
2013-11-14block: Print its file name if backing file opening failedFam Zheng1-1/+3
2013-11-08block: Round up total_sectorsFam Zheng1-1/+1
2013-11-07block: Save errno before error_setg_errnoMax Reitz1-1/+1
2013-10-29block: Avoid unecessary drv->bdrv_getlength() callsKevin Wolf1-3/+4
2013-10-29block: Disable BDRV_O_COPY_ON_READ for the backing fileThibaut LAURENT1-1/+2
2013-10-28block: Don't copy backing file name on errorMax Reitz1-2/+2
2013-10-11blockdev: Don't disable COR automatically with blockdev-addKevin Wolf1-2/+7
2013-10-11block: Improve driver whitelist checksKevin Wolf1-3/+7
2013-10-11block: Add BlockDriver.bdrv_check_ext_snapshot.Benoît Canet1-0/+19
2013-10-11block/get_block_status: avoid redundant callouts on raw devicesPeter Lieven1-0/+6
2013-10-11block: Add bdrv_get_specific_infoMax Reitz1-0/+9
2013-10-07block: use correct filenameDunrong Huang1-2/+2
2013-10-02block: use correct filename for error reportDunrong Huang1-2/+2
2013-09-26block: use DIV_ROUND_UP in bdrv_co_do_readvFam Zheng1-1/+1
2013-09-25qdict: Extract qdict_extract_subqdictBenoît Canet1-21/+2
2013-09-25block: introduce BlockDriver.bdrv_needs_filename to enable some drivers.Benoît Canet1-2/+2
2013-09-25block/get_block_status: avoid segfault if there is no backing_hdPeter Lieven1-1/+1
2013-09-25block/get_block_status: set *pnum = 0 on errorPeter Lieven1-0/+1
2013-09-25block: fix backing file overridingFam Zheng1-2/+5
2013-09-20block: don't lose data from last incomplete sectorFam Zheng1-1/+1
2013-09-12block: Error parameter for create functionsMax Reitz1-24/+56
2013-09-12block: Error parameter for open functionsMax Reitz1-36/+64
2013-09-12bdrv: Use "Error" for creating imagesMax Reitz1-1/+1
2013-09-12bdrv: Use "Error" for opening imagesMax Reitz1-2/+2
2013-09-12block: Image file option amendmentMax Reitz1-0/+8
2013-09-06block: look for zero blocks in bs->filePaolo Bonzini1-1/+15
2013-09-06block: add default get_block_status implementation for protocolsPaolo Bonzini1-1/+5
2013-09-06block: return BDRV_BLOCK_ZERO past end of backing filePaolo Bonzini1-2/+10
2013-09-06block: use bdrv_has_zero_init to return BDRV_BLOCK_ZEROPaolo Bonzini1-1/+10
2013-09-06block: define get_block_status return valuePaolo Bonzini1-2/+8
2013-09-06block: introduce bdrv_get_block_status APIPaolo Bonzini1-20/+26
2013-09-06block: make bdrv_has_zero_init return false for copy-on-write-imagesPaolo Bonzini1-0/+5
2013-09-06block: expect errors from bdrv_co_is_allocatedPaolo Bonzini1-2/+5
2013-09-06block: remove bdrv_is_allocated_above/bdrv_co_is_allocated_above distinctionPaolo Bonzini1-42/+4
2013-09-06block: do not use ->total_sectors in bdrv_co_is_allocatedPaolo Bonzini1-1/+7
2013-09-06block: make bdrv_co_is_allocated staticPaolo Bonzini1-9/+15
2013-09-06block: keep bs->total_sectors up to date even for growable block devicesPaolo Bonzini1-1/+4
2013-09-06block: make bdrv_delete() staticFam Zheng1-11/+12
2013-09-06block: implement reference count for BlockDriverStateFam Zheng1-0/+21
2013-09-06block: Enable the new throttling code in the block layer.Benoît Canet1-243/+95
2013-08-30block: Remove redundant assertionKevin Wolf1-1/+0
2013-08-22aio / timers: Switch entire codebase to the new timer APIAlex Bligh1-7/+7
2013-08-22block: Produce zeros when protocols reading beyond end of fileMORITA Kazutaka1-1/+29
2013-08-22block: Introduce bs->zero_beyond_eofAsias He1-0/+2
2013-08-19block: stop relying on io_flush() in bdrv_drain_all()Stefan Hajnoczi1-10/+35
2013-08-19block: ensure bdrv_drain_all() works during bdrv_delete()Stefan Hajnoczi1-2/+2
2013-07-29block: Repair the throttling code.Benoît Canet1-4/+3
2013-07-26block: Allow "driver" option on the top levelKevin Wolf1-0/+7
2013-07-19block: fix bdrv_read_unthrottled()Peter Lieven1-1/+1
2013-07-19block: add bdrv_write_zeroes()Peter Lieven1-8/+19
2013-07-15block: Add return value for bdrv_flush_all()Kevin Wolf1-2/+8
2013-07-15block: Don't parse protocol from file.filenameKevin Wolf1-5/+12
2013-07-05block: fix bdrv_flush() ordering in bdrv_close()Stefan Hajnoczi1-2/+3
2013-06-28block: change default of .has_zero_init to 0Peter Lieven1-1/+7
2013-06-28block: add bdrv_add_before_write_notifier()Stefan Hajnoczi1-11/+12
2013-06-24block: Always enable discard on the protocol levelKevin Wolf1-1/+1
2013-06-17block: bdrv_reopen_prepare(): don't use QERR_OPEN_FILE_FAILEDLuiz Capitulino1-2/+2
2013-06-06blkdebug: Add BLKDBG_FLUSH_TO_OS/DISK eventsKevin Wolf1-4/+4
2013-06-04block: move qmp and info dump related code to block/qapi.cWenchao Xia1-185/+0
2013-06-04block: move snapshot code in block.c to block/snapshot.cWenchao Xia1-100/+0
2013-06-04block: drop bs_snapshots global variableStefan Hajnoczi1-28/+0
2013-06-04block: add block driver read only whitelistFam Zheng1-16/+27
2013-05-14block: Add hint to -EFBIG error messageKevin Wolf1-2/+6
2013-04-22block: Fix build with tracing enabledKevin Wolf1-7/+7
2013-04-22block: Allow overriding backing.file.filenameKevin Wolf1-1/+3
2013-04-22block: Remove filename parameter from .bdrv_file_open()Kevin Wolf1-6/+2
2013-04-22block: Enable filename optionKevin Wolf1-4/+27
2013-04-22block: Add driver-specific options for backing filesKevin Wolf1-4/+23
2013-04-22block: Fail gracefully when using a format driver on protocol levelKevin Wolf1-0/+7
2013-04-15block: Introduce bdrv_pwritev() for qcow2_save_vmstateKevin Wolf1-22/+58
2013-04-15block: Introduce bdrv_writev_vmstateKevin Wolf1-5/+20
2013-04-05block: clean up I/O throttling wait_time codeStefan Hajnoczi1-3/+3
2013-04-05block: drop duplicated slice extension codeStefan Hajnoczi1-4/+1
2013-04-05block: keep I/O throttling slice time constantStefan Hajnoczi1-10/+9
2013-04-05block: fix I/O throttling accounting blind spotStefan Hajnoczi1-11/+10
2013-03-28block: Fix direct use of protocols as driver for bdrv_open()Kevin Wolf1-11/+15
2013-03-22block: Allow omitting the file name when using driver-specific optionsKevin Wolf1-8/+41
2013-03-22block: Rename variable to avoid shadowingKevin Wolf1-7/+9
2013-03-22block: Introduce .bdrv_parse_filename callbackKevin Wolf1-0/+11
2013-03-22block: Pass bdrv_file_open() options to block driversKevin Wolf1-7/+56
2013-03-22block: Add options QDict to bdrv_file_open() prototypesKevin Wolf1-3/+11
2013-03-22Revert "block: complete all IOs before .bdrv_truncate"Peter Lieven1-4/+0
2013-03-19block: fix BDRV_O_SNAPSHOT protocol detectionStefan Hajnoczi1-5/+1
2013-03-15block: add bdrv_get_aio_context()Stefan Hajnoczi1-0/+6
2013-03-15block: Add options QDict to bdrv_open_common()Kevin Wolf1-6/+26
2013-03-15block: Add options QDict to bdrv_open() prototypeKevin Wolf1-12/+35
2013-03-15block: Add options QDict to .bdrv_open()Kevin Wolf1-2/+2
2013-03-04block: for HMP commit() operations on 'all', skip non-COW drivesJeff Cody1-3/+5
2013-02-22block: implement BDRV_O_UNMAPPaolo Bonzini1-0/+25
2013-02-22block: complete all IOs before .bdrv_truncatePeter Lieven1-0/+4
2013-02-22qemu-img: Add "Quiet mode" optionMiroslav Rezanina1-5/+7
2013-02-22block: Add synchronous wrapper for bdrv_co_is_allocated_aboveMiroslav Rezanina1-0/+39
2013-02-01block: Fix is_allocated_above with resized filesVishvananda Ishaya1-1/+3
2013-01-25block: allow customizing the granularity of the dirty bitmapPaolo Bonzini1-7/+10
2013-01-25block: return count of dirty sectors, not chunksPaolo Bonzini1-3/+2
2013-01-25block: make round_to_clusters publicPaolo Bonzini1-8/+8
2013-01-25block: implement dirty bitmap using HBitmapPaolo Bonzini1-80/+16
2013-01-15block: clear dirty bitmap when discardingPaolo Bonzini1-1/+7
2013-01-15block: fix initialization in bdrv_io_limits_enable()Peter Lieven1-4/+0
2013-01-14block: make qiov_is_aligned() publicStefan Hajnoczi1-0/+16
2013-01-14block: do not probe zero-sized disksPaolo Bonzini1-1/+1
2013-01-11Replace remaining gmtime, localtime by gmtime_r, localtime_rStefan Weil1-10/+0
2012-12-19softmmu: move include files to include/sysemu/Paolo Bonzini1-1/+1
2012-12-19misc: move include files to include/qemu/Paolo Bonzini1-3/+3
2012-12-19monitor: move include files to include/monitor/Paolo Bonzini1-1/+1
2012-12-19block: move include files to include/block/Paolo Bonzini1-3/+3
2012-12-19qapi: move include files to include/qobject/Paolo Bonzini1-1/+1
2012-12-12qemu-io: Add AIO debugging commandsKevin Wolf1-0/+39
2012-12-11block: bdrv_img_create(): drop unused error handling codeLuiz Capitulino1-35/+5
2012-12-11block: bdrv_img_create(): add Error ** argumentLuiz Capitulino1-1/+21
2012-12-11block: Avoid second open for format probingKevin Wolf1-28/+38
2012-12-11block: Factor out bdrv_open_flagsKevin Wolf1-14/+21
2012-12-11block: Improve bdrv_aio_co_cancel_emKevin Wolf1-1/+18
2012-11-24block: Fix regression for MinGW (assertion caused by short string)Stefan Weil1-1/+2
2012-11-14aio: rename AIOPool to AIOCBInfoStefan Hajnoczi1-11/+11
2012-11-14aio: use g_slice_alloc() for AIOCB poolingStefan Hajnoczi1-11/+4
2012-10-29Merge remote-tracking branch 'kwolf/for-anthony' into stagingAnthony Liguori1-97/+210
2012-10-24iostatus: forward block_job_iostatus_reset to block jobPaolo Bonzini1-0/+3
2012-10-24block: export dirty bitmap information in query-blockPaolo Bonzini1-0/+7
2012-10-24block: introduce new dirty bitmap functionalityPaolo Bonzini1-6/+45
2012-10-24block: add bdrv_open_backing_filePaolo Bonzini1-18/+38
2012-10-24block: add bdrv_query_statsPaolo Bonzini1-12/+6
2012-10-24block: add bdrv_query_infoPaolo Bonzini1-53/+53
2012-10-24block: bdrv_create(): don't leak cco.filename on errorLuiz Capitulino1-2/+4
2012-10-24block: make bdrv_find_backing_image compare canonical filenamesJeff Cody1-6/+54
2012-10-23block: add close notifiersPaolo Bonzini1-0/+9
2012-10-23block: prepare code for adding block notifiersPaolo Bonzini1-5/+5
2012-10-05block: avoid buffer overrun by using pstrcpy, not strncpyJim Meyering1-2/+3
2012-09-28block: introduce block job errorPaolo Bonzini1-4/+5
2012-09-28iostatus: reorganize io error codePaolo Bonzini1-8/+38
2012-09-28iostatus: change is_read to a boolPaolo Bonzini1-2/+2
2012-09-28iostatus: move BlockdevOnError declaration to QAPIPaolo Bonzini1-3/+3
2012-09-28iostatus: rename BlockErrorAction, BlockQMPEventActionPaolo Bonzini1-4/+4
2012-09-28block: move job APIs to separate filesPaolo Bonzini1-127/+1
2012-09-28block: helper function, to find the base image of a chainJeff Cody1-0/+16
2012-09-28block: add support functions for live commit, to find and delete images.Jeff Cody1-0/+143
2012-09-24block: remove keep_read_only flag from BlockDriverState structJeff Cody1-2/+0
2012-09-24block: convert bdrv_commit() to use bdrv_reopen()Jeff Cody1-43/+5
2012-09-24block: Framework for reopening files safelyJeff Cody1-0/+232
2012-09-24block: make bdrv_set_enable_write_cache() modify open_flagsJeff Cody1-0/+7
2012-09-24block: correctly set the keep_read_only flagJeff Cody1-7/+7
2012-09-12block: Don't forget to delete temporary fileDunrong Huang1-1/+5
2012-09-12block: fix block tray statusPavel Hrdina1-2/+2
2012-08-15block: Flush parent to OS with cache=unsafeKevin Wolf1-1/+2
2012-08-13qmp: query-block: add 'encryption_key_missing' fieldLuiz Capitulino1-0/+1
2012-08-03block: Use bdrv_get_backing_file_depth()Benoît Canet1-0/+3
2012-08-03block: create bdrv_get_backing_file_depth()Benoît Canet1-0/+13
2012-07-28Avoid returning voidBlue Swirl1-1/+1
2012-07-17block: Geometry and translation hints are now useless, purge themMarkus Armbruster1-32/+0
2012-07-17hd-geometry: Move disk geometry guessing back from block.cMarkus Armbruster1-121/+0
2012-07-17fdc: Move floppy geometry guessing back from block.cMarkus Armbruster1-101/+0
2012-07-09Merge remote-tracking branch 'mjt/mjt-iov2' into stagingAnthony Liguori1-6/+6
2012-07-09block: Factor bdrv_read_unthrottled() out of guess_disk_lchs()Markus Armbruster1-7/+17
2012-07-09fdc: Drop broken code for user-defined floppy geometryMarkus Armbruster1-34/+28
2012-07-09block: introduce bdrv_swap, implement bdrv_append on top of itPaolo Bonzini1-85/+99
2012-07-09block: copy over job and dirty bitmap fields in bdrv_appendPaolo Bonzini1-0/+15
2012-06-15block: Replace bdrv_get_format() by bdrv_get_format_name()Markus Armbruster1-7/+4
2012-06-15block: always open drivers in writeback modePaolo Bonzini1-1/+2
2012-06-15block: add bdrv_set_enable_write_cachePaolo Bonzini1-0/+5
2012-06-15block: copy enable_write_cache in bdrv_appendPaolo Bonzini1-0/+2
2012-06-15block: flush in writethrough mode after writesPaolo Bonzini1-2/+9
2012-06-15block: New bdrv_get_flags()Markus Armbruster1-0/+5
2012-06-15qemu-img check -r for repairing imagesKevin Wolf1-2/+2
2012-06-15stream: move is_allocated_above to block.cPaolo Bonzini1-0/+49
2012-06-11change qemu_iovec_to_buf() to match other to,from_buf functionsMichael Tokarev1-1/+1
2012-06-11consolidate qemu_iovec_copy() and qemu_iovec_concat() and make them consistentMichael Tokarev1-2/+2
2012-06-11allow qemu_iovec_from_buffer() to specify offset from which to start copyingMichael Tokarev1-3/+3
2012-05-30block: prevent snapshot mode $TMPDIR symlink attackJim Meyering1-13/+24
2012-05-10qemu-img: make "info" backing file output correct and easier to usePaolo Bonzini1-8/+11
2012-05-10block: move field reset from bdrv_open_common to bdrv_closePaolo Bonzini1-7/+6
2012-05-10block: protect path_has_protocol from filenames with colonsPaolo Bonzini1-1/+6
2012-05-10block: simplify path_is_absolutePaolo Bonzini1-11/+4
2012-05-10block: wait for job callback in block_job_cancel_syncPaolo Bonzini1-2/+34
2012-05-10block: add block_job_sleep_nsPaolo Bonzini1-0/+11
2012-05-10block: fully delete bs->file when closingPaolo Bonzini1-4/+2
2012-05-10block: do not reuse the backing file across bdrv_close/bdrv_openPaolo Bonzini1-0/+2
2012-05-10block: another bdrv_append fixPaolo Bonzini1-0/+1
2012-05-10block: fix snapshot on QEDPaolo Bonzini1-0/+10
2012-05-10block: fix allocation size for dirty bitmapPaolo Bonzini1-5/+7
2012-05-10block: open backing file as read-only when probing for sizePaolo Bonzini1-1/+6
2012-05-10block: update in-memory backing file and formatPaolo Bonzini1-2/+9
2012-05-10block: push bdrv_change_backing_file error checking up from driversPaolo Bonzini1-0/+5
2012-05-10block: add the support to drain throttled requestsZhi Yong Wu1-1/+20
2012-05-07block: make bdrv_create adopt coroutineZhi Yong Wu1-2/+42
2012-04-27block: add 'speed' optional parameter to block-streamStefan Hajnoczi1-2/+16
2012-04-27block: change block-job-set-speed argument from 'value' to 'speed'Stefan Hajnoczi1-3/+3
2012-04-27block: use Error mechanism instead of -errno for block_job_set_speed()Stefan Hajnoczi1-7/+10
2012-04-27block: use Error mechanism instead of -errno for block_job_create()Stefan Hajnoczi1-1/+3
2012-04-20qcow2: Zero write supportKevin Wolf1-3/+11
2012-04-20qemu-img: let 'qemu-img convert' flush dataLiu Yuan1-0/+1
2012-04-19block: Drain requests in bdrv_closeKevin Wolf1-0/+2
2012-04-05block: add a function to clear incoming live migration flagsBenoît Canet1-0/+9
2012-04-05block: bdrv_append() fixesJeff Cody1-2/+11
2012-04-05block: set job->speed in block_set_speedPaolo Bonzini1-1/+7
2012-04-05block: fix streaming/closing racePaolo Bonzini1-0/+16
2012-04-05block: disable I/O throttling on sync apiZhi Yong Wu1-0/+20
2012-04-05block: push recursive flushing up from driversPaolo Bonzini1-8/+14
2012-03-12block: handle -EBUSY in bdrv_commit_all()Stefan Hajnoczi1-2/+6
2012-02-29qapi: Introduce blockdev-group-snapshot-sync commandJeff Cody1-0/+81