diff options
author | Alex Elder <elder@inktank.com> | 2012-07-03 16:01:19 -0500 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2012-10-01 14:30:53 -0500 |
commit | cd892126c617b3837b6088bf6c097ad2def4de83 (patch) | |
tree | 769239813e121ed6191ca8d3db3dd8d23ec76f4d /virt | |
parent | 34b131849feb359f183907b467e9aa4d652b1baa (diff) |
rbd: encapsulate code that gets snapshot info
Create a function that encapsulates looking up the name, size and
features related to a given snapshot, which is indicated by its
index in an rbd device's snapshot context array of snapshot ids.
This interface will be used to hide differences between the format 1
and format 2 images.
At the moment this (looking up the name anyway) is slightly less
efficient than what's done currently, but we may be able to optimize
this a bit later on by cacheing the last lookup if it proves to be a
problem.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions