From 01cd59506e8021b4adb7fe8b4877a7e60beb13f6 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Thu, 18 Oct 2012 15:40:02 +0530 Subject: cluster/dht: Heal dir uid/gid Identify mismatching uid/gid in lookup, and trigger a syncop heal. uid/gid of subvol with latest ctime is trusted (local->prebuf). Change-Id: Ib5c4bc438e7f4b1f33080e73593f40f400e997f0 BUG: 862967 Signed-off-by: shishir gowda Reviewed-on: http://review.gluster.org/3964 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/cluster/dht/src/dht-layout.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'xlators/cluster/dht/src/dht-layout.c') diff --git a/xlators/cluster/dht/src/dht-layout.c b/xlators/cluster/dht/src/dht-layout.c index 19807607758..993f6166a12 100644 --- a/xlators/cluster/dht/src/dht-layout.c +++ b/xlators/cluster/dht/src/dht-layout.c @@ -615,6 +615,16 @@ out: return ret; } +int +dht_dir_has_layout (dict_t *xattr) +{ + + void *disk_layout_raw = NULL; + + return dict_get_ptr (xattr, "trusted.glusterfs.dht", + &disk_layout_raw); + +} int dht_layout_dir_mismatch (xlator_t *this, dht_layout_t *layout, xlator_t *subvol, -- cgit