]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix create existence checking
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 12 Nov 2012 21:59:36 +0000 (13:59 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 12 Nov 2012 21:59:41 +0000 (13:59 -0800)
commit8b1f5472434c407fed61dd8fbfe4cc4be8208491
treed6b5077fc22916fe7180bf2c6729514b7f4d003c
parent614cf34bb2b294a896bf1b1cd28547dd1f668148
librbd: fix create existence checking

cda9e516b8bb09b8846814cc8d4ee2879a53b2d5 made us return 0 when the
image already existed, causing copy to erroneosly ignore an existing
image. Separate the case where we know the image exists from being
unable to tell whether it exists because of e.g. an authentication
problem.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librbd/internal.cc