From 4a65356275cda45f665dfa99d3712f6fb9087aff Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Fri, 17 Feb 2012 19:21:07 +0530 Subject: cluster/dht: Support for hardlink rebalance when decommissioning The support for hardlink rebalance is only available for decommissioning of a node. this can be triggered in two ways 1. remove-brick start 2. if decommission node value is set in vol file, then a normal rebalance command The way we handle it is- if (nlink > 1) do * if src file doesnt have linkto xattr * mark src's linkto to the dst * else * perform a link on the dst * do a look up * if nlinks = dst.nlinks * migrate data * else * continue crawling done Signed-off-by: shishir gowda Change-Id: If43b5524b872fd1413e9f7aa7f436cb244e30d8d BUG: 763844 Reviewed-on: http://review.gluster.com/2737 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- xlators/storage/posix/src/posix.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/storage') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 9e003a76a..5849626b0 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -756,6 +756,7 @@ posix_mknod (call_frame_t *frame, xlator_t *this, internal call from distribute for creating 'linkfile', and that linkfile may be for a hardlinked file */ if (dict_get (params, GLUSTERFS_INTERNAL_FOP_KEY)) { + dict_del (params, GLUSTERFS_INTERNAL_FOP_KEY); op_ret = dict_get_ptr (params, "gfid-req", &uuid_req); if (op_ret) { gf_log (this->name, GF_LOG_DEBUG, -- cgit