mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-29 11:26:44 -05:00
create lus (least used space) policy. closes #273
This commit is contained in:
parent
e541cdb755
commit
f7d3e8bf47
13 changed files with 189 additions and 8 deletions
|
|
@ -52,4 +52,12 @@ namespace StatVFS
|
|||
{
|
||||
return (st.f_frsize * st.f_bavail);
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
fsblkcnt_t
|
||||
spaceused(const struct statvfs &st)
|
||||
{
|
||||
return (st.f_frsize * (st.f_blocks - st.f_bavail));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue