From 96f01bf9e877f352dd893605397e0d8d1f4d993e Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Mon, 11 Apr 2011 03:44:24 +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(+) diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 5454bf33e..83ec81ff3 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -4374,6 +4374,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