Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unixfs: fix dagTruncate to preserve node type #5216

Merged
merged 3 commits into from
Jul 18, 2018
Merged

unixfs: fix dagTruncate to preserve node type #5216

merged 3 commits into from
Jul 18, 2018

Commits on Jul 18, 2018

  1. unixfs: fix dagTruncate to preserve node type

    Extract the original `FSNode` passed inside the `ipld.Node` argument and modify
    its `Blocksizes` (removing all of them and re-adding the ones that were not
    truncated). In contrast, the replaced code was creating a new `FSNode` that was
    not preserving some of the features of the original one.
    
    Change `TRUNC_HASH` values in `sharness` that were created with the bug to the
    correct values.
    
    License: MIT
    Signed-off-by: Lucas Molas <schomatis@gmail.com>
    schomatis committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    65a18ed View commit details
    Browse the repository at this point in the history
  2. mfs: add test case for MFS repeated truncation failure

    License: MIT
    Signed-off-by: Lucas Molas <schomatis@gmail.com>
    schomatis committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    508af1e View commit details
    Browse the repository at this point in the history
  3. unixfs/mod: add test to Truncate to the same size

    License: MIT
    Signed-off-by: Lucas Molas <schomatis@gmail.com>
    schomatis committed Jul 18, 2018
    Configuration menu
    Copy the full SHA
    70d0f13 View commit details
    Browse the repository at this point in the history