Skip to content
Snippets Groups Projects
Commit 15df6e69 authored by Vladimir Sementsov-Ogievskiy's avatar Vladimir Sementsov-Ogievskiy Committed by Vladimir Sementsov-Ogievskiy
Browse files

block/block-copy: block_copy(): add timeout_ns parameter


Add possibility to limit block_copy() call in time. To be used in the
next commit.

As timed-out block_copy() call will continue in background anyway (we
can't immediately cancel IO operation), it's important also give user a
possibility to pass a callback, to do some additional actions on
block-copy call finish.

Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@openvz.org>
Reviewed-by: default avatarHanna Reitz <hreitz@redhat.com>
Signed-off-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
parent e1878eb5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment