Skip to content

Commit 7c31613

Browse files
committed
Update on "Add segment_data_size to extended header"
Store the segment data size. Allows us to calculate the total PTE file size and error out if the full PTE file was not downloaded. Next diff: check file size at runtime. Differential Revision: [D81829663](https://our.internmc.facebook.com/intern/diff/D81829663/) [ghstack-poisoned]
2 parents f37ebb9 + 2a9b8d4 commit 7c31613

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/source/pte-file-format.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ Optional extended header:
7272
| [24..31] uint64_t offset (from byte offset zero above) to the start of the
7373
| first segment, or zero if there are no segments.
7474
| [32..39] uint64_t size of the segment data, ie. the size from the segment_base_offset
75-
| to the end of the segments.
75+
| to the end of the segments. Note, the last segment should not have any
76+
| trailing padding.
7677
| [40..?] Any zero-padding necessary to preserve the alignment of the data
7778
| that follows.
7879
End of optional extended header.

0 commit comments

Comments
 (0)