summaryrefslogtreecommitdiff
path: root/src/librbd
Commit message (Collapse)AuthorAgeFilesLines
* librbd: replace assign_bid with client id and random numberJosh Durgin2012-07-232-21/+0
| | | | | | | | | | | | | | | The assign_bid method has issues with replay because it is a write that also returns data. This means that the replayed operation would return success, but no data, and cause a create to fail. Instead, let the client set the bid based on its global id and a random number. This only affects the creation of new images, since the bid is put into an opaque string as part of the object prefix. Keep the server side assign_bid around in case there are old clients still using it. Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
* cls_rbd: add methods for interacting with the new header formatJosh Durgin2012-06-082-0/+383
| | | | | | | Add the client side (cls_rbd_client) for testing as well. librbd will use the functions in cls_rbd_client to interact with cls_rbd. Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
* make everyone use our assert #include and macroSage Weil2012-06-061-0/+2
| | | | | | ...as detected by the previous patch. Signed-off-by: Sage Weil <sage@inktank.com>
* librbd: allow writeback cachingJosh Durgin2012-04-132-0/+118
This uses the existing infrastructure of ObjectCacher for buffer management and expiry. Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>