libceph: define snap context creation function
I created a function to encapsulate the creation of a snapshot
context, for use in rbd. In review, Josh said he thought it
really belonged in libceph (I agreed). I said I would do it
after initially committing the code I'd already done.
See discussion here:
#1 Updated by Alex Elder almost 7 years ago
- Status changed from In Progress to Fix Under Review
The following have been posted for review. They are
available in the "review/wip-rbd-cleanup-6" branch of
the ceph-client git repository.
While reviewing a recent rbd change Josh suggested that a
function I created for creating a snapshot context really
belonged in libceph. These patches do that. The first
defines the function in a new source file, and the second
puts it to work.
[PATCH 1/2] libceph: create source file "net/ceph/snapshot.c"
[PATCH 2/2] ceph: use ceph_create_snap_context()