Add max page offset allocated for the file; add some log and fix some typos.