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

ipfs get --nocopy #6687

Closed
ivan386 opened this issue Sep 29, 2019 · 5 comments
Closed

ipfs get --nocopy #6687

ivan386 opened this issue Sep 29, 2019 · 5 comments
Labels
kind/feature A new feature

Comments

@ivan386
Copy link
Contributor

ivan386 commented Sep 29, 2019

ipfs get --nocopy

This will replace:

ipfs get -o=file_name cid
ipfs repo gc
ipfs add --nocopy file_name

With that option file will be fetched and it raw leaves will be sored in filestore as links to parts of file that will be writen by get.

This commad must use split by block sizes to produce same CID as in original link.

@ivan386 ivan386 added the kind/feature A new feature label Sep 29, 2019
@foxcpp
Copy link

foxcpp commented Jun 22, 2020

Wouldn't ipfs pin add -r basically do it? Getting file DAG into local filestore as is without writing out a copy into file system?

@jl452
Copy link

jl452 commented Jun 22, 2020

@foxcpp how i can use this file?

ipfs pin add ... - Pin objects to local storage.
Stores an IPFS object(s) from a given path locally to disk.

where is file name for use it not in ipfs?

and second: "ipfs add" can use --chunker and hash will be not same, when i download this file!

@ivan386
Copy link
Contributor Author

ivan386 commented Jun 22, 2020

@foxcpp ipfs get --nocopy must write file in to file system without copy of content in blockstore and add link to it in filestore.

@Artoria2e5
Copy link

Artoria2e5 commented Jul 22, 2020

For a get from filestore in the case of files sharing identical blocks, FICLONERANGE (Linux) or FSCTL_DUPLICATE_EXTENTS_TO_FILE (Windows) should be used to reduce the amount of disk traffic. This does sound like a separate request though.

@aschmahmann
Copy link
Contributor

This looks like a duplicate of #3981, if it's not feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A new feature
Projects
None yet
Development

No branches or pull requests

5 participants