Skip to content
Snippets Groups Projects
Commit b0d8ed4d authored by Alasdair G Kergon's avatar Alasdair G Kergon
Browse files

dm: add target num_write_bios fn


Add a num_write_bios function to struct target.

If an instance of a target sets this, it will be queried before the
target's mapping function is called on a write bio, and the response
controls the number of copies of the write bio that the target will
receive.

This provides a convenient way for a target to send the same data to
more than one device.  The new cache target uses this in writethrough
mode, to send the data both to the cache and the backing device.

Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent df5d2e90
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