Implementation of statfs and fstatfs