mirror of
https://github.com/ceph/ceph
synced 2025-01-02 00:52:22 +00:00
Merge pull request #807 from jdurgin/wip-rbd-map-rw
rbd: omit 'rw' option during map Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
commit
9258a1c971
@ -1643,12 +1643,12 @@ static int do_kernel_add(const char *poolname, const char *imgname,
|
||||
}
|
||||
|
||||
if (read_only)
|
||||
oss << " ro";
|
||||
oss << " ro,";
|
||||
else
|
||||
oss << " rw";
|
||||
oss << " ";
|
||||
|
||||
const char *user = g_conf->name.get_id().c_str();
|
||||
oss << ",name=" << user;
|
||||
oss << "name=" << user;
|
||||
|
||||
char key_name[strlen(user) + strlen("client.") + 1];
|
||||
snprintf(key_name, sizeof(key_name), "client.%s", user);
|
||||
|
Loading…
Reference in New Issue
Block a user