]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: properly document 'rbd map' without touching sysfs
authorSage Weil <sage@inktank.com>
Fri, 17 Aug 2012 00:10:46 +0000 (17:10 -0700)
committerSage Weil <sage@inktank.com>
Fri, 17 Aug 2012 23:51:16 +0000 (16:51 -0700)
Fixes: #2670
Signed-off-by: Sage Weil <sage@inktank.com>
doc/rbd/rbd-ko.rst

index aab2f1f5c402b4cacbe28eb2acf18e340351dbb3..4f8e4bd7b45def75123d170a46e80502e9a8520a 100644 (file)
@@ -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``
 -------------------------------