enforce file partition max to prevent loop