pread to get size and offset