From 4ce0a516f6b3f216bd222cb9c2d5066185450847 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 16 Aug 2012 17:10:46 -0700 Subject: [PATCH] doc: properly document 'rbd map' without touching sysfs Fixes: #2670 Signed-off-by: Sage Weil --- doc/rbd/rbd-ko.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/rbd/rbd-ko.rst b/doc/rbd/rbd-ko.rst index aab2f1f5c402b..4f8e4bd7b45de 100644 --- a/doc/rbd/rbd-ko.rst +++ b/doc/rbd/rbd-ko.rst @@ -25,15 +25,16 @@ Use ``rbd`` to map an image name to a kernel object. You must specify the image name, the pool name, and the client name. If you use ``cephx`` authentication, you must also specify a secret. :: - sudo rbd map {image-name} --pool {pool-name} --name {client-name} --secret {client-secret} + sudo rbd map {image-name} --pool {pool-name} --name {client-name} For example:: - sudo rbd map foo --pool rbd --name client.admin + sudo rbd map foo --pool rbd myimage --name client.admin -If you use ``cephx`` authentication, you must also specify a secret. :: +If you use ``cephx`` authentication, you must also specify a secret. It may come from a keyring, a file containing the secret, or be specified explicitly on the command line. :: - echo "10.20.30.40 name=admin,secret=/path/to/secret rbd foo" | sudo tee /sys/bus/rbd/add + sudo rbd map foo --pool rbd myimage --name client.foo --keyring /path/to/keyring + sudo rbd map foo --pool rbd myimage --name client.foo --keyfile /path/to/file Map a Block Device with ``add`` ------------------------------- -- 2.39.5