Repository navigation
Closed
Labels
P2Medium: Good to have, but can wait until someone steps upMedium: Good to have, but can wait until someone steps upeffort/daysEstimated to take multiple days, but less than a weekEstimated to take multiple days, but less than a weekexp/intermediatePrior experience is likely helpfulPrior experience is likely helpfulkind/enhancementA net-new feature or improvement to an existing featureA net-new feature or improvement to an existing feature
Description
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-blocksto bothdag 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 asReprovider.Strategy=mfsand output blocks to a CAR ipfs dag importwould error if both--pin-rootsand--ignore-missing-blocksare passed
- this would allow for
- Webui (tracked in Support import of partial CARs without prefetching the full DAG ipfs-webui#2380, here only for context)
Files → Import → From CARin WebUI would have a checkboxes for controlling--pin-rootsand--skip-missing-blocksbefore proceeding with import.Files → Export CARin WebUI would show modal which would allow user to do export viaipfs.dag.exportand uncheck--ignore-missing-blocks--offline.
Reacted by chrische
Reacted by chrische
Metadata
Metadata
Assignees
Labels
P2Medium: Good to have, but can wait until someone steps upMedium: Good to have, but can wait until someone steps upeffort/daysEstimated to take multiple days, but less than a weekEstimated to take multiple days, but less than a weekexp/intermediatePrior experience is likely helpfulPrior experience is likely helpfulkind/enhancementA net-new feature or improvement to an existing featureA net-new feature or improvement to an existing feature
Activity
ChayanDass commentedon Feb 28, 2026
hi @lidel , I'd like to work on that
lidel commentedon Feb 28, 2026
@ChayanDass sure, take a stab at it.
fyi we have some prior art in
ipfs files stat --helpwhere--with-localflag will identify part of DAG that are in local repository.Instead of
--ignore-missing-blocksa--local-onlymay be a better name for this.ChayanDass commentedon Mar 6, 2026
I am getting an issue , like
ipld.errnotfoundnot working as expected, while I tried with offline flag , it should give the error as currently offline , but still it end up with walk failed , I have tried with a broken dag exportChayanDass commentedon Mar 6, 2026
Hi @lidel, I identified the issue. It seems
go-caris wrapping the error using%sinstead of%w, which preventserrors.Is()from correctly detectingipld.ErrNotFound, leading to the unexpected behavior in thatifblock.I’ve opened a PR to address this here:
ipld/go-car#658
Could you please take a look when you have time?