diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2016-05-11 18:24:40 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2016-05-18 02:06:07 -0700 |
commit | 5a4f4a945661a8bb24735524e152ccd5b1ba571a (patch) | |
tree | 27b1ab6c32de79672debb01b518e4464672e2fba /extras/hook-scripts/reset | |
parent | a84034a5f7f547790c095950cd8a697c8c7b31ca (diff) |
glusterd: copy real_path from older brickinfo during brick import
In glusterd_import_new_brick () new_brickinfo->real_path will not be populated
for the first time and hence if the underlying file system is bad for the same
brick, import will fail resulting in inconsistent configuration data.
Fix is to populate real_path from old brickinfo object.
Also there were many cases where we were unnecessarily calling realpath() and
that may cause in failure. For eg - if a remove brick is executed with a brick
whoose underlying file system has crashed, remove-brick fails since realpath()
call fails. We'd need to call realpath() here as the value is of no use.Hence
passing construct_realpath as _gf_false in glusterd_volume_brickinfo_get_by_brick ()
is a must in such cases.
Change-Id: I7ec93871dc9e616f5d565ad5e540b2f1cacaf9dc
BUG: 1335531
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: http://review.gluster.org/14306
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'extras/hook-scripts/reset')
0 files changed, 0 insertions, 0 deletions