diff options
author | Alex Elder <elder@inktank.com> | 2013-04-30 09:44:33 +0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 08:20:18 +0400 |
commit | 9682fc6d3a8b63f58fbfc5084f32c038170cfd6b (patch) | |
tree | c576e1c355153e7537011867ed043d83fccdaed5 /Documentation/svga.txt | |
parent | dedc81ea8468fd29bdd13eb5a362cab96b53d802 (diff) | |
download | linux-9682fc6d3a8b63f58fbfc5084f32c038170cfd6b.tar.xz |
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 'Documentation/svga.txt')
0 files changed, 0 insertions, 0 deletions