Project

General

Profile

Bug #14118

librbd: exit if parent's snap is gone

Added by xie xingguo over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/18/2015
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

In internal.cc

int clone(IoCtx& p_ioctx, const char *p_name, const char *p_snap_name,
IoCtx& c_ioctx, const char *c_name,
uint64_t features, int *c_order,
uint64_t stripe_unit, int stripe_count)

p_imctx->snap_lock.get_read();
p_features = p_imctx->features;
size = p_imctx->get_image_size(p_imctx->snap_id);
p_imctx->is_snap_protected(p_imctx->snap_id, &snap_protected);
p_imctx->snap_lock.put_read();

Shall check returned value of is_snap_protected() method

Associated revisions

Revision 395bf8a8 (diff)
Added by xie xingguo over 3 years ago

librbd: exit if parent snap is gone during clone

Fixes: #14118
Signed-off-by: xie xingguo <>

History

#1 Updated by Nathan Cutler over 3 years ago

  • Project changed from Ceph to rbd

#2 Updated by xie xingguo over 3 years ago

#3 Updated by Nathan Cutler over 3 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF