diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-04-11 16:41:33 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <pkalever@redhat.com> | 2017-05-02 10:08:30 +0000 |
commit | 5d48aba7b65dfad09bfc639e3434f03227b8bd50 (patch) | |
tree | 3693acc473929c5592e68ffdd1990197cd6dfbed /rpc/rpcl/block.x | |
parent | 1ed7bd14303fca5c3dd36a30a88d4d2d053f4334 (diff) |
create: support 'auth enable' option
This patch add support to enable auth while create.
The schematics of authentication setting for/while create, looks like
$ gluster-block create block-test/sample-block ha 1 auth enable \
192.168.0.105 1GiB --json-pretty
{
"IQN":"iqn.2016-12.org.gluster-block:dc6cca79-f9b7-44f5-acaf-ac81c9cc7c2e",
"USERNAME":"dc6cca79-f9b7-44f5-acaf-ac81c9cc7c2e",
"PASSWORD":"ae48635a-6902-454c-949a-f2ad0e056086",
"PORTAL(S)":[
"192.168.0.105:3260"
],
"RESULT":"SUCCESS"
}
Change-Id: Ib8f5ddd904cb879e0ee05f6a7c3c381c6615a0e4
Fixes: #5
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'rpc/rpcl/block.x')
-rw-r--r-- | rpc/rpcl/block.x | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rpc/rpcl/block.x b/rpc/rpcl/block.x index df29542..ddf381d 100644 --- a/rpc/rpcl/block.x +++ b/rpc/rpcl/block.x @@ -18,8 +18,10 @@ struct blockCreate { char ipaddr[255]; char volume[255]; char gbid[127]; /* uuid */ + char passwd[127]; /* uuid */ u_quad_t size; char block_name[255]; + bool auth_mode; }; struct blockModify { @@ -34,6 +36,7 @@ struct blockCreateCli { char volume[255]; u_quad_t size; u_int mpath; /* HA request count */ + bool auth_mode; char block_name[255]; string block_hosts<>; enum JsonResponseFormat json_resp; |