]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: fix import pool assumptions
authorDan Mick <dan.mick@inktank.com>
Fri, 16 Nov 2012 06:41:36 +0000 (22:41 -0800)
committerDan Mick <dan.mick@inktank.com>
Tue, 27 Nov 2012 05:38:05 +0000 (21:38 -0800)
commitc219698149c2fe4d2539f0bc1e2009b937aa4250
tree3583da3f75ad696bd1ef77de546a91f59ec3adfa
parent3b0c36052806a4574ede6a9f0594dc83f7997bcc
rbd: fix import pool assumptions

import allows specifying one image, implicitly or explicitly the
"source" image, even though it's really the destination.  Fix up
the reassignment of 'source' to 'dest', and check for and complain
about specifying two different pools or images for import.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/rbd.cc