doc/vfs_ceph: update confusing default hint for ceph:user_id param
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 15 Feb 2023 21:04:07 +0000 (16:04 -0500)
committerAnoop C S <anoopcs@samba.org>
Fri, 24 Feb 2023 04:43:32 +0000 (04:43 +0000)
Previously, the manpage hinted that the `ceph:user_id` parameter derived
a default value from the process id. This implies that it referring
to the PID but this is not what libcephfs actually does. Rather, this
param is used to derive the `client.<id>` authorization name ceph uses.
This mistake probably originates in a comment in the libcephfs header.

When I first started using the vfs_ceph module this confused me as I
didn't know what to use to get access to my cluster. Eventually, after
reading both docs and code I found that it does not use the pid but
defaults to a value in the ceph client library (typically "admin").

Therefore, if you are using commands like `ceph fs authorize x
client.foo` or `ceph auth get client.bar` to authorize a client you
would supply smb.conf with `ceph:user_id = foo` or `ceph:user_id = bar`
respectively.  These entries then need corresponding entries in your
ceph keyring file.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
docs-xml/manpages/vfs_ceph.8.xml

index 5b32122113a852bc6eb5a6b555dc58a67e13a6fe..73726ca10621f396b7d42e1ef3536cf556626076 100644 (file)
                <listitem>
                <para>
                        Allows one to explicitly set the client ID used for the
-                       CephFS mount handle. Empty by default (CephFS uses the
-                       process id).
+                       CephFS mount handle. Empty by default (use the libcephfs
+                       client default).
                </para>
                <para>
                        Example: ceph:user_id = samba