Making some bits of the patch format public

pmeunier
Jul 7, 2021, 12:14 PM
SL6EMXAMTJCNCRGPTJWCNBC723ELYHDLVMJ2YNSYYYHDU4SM72UQC

Dependencies

  • [2] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [3] PSKXR4QE Do not load the entire change in memory in log
  • [4] CCLLB7OI Upgrading to Sanakirja 0.15 + version bump
  • [5] A3RM526Y Integrating identity malleability
  • [6] SMMBFECL Converting to the new patch format "online"

Change contents

  • replacement in libpijul/src/change.rs at line 1184
    [2.866866][2.866866:867081]()
    version: u64,
    hashed_len: u64, // length of the hashed contents
    unhashed_off: u64,
    unhashed_len: u64, // length of the unhashed contents
    contents_off: u64,
    contents_len: u64,
    total: u64,
    [2.866866]
    [2.867081]
    pub version: u64,
    pub hashed_len: u64, // length of the hashed contents
    pub unhashed_off: u64,
    pub unhashed_len: u64, // length of the unhashed contents
    pub contents_off: u64,
    pub contents_len: u64,
    pub total: u64,
  • replacement in libpijul/src/change.rs at line 1195
    [2.867138][2.867138:867172]()
    const OFFSETS_SIZE: u64 = 56;
    [2.867138]
    [2.867172]
    pub const OFFSETS_SIZE: u64 = 56;