From eb362c74db84d95aac07febf0d888bd98b3fb2b9 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Sat, 6 Feb 2016 21:09:29 +0530 Subject: cluster/tier: Create linkfiles to hardlinks correctly There is a bug in the way hardlinks are handled in tiered volumes. Ideally, the tier linkto files on the cold tier to files that are hardlinks to each other on the hot tier, should themselves be hardlinks of each other. As they are not, they end up being files with the same gfid but different names for the cold tier dht, and end up overwriting the cached-subvol information stored in the dht inode-ctx. Change-Id: Ic658a316836e6a1729cfea848b7d212674b0edd2 BUG: 1305277 Signed-off-by: N Balachandran Reviewed-on: http://review.gluster.org/13391 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Dan Lambright Tested-by: Dan Lambright --- xlators/cluster/dht/src/tier-common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/cluster/dht/src/tier-common.h') diff --git a/xlators/cluster/dht/src/tier-common.h b/xlators/cluster/dht/src/tier-common.h index 17cddcdd3e4..0ef96aca032 100644 --- a/xlators/cluster/dht/src/tier-common.h +++ b/xlators/cluster/dht/src/tier-common.h @@ -53,5 +53,10 @@ tier_readdir (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size, off_t yoff, dict_t *xdata); + + +int +tier_link (call_frame_t *frame, xlator_t *this, + loc_t *oldloc, loc_t *newloc, dict_t *xdata); #endif -- cgit