rbd: allow configuration of rados from the rbd filename
authorJosh Durgin <josh.durgin@dreamhost.com>
Thu, 26 May 2011 23:07:32 +0000 (16:07 -0700)
committerKevin Wolf <kwolf@redhat.com>
Wed, 8 Jun 2011 09:56:40 +0000 (11:56 +0200)
commitfffe3f2f7b47b46b0d4e320296253321d6a1cc57
treedc9cfb8cc3dc4498ef899d8c5c2c29d9f62ee967
parent50f007d116a9a753eb4ec2858f03b5d5776e913b
rbd: allow configuration of rados from the rbd filename

The new format is rbd:pool/image[@snapshot][:option1=value1[:option2=value2...]]
Each option is used to configure rados, and may be any Ceph option, or "conf".
The "conf" option specifies a Ceph configuration file to read.

This allows rbd volumes from more than one Ceph cluster to be used by
specifying different monitor addresses, as well as having different
logging levels or locations for different volumes.

Reviewed-by: Christian Brunner <chb@muc.de>
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/rbd.c