summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ha/src/ha.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-06-05 17:51:59 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-17 16:04:32 -0700
commit9286a599f62289e8630ee28ea7da7308396d8fdf (patch)
tree4d9151ec5cb717718346ed7f01f9aa66bf2fcfaf /xlators/cluster/ha/src/ha.h
parentbb4e14b213a39e9d403be9790ef0a75388496dee (diff)
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 <avati@dev.gluster.com>
Diffstat (limited to 'xlators/cluster/ha/src/ha.h')
-rw-r--r--xlators/cluster/ha/src/ha.h2
1 files changed, 1 insertions, 1 deletions
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;