Searched hist:d616b224745b2c522f965cf8de7da17b553b959a (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/include/block/ |
H A D | block_int.h | diff d616b224745b2c522f965cf8de7da17b553b959a Mon Jun 24 10:13:10 CDT 2013 Stefan Hajnoczi <stefanha@redhat.com> block: add bdrv_add_before_write_notifier()
The bdrv_add_before_write_notifier() function installs a callback that is invoked before a write request is processed. This will be used to implement copy-on-write point-in-time snapshots where we need to copy out old data before overwriting it.
Note that BdrvTrackedRequest is moved to block_int.h since it is passed to .notify() functions.
Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
/openbmc/qemu/ |
H A D | block.c | diff d616b224745b2c522f965cf8de7da17b553b959a Mon Jun 24 10:13:10 CDT 2013 Stefan Hajnoczi <stefanha@redhat.com> block: add bdrv_add_before_write_notifier()
The bdrv_add_before_write_notifier() function installs a callback that is invoked before a write request is processed. This will be used to implement copy-on-write point-in-time snapshots where we need to copy out old data before overwriting it.
Note that BdrvTrackedRequest is moved to block_int.h since it is passed to .notify() functions.
Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|