From 2fb2bef51a53b4c776f54633000eb41ac88fe82b Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 9 Mar 2010 07:57:14 +0000 Subject: send lookup on every subvolume if local->hashed_subvol is NULL in nufa/switch Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 114 (Creating files or directories gives "Invalid argument") URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=114 --- xlators/cluster/dht/src/nufa.c | 5 +++-- xlators/cluster/dht/src/switch.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'xlators/cluster/dht') diff --git a/xlators/cluster/dht/src/nufa.c b/xlators/cluster/dht/src/nufa.c index eb12be60d9f..a4a4a2568ac 100644 --- a/xlators/cluster/dht/src/nufa.c +++ b/xlators/cluster/dht/src/nufa.c @@ -134,8 +134,9 @@ out: gf_log (this->name, GF_LOG_DEBUG, "no subvolume in layout for path=%s", local->loc.path); - op_errno = EINVAL; - goto err; + local->op_errno = ENOENT; + dht_lookup_everywhere (frame, this, loc); + return 0; } STACK_WIND (frame, dht_lookup_cbk, diff --git a/xlators/cluster/dht/src/switch.c b/xlators/cluster/dht/src/switch.c index 5a36f8dab04..766bd31ff48 100644 --- a/xlators/cluster/dht/src/switch.c +++ b/xlators/cluster/dht/src/switch.c @@ -207,8 +207,9 @@ out: gf_log (this->name, GF_LOG_DEBUG, "no subvolume in layout for path=%s", local->loc.path); - op_errno = EINVAL; - goto err; + local->op_errno = ENOENT; + dht_lookup_everywhere (frame, this, loc); + return 0; } STACK_WIND (frame, dht_lookup_cbk, -- cgit