diff options
author | Mohammed Rafi KC <rkavunga@redhat.com> | 2015-10-15 12:01:14 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2015-11-09 02:52:34 -0800 |
commit | 87c877c93c399863b6afcc642d015627217b79f8 (patch) | |
tree | 6e9e2cb41cb110cb26b3505e990dcc77f65084cf /xlators/cluster/dht/src/dht-common.h | |
parent | 42e23211fcc1f7da320a318a6b212e2af60214f6 (diff) |
dht: heal directory path if the directory is not present
back port of http://review.gluster.org/#/c/12376/
After a successful nameless lookup if the directory is not
present on any of the subvol, then we will get the path of
the directory and will recursively send a named lookp on
each parent directory.
This will help particularly for the scenarios like add brick
and attach-tier.
Change-Id: I97f3178adb08b88910f709f0acf1d86c147be017
BUG: 1279095
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
Reviewed-on: http://review.gluster.org/12539
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: N Balachandran <nbalacha@redhat.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.h')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h index 6cc2959a831..79a7e980df2 100644 --- a/xlators/cluster/dht/src/dht-common.h +++ b/xlators/cluster/dht/src/dht-common.h @@ -1111,6 +1111,12 @@ int dht_layout_sort (dht_layout_t *layout); int +dht_heal_full_path (void *data); + +int +dht_heal_full_path_done (int op_ret, call_frame_t *frame, void *data); + +int dht_layout_missing_dirs (dht_layout_t *layout); int |