未验证 提交 b51c8c32 编写于 作者: S Sandy Xu 提交者: GitHub

meta: increate inode available automatically to get a proper inode usage (#851)

* meta: increate inode available automatically to get a proper inode usage

* minor fix
上级 01ae8af4
......@@ -603,6 +603,9 @@ func (r *redisMeta) StatFS(ctx Context, totalspace, availspace, iused, iavail *u
}
} else {
*iavail = 10 << 20
for *iused*10 > (*iused+*iavail)*8 {
*iavail *= 2
}
}
return 0
}
......
......@@ -690,6 +690,9 @@ func (m *dbMeta) StatFS(ctx Context, totalspace, availspace, iused, iavail *uint
}
} else {
*iavail = 10 << 20
for *iused*10 > (*iused+*iavail)*8 {
*iavail *= 2
}
}
return 0
}
......
......@@ -880,6 +880,9 @@ func (m *kvMeta) StatFS(ctx Context, totalspace, availspace, iused, iavail *uint
}
} else {
*iavail = 10 << 20
for *iused*10 > (*iused+*iavail)*8 {
*iavail *= 2
}
}
return 0
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册