From 9286a599f62289e8630ee28ea7da7308396d8fdf Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 5 Jun 2009 17:51:59 +0000 Subject: change ha-statfs() to handle the case of loc->inode being NULL This fix is needed in ha_statfs(), as the current code doesn't handle the case of loc->inode being NULL, which is a valid case in statfs() [Remember its stateless call]. This was causing 100% disk full logs in distribute or nufa as the logic of checking whether the subvolumes have enough disk space on them used to fail. Signed-off-by: Anand V. Avati --- xlators/cluster/ha/src/ha.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster/ha/src/ha.h') diff --git a/xlators/cluster/ha/src/ha.h b/xlators/cluster/ha/src/ha.h index 7e4898ceb90..d47d965355e 100644 --- a/xlators/cluster/ha/src/ha.h +++ b/xlators/cluster/ha/src/ha.h @@ -27,7 +27,7 @@ typedef struct { int32_t call_count; char *state, *pattern; dict_t *dict; - loc_t *loc; + loc_t loc; struct stat buf; fd_t *fd; inode_t *inode; -- cgit