tests.c: keep functions static if possible
ringfs.h: add ringfs_capacity()