Returning the correct inode in libpijul::fs::add_file (i.e. the newly inserted inode)

pmeunier
Sep 21, 2021, 7:13 PM
EHV65VU5Z7OH7CIMQU3TEA3AZNA6P3HVNMER7CP5ODYUSXPVTVMAC

Dependencies

  • [2] YGPEHOTE libpijul::fs::add_{file,dir} now return the created Inode
  • [3] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [4] OJZWJUF2 MUCH faster `pijul add -r`
  • [5] 2RXOCWUW Making libpijul deterministic (and getting rid of `rand`)

Change contents

  • replacement in "libpijul/src/fs.rs" at line 258
    [3.745375][3.5640:5717]()
    make_new_child(txn, current_inode, file_name, is_dir, inode, salt)?;
    [3.745375]
    [2.1008]
    current_inode = make_new_child(txn, current_inode, file_name, is_dir, inode, salt)?;