Issue #312 - enforce filesystem limits

Closes #312
@gideonthomas thoughts on this?