diff options
author | Alex Elder | 2013-04-30 00:44:33 -0500 |
---|---|---|
committer | Sage Weil | 2013-05-01 21:20:18 -0700 |
commit | 9682fc6d3a8b63f58fbfc5084f32c038170cfd6b (patch) | |
tree | c576e1c355153e7537011867ed043d83fccdaed5 /drivers/rapidio/rio-access.c | |
parent | dedc81ea8468fd29bdd13eb5a362cab96b53d802 (diff) |
rbd: look up snapshot name in names buffer
Rather than scanning the list of snapshot structures for it, scan
the snapshot context buffer containing snapshot names in order to
determine for a format 1 image the name associated with a given
snapshot id.
Pull out the part of rbd_dev_v1_snap_info() that does this scan into
a new function, _rbd_dev_v1_snap_name(). Have that function return
a dynamically-allocated copy of the name, and don't duplicate it in
rbd_dev_v1_snap_info().
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'drivers/rapidio/rio-access.c')
0 files changed, 0 insertions, 0 deletions