Josh Durgin d3246fb0da rbd: use helpers to handle discard for layered images correctly
Only allocate two osd ops for discard requests, since the
preallocation hint is only added for regular writes.  Use
rbd_img_obj_request_fill() to recreate the original write or discard
osd operations, isolating that logic to one place, and change the
assert in rbd_osd_req_create_copyup() to accept discard requests as
well.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2014-10-14 21:03:36 +04:00
..
2014-03-04 07:55:47 -08:00
2014-08-21 20:42:01 -05:00
2014-08-08 15:57:28 -07:00
2014-08-08 15:57:28 -07:00
2014-01-30 16:56:55 -08:00
2014-01-30 16:56:55 -08:00
2014-06-06 07:57:37 -06:00