Project

General

Profile

Actions

Bug #1416

closed

rbd: "cp --snap=mysnap myimage newimage" crashes

Added by Anonymous over 12 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
librbd
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

$ ./rbd create test --size=10
$ ./rbd ls
test
$ ./rbd snap create --snap=stest test
$ ./rbd cp --snap=stest test stest2
*** Caught signal (Segmentation fault) **
 in thread 0x7f03b296d720
 ceph version 0.32-238-g75e6731 (commit:75e673180ad48398b6995a4c27d973bf27ee376f)
 1: /home/tv/src/ceph.git/src/.libs/lt-rbd() [0x446d24]
 2: (()+0xfb40) [0x7f03b1f69b40]
 3: (librbd::snap_set(librbd::ImageCtx*, char const*)+0x10) [0x7f03b25682f0]
 4: (main()+0x47f) [0x44197f]
 5: (__libc_start_main()+0xfe) [0x7f03b098fd8e]
 6: /home/tv/src/ceph.git/src/.libs/lt-rbd() [0x43ed49]

Segmentation fault (core dumped)
Actions #1

Updated by Sage Weil over 12 years ago

  • Target version set to v0.35
  • Translation missing: en.field_position set to 14
Actions #2

Updated by Sage Weil over 12 years ago

  • Translation missing: en.field_position deleted (13)
  • Translation missing: en.field_position set to 8
Actions #3

Updated by Sage Weil over 12 years ago

  • Category set to librbd
  • Assignee set to Sage Weil
Actions #4

Updated by Sage Weil over 12 years ago

  • Status changed from New to Resolved

the --snap specifies the src snap to copy from. the target is always the head of a fresh image.

fixed the librbd api to use image handles so this is cleaner. fixed command line tool to actually do it.

added a test workunit. now works for sparse images.

yay!

Actions

Also available in: Atom PDF