tun: update file current position