diff options
author | Josh Durgin <josh.durgin@dreamhost.com> | 2011-11-21 13:04:42 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-26 11:38:10 -0800 |
commit | 6448acf6e6b603c4fa21697931cd400ebee21d4a (patch) | |
tree | e0c2f7588518946fae0d302c1ff81af81e2b41cf /drivers/ide | |
parent | 45739514727c294e843269d515b952d5dbd911bf (diff) | |
download | lwn-6448acf6e6b603c4fa21697931cd400ebee21d4a.tar.gz lwn-6448acf6e6b603c4fa21697931cd400ebee21d4a.zip |
rbd: store snapshot id instead of index
(cherry picked from commit 77dfe99fe3cb0b2b0545e19e2d57b7a9134ee3c0)
When a device was open at a snapshot, and snapshots were deleted or
added, data from the wrong snapshot could be read. Instead of
assuming the snap context is constant, store the actual snap id when
the device is initialized, and rely on the OSDs to signal an error
if we try reading from a snapshot that was deleted.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Reviewed-by: Alex Elder <elder@dreamhost.com>
Reviewed-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ide')
0 files changed, 0 insertions, 0 deletions