create lus (least used space) policy. closes #273

This commit is contained in:
Antonio SJ Musumeci 2016-05-07 14:05:38 -04:00
parent e541cdb755
commit f7d3e8bf47
13 changed files with 189 additions and 8 deletions

View file

@ -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));
}
}