mgmt/glusterd: allow volume start force
Change-Id: If920bf0bf96b61b39bccbb10e66f5f39a55967f5 BUG: 812214 Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Reviewed-on: http://review.gluster.com/3279 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
This commit is contained in:
parent
530a44a7c9
commit
4ec3c04a43
@ -4428,7 +4428,8 @@ check_xattr:
|
||||
/* This 'key' is set when the volume is started for the first time */
|
||||
ret = sys_lgetxattr (path, "trusted.glusterfs.volume-id",
|
||||
old_uuid, 16);
|
||||
if (ret >= 0) {
|
||||
if ((ret >= 0 && ret != 16) || ((ret == 16) &&
|
||||
uuid_compare (old_uuid, uuid))) {
|
||||
snprintf (msg, sizeof (msg), "'%s:%s' has been part of "
|
||||
"a volume with id %s. Please re-create the brick "
|
||||
"directory.", host, path, uuid_utoa (old_uuid));
|
||||
|
Loading…
x
Reference in New Issue
Block a user