block_int.h (29338003c93c3e81ea00f7b45baeee379fa83aa5) block_int.h (71aa98678c2b5616de5453d55e12f8ea810fbefb)
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 683 unchanged lines hidden (view full) ---

692 */
693void commit_active_start(BlockDriverState *bs, BlockDriverState *base,
694 int64_t speed,
695 BlockdevOnError on_error,
696 BlockCompletionFunc *cb,
697 void *opaque, Error **errp);
698/*
699 * mirror_start:
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 683 unchanged lines hidden (view full) ---

692 */
693void commit_active_start(BlockDriverState *bs, BlockDriverState *base,
694 int64_t speed,
695 BlockdevOnError on_error,
696 BlockCompletionFunc *cb,
697 void *opaque, Error **errp);
698/*
699 * mirror_start:
700 * @job_id: The id of the newly-created job, or %NULL to use the
701 * device name of @bs.
700 * @bs: Block device to operate on.
701 * @target: Block device to write to.
702 * @replaces: Block graph node name to replace once the mirror is done. Can
703 * only be used when full mirroring is selected.
704 * @speed: The maximum speed, in bytes per second, or 0 for unlimited.
705 * @granularity: The chosen granularity for the dirty bitmap.
706 * @buf_size: The amount of data that can be in flight at one time.
707 * @mode: Whether to collapse all images in the chain to the target.

--- 5 unchanged lines hidden (view full) ---

713 * @opaque: Opaque pointer value passed to @cb.
714 * @errp: Error object.
715 *
716 * Start a mirroring operation on @bs. Clusters that are allocated
717 * in @bs will be written to @bs until the job is cancelled or
718 * manually completed. At the end of a successful mirroring job,
719 * @bs will be switched to read from @target.
720 */
702 * @bs: Block device to operate on.
703 * @target: Block device to write to.
704 * @replaces: Block graph node name to replace once the mirror is done. Can
705 * only be used when full mirroring is selected.
706 * @speed: The maximum speed, in bytes per second, or 0 for unlimited.
707 * @granularity: The chosen granularity for the dirty bitmap.
708 * @buf_size: The amount of data that can be in flight at one time.
709 * @mode: Whether to collapse all images in the chain to the target.

--- 5 unchanged lines hidden (view full) ---

715 * @opaque: Opaque pointer value passed to @cb.
716 * @errp: Error object.
717 *
718 * Start a mirroring operation on @bs. Clusters that are allocated
719 * in @bs will be written to @bs until the job is cancelled or
720 * manually completed. At the end of a successful mirroring job,
721 * @bs will be switched to read from @target.
722 */
721void mirror_start(BlockDriverState *bs, BlockDriverState *target,
722 const char *replaces,
723void mirror_start(const char *job_id, BlockDriverState *bs,
724 BlockDriverState *target, const char *replaces,
723 int64_t speed, uint32_t granularity, int64_t buf_size,
724 MirrorSyncMode mode, BlockMirrorBackingMode backing_mode,
725 BlockdevOnError on_source_error,
726 BlockdevOnError on_target_error,
727 bool unmap,
728 BlockCompletionFunc *cb,
729 void *opaque, Error **errp);
730

--- 49 unchanged lines hidden ---
725 int64_t speed, uint32_t granularity, int64_t buf_size,
726 MirrorSyncMode mode, BlockMirrorBackingMode backing_mode,
727 BlockdevOnError on_source_error,
728 BlockdevOnError on_target_error,
729 bool unmap,
730 BlockCompletionFunc *cb,
731 void *opaque, Error **errp);
732

--- 49 unchanged lines hidden ---