src/t_dir_offset2: Add an option to limit of buffer size