Received: from eggs.gnu.org ([140.186.70.92]:49866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4JD6-00086J-Qi for qemu-devel@nongnu.org; Thu, 15 Sep 2011 17:11:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4JD5-0006eh-CH for qemu-devel@nongnu.org; Thu, 15 Sep 2011 17:11:04 -0400 Received: from cobra.newdream.net ([66.33.216.30]:46103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4JD5-0006eM-7z for qemu-devel@nongnu.org; Thu, 15 Sep 2011 17:11:03 -0400 From: Sage Weil Date: Thu, 15 Sep 2011 14:11:10 -0700 Message-Id: <1316121071-7690-4-git-send-email-sage@newdream.net> In-Reply-To: <1316121071-7690-1-git-send-email-sage@newdream.net> References: <1316121071-7690-1-git-send-email-sage@newdream.net> Subject: [Qemu-devel] [PATCH 3/4] rbd: update comment heading List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, ceph-devel@vger.kernel.org Cc: Sage Weil Properly document the configuration string syntax and semantics. Remove (out of date) details about the librbd implementation. Signed-off-by: Sage Weil --- block/rbd.c | 28 +++++++++++++--------------- 1 files changed, 13 insertions(+), 15 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index 43f0e63..202e7ec 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -13,35 +13,33 @@ #include "qemu-common.h" #include "qemu-error.h" - #include "block_int.h" #include - - /* * When specifying the image filename use: * * rbd:poolname/devicename[@snapshotname][:option1=value1[:option2=value2...]] * - * poolname must be the name of an existing rados pool + * poolname must be the name of an existing rados pool. * - * devicename is the basename for all objects used to - * emulate the raw device. + * devicename is the name of the rbd image. * - * Each option given is used to configure rados, and may be - * any Ceph option, or "conf". The "conf" option specifies - * a Ceph configuration file to read. + * Each option given is used to configure rados, and may be any valid + * Ceph option, "id", or "conf". * - * Metadata information (image size, ...) is stored in an - * object with the name "devicename.rbd". + * The "id" option indicates what user we should authenticate as to + * the Ceph cluster. If it is excluded we will use the Ceph default + * (normally 'admin'). * - * The raw device is split into 4MB sized objects by default. - * The sequencenumber is encoded in a 12 byte long hex-string, - * and is attached to the devicename, separated by a dot. - * e.g. "devicename.1234567890ab" + * The "conf" option specifies a Ceph configuration file to read. If + * it is not specified, we will read from the default Ceph locations + * (e.g., /etc/ceph/ceph.conf). To avoid reading _any_ configuration + * file, specify conf=/dev/null. * + * Configuration values containing :, @, or = can be escaped with a + * leading "\". */ #define OBJ_MAX_SIZE (1UL << OBJ_DEFAULT_OBJ_ORDER) -- 1.7.2.5