Module parameter 'id' represents 'Client id portion of the Ceph
client name used by librgw'.
Additionally updated new parameter in man page.
Signed-off-by: Vinit Agnihotri <vagnihot@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Mon Jun 22 15:36:07 UTC 2026 on atb-devel-224
<para>
Allows one to define a ceph keyring file to use.
(Required)
<para>
Allows one to define a ceph keyring file to use.
(Required)
- Default:
- /etc/ceph/ceph.client.admin.keyring
</para>
<para>
Example: ceph_rgw:keyring_file =
</para>
<para>
Example: ceph_rgw:keyring_file =
</listitem>
</varlistentry>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>ceph_rgw:id = name</term>
+ <listitem>
+ <para>
+ Client id portion of the Ceph client name used by librgw
+ (Required)
+ </para>
+ <para>
+ Example: ceph_rgw:id = admin
+ </para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
</refsect1>
</variablelist>
</refsect1>
<smbconfoption name="inherit permissions">yes</smbconfoption>
<smbconfoption name="vfs objects">ceph_rgw</smbconfoption>
<smbconfoption name="ceph_rgw:bucket">my-bucket</smbconfoption>
<smbconfoption name="inherit permissions">yes</smbconfoption>
<smbconfoption name="vfs objects">ceph_rgw</smbconfoption>
<smbconfoption name="ceph_rgw:bucket">my-bucket</smbconfoption>
+ <smbconfoption name="ceph_rgw:id">admin</smbconfoption>
<smbconfoption name="ceph_rgw:user_id">user1</smbconfoption>
<smbconfoption name="ceph_rgw:access_key">user1passwd</smbconfoption>
<smbconfoption name="ceph_rgw:secret_access_key">user1passwd</smbconfoption>
<smbconfoption name="ceph_rgw:user_id">user1</smbconfoption>
<smbconfoption name="ceph_rgw:access_key">user1passwd</smbconfoption>
<smbconfoption name="ceph_rgw:secret_access_key">user1passwd</smbconfoption>
struct vfs_ceph_rgw_config {
/* Module parameters */
struct vfs_ceph_rgw_config {
/* Module parameters */
const char *bkt_name;
const char *user_id;
const char *access_key;
const char *bkt_name;
const char *user_id;
const char *access_key;
librgw_params[1] = talloc_asprintf(
librgw_params,
librgw_params[1] = talloc_asprintf(
librgw_params,
- " --name=client.admin --cluster=ceph"
- " --conf=%s --keyring=%s",
+ "--id=%s --conf=%s "
+ "--keyring=%s",
+ config->id,
config->config_file,
config->keyring_file);
if (librgw_params[1] == NULL) {
config->config_file,
config->keyring_file);
if (librgw_params[1] == NULL) {
+ config_tmp->id = vfs_ceph_rgw_parm(handle, "id", NULL);
+ if (config_tmp->id == NULL) {
+ goto out;
+ }
+
config_tmp->config_file = vfs_ceph_rgw_parm(handle,
"config_file",
"/etc/ceph/ceph.conf");
config_tmp->config_file = vfs_ceph_rgw_parm(handle,
"config_file",
"/etc/ceph/ceph.conf");
- config_tmp->keyring_file = vfs_ceph_rgw_parm(
- handle, "keyring_file", "/etc/ceph/ceph.client.admin.keyring");
+ config_tmp->keyring_file = vfs_ceph_rgw_parm(handle,
+ "keyring_file",
+ NULL);
if (config_tmp->keyring_file == NULL) {
goto out;
}
if (config_tmp->keyring_file == NULL) {
goto out;
}