diff options
author | nik-redhat <nladha@redhat.com> | 2020-09-15 16:20:19 +0530 |
---|---|---|
committer | Sanju Rakonde <sanjurakonde@review.gluster.org> | 2020-09-20 14:06:23 +0000 |
commit | 0ec6d61567ab1b5e481de45bdeb9912ffe5e89d7 (patch) | |
tree | 87e7e8c34b14ed3cb5cbc75ee93ace2adae1249a /rpc/rpc-lib/src/protocol-common.h | |
parent | 558fe62a28f05fab2a913e9e9ed1206ed2d28d71 (diff) |
glusterd: mount directory getting truncated on mounting shared_storage
Issue:
In case of a user created volume the mount point
is the brick path 'ex: /data/brick' but in case of
shared_storage the mount point is '/'.So, here
we increment the array by one so as to get the exact
path of brick without '/', which works fine for other
volumes as the pointer of the brick_dir variable is
at '/', but for shared_storage it is at 'v'(where v is
starting letter of 'var' directory). So, on incrementing
the path we get in case of shared_storage starts from
'ar/lib/glusterd/...'
Fix:
Only, increment the pointer if the current position is '/',
else the path will be wrong.
Fixes: #1480
Change-Id: Id31bb13f58134ae2099884fbc5984c4e055fb357
Signed-off-by: nik-redhat <nladha@redhat.com>
Diffstat (limited to 'rpc/rpc-lib/src/protocol-common.h')
0 files changed, 0 insertions, 0 deletions