From 67705d888c4e038f188da8a21ade8db447cd7009 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Thu, 7 Apr 2011 04:45:40 +0000 Subject: DHT: Propogate error if dht_rmdir_opendir_cbk Earlier rmdir would succeed on all up subvols, but fuse would get an error if one of the subvol was down. In follow up lookup, self heal would be triggered, and since st_mode would be 0, the permissions would be bad. The behaviour now is to fail rmdir if subvol is down Signed-off-by: shishir gowda Signed-off-by: Anand Avati BUG: 2591 (Directories changing to d--------- permission after trying to delete) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2591 --- xlators/cluster/dht/src/dht-common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/cluster/dht') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 5cf19d017..35bf180f5 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -4490,6 +4490,8 @@ dht_rmdir_opendir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, "opendir on %s for %s failed (%s)", prev->this->name, local->loc.path, strerror (op_errno)); + local->op_ret = -1; + local->op_errno = op_errno; goto err; } -- cgit