Skip to content

ipfs dag export --ignore-missing-blocks #10826

@lidel

Description

@lidel

Checklist

  • My issue is specific & actionable.
  • I am not suggesting a protocol enhancement.
  • I have searched on the issue tracker for my issue.

Description

This is a feature request extracted from ipfs/ipfs-webui#2380 (comment)

WebUI users would like to have an ability to export/import MFS as a potentially partial CAR (without prefetching non-local blocks)

General idea

  • Kubo: add --ignore-missing-blocks to both dag import|export
    • this would allow for ipfs dag export --ignore-missing-blocks --offline $(ipfs files stat / | head -1) that would effectively do the same "local-only" DAG walk as Reprovider.Strategy=mfs and output blocks to a CAR
    • ipfs dag import would error if both --pin-roots and --ignore-missing-blocks are passed
  • Webui (tracked in Support import of partial CARs without prefetching the full DAG ipfs-webui#2380, here only for context)
    • Files → Import → From CAR in WebUI would have a checkboxes for controlling --pin-roots and --skip-missing-blocks before proceeding with import.
    • Files → Export CAR in WebUI would show modal which would allow user to do export via ipfs.dag.export and uncheck --ignore-missing-blocks --offline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: Good to have, but can wait until someone steps upeffort/daysEstimated to take multiple days, but less than a weekexp/intermediatePrior experience is likely helpfulhelp wantedSeeking public contribution on this issuekind/enhancementA net-new feature or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions