diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-08 21:18:20 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2017-02-08 21:31:43 +0530 |
commit | 9f570a3967c0a4ebbe35a04284181406faf8fe36 (patch) | |
tree | 1bc34cd56731fe639112a1c42d7075a27104ff8d /utils | |
parent | 4d72dbc37c5f10dc33de0ac22d90bf1563fc5f0d (diff) |
gluster-block: create block files in '/block-store' dir
till now we have '/block-meta' dir for meta files and actual block files
used to reside in '/' dir. From now, lets place block files in '/block-store'
So, this is how it looks like:
$ tree /mnt/
/mnt/
├── block-meta
│ ├── meta.lock
│ └── TARGET
└── block-store
└── 103e4cf1-bf41-404a-9fe1-b7c70fc33b3e
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/common.h | 4 | ||||
-rw-r--r-- | utils/utils.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/utils/common.h b/utils/common.h index 6b0983d..90372ed 100644 --- a/utils/common.h +++ b/utils/common.h @@ -20,6 +20,10 @@ # define GFAPI_LOG_FILE "/var/log/gluster-block/gluster-block-gfapi.log" # define GFAPI_LOG_LEVEL 7 +# define GB_METADIR "/block-meta" +# define GB_STOREDIR "/block-store" +# define GB_TXLOCKFILE "meta.lock" + ssize_t glusterBlockCreateParseSize(char *value); diff --git a/utils/utils.h b/utils/utils.h index 2323418..0545219 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -198,7 +198,7 @@ static const char *const gbCmdlineCreateOptLookup[] = { [GB_CLI_CREATE_VOLSERVER] = "volserver", [GB_CLI_CREATE_SIZE] = "size", [GB_CLI_CREATE_MULTIPATH] = "mpath", - [GB_CLI_CREATE_BACKEND_SERVESRS] = "backend-servers", + [GB_CLI_CREATE_BACKEND_SERVESRS] = "servers", [GB_CLI_CREATE_OPT_MAX] = NULL |