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

[Suggestion] Can we enable pieces to be downloaded in chunks ? #22

Open
0xrushi opened this issue Aug 27, 2019 · 1 comment
Open

[Suggestion] Can we enable pieces to be downloaded in chunks ? #22

0xrushi opened this issue Aug 27, 2019 · 1 comment

Comments

@0xrushi
Copy link

0xrushi commented Aug 27, 2019

https://www.reddit.com/r/torrents/comments/cw1xuv/can_i_download_torrent_chunks_at_different/

I need something to do this, or can you please suggest an alternative way ?

@pcordes
Copy link

pcordes commented Sep 18, 2019

You can do it manually using the Pieces plugin to control which pieces are downloaded.

Use a filesystem that supports sparse files on your SD card so you can download a sparse file with the first, second, third, etc. chunks of about 64G.

Then dd if=src of=dst bs=1M count=60000 conv=notrunc with appropriate seek and skip options to copy a contiguous block of 60000 * 1MiB into the file where you're going to accumulate the whole thing. e.g. seek=60000 skip=60000 to do the 2nd chunk of 60000 MiB (You can use filefrag to see which range of the file is already written. Or xfs_bmap if its on XFS)

Then use fallocate to zero that region of the file on your SD card and "force-recheck". (Or just delete the file and force-recheck). Change your piece selection to a different range of do-not-download vs. normal.

repeat until you're done.

"Piece" priorities don't persist across restarts of Deluge so you might want to keep notes on how many pieces you decided to use for your block.

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

No branches or pull requests

2 participants