]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: harder-working sparse import from stdin
authorDan Mick <dan.mick@inktank.com>
Sat, 8 Dec 2012 06:57:06 +0000 (22:57 -0800)
committerDan Mick <dan.mick@inktank.com>
Sat, 22 Dec 2012 01:03:38 +0000 (17:03 -0800)
commit5905d7fae7dc58384d3c27393ce72e1ab3644fbb
tree778eaa80ec0cbc789f48f0862faa782767e54f30
parent410903fe7a3fdb1fe6ba54ad48e976d0f95c072a
rbd: harder-working sparse import from stdin

Try to accumulate image-sized blocks when importing from stdin, even if
each read is shorter than requested; if we get a full block, and it's
all zeroes, we can seek and make a sparse output file

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/rbd.cc