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

Make the "Preallocate" option behave in a sane manner #1072

Closed
birdie-github opened this issue Nov 6, 2013 · 7 comments
Closed

Make the "Preallocate" option behave in a sane manner #1072

birdie-github opened this issue Nov 6, 2013 · 7 comments

Comments

@birdie-github
Copy link
Contributor

birdie-github commented Nov 6, 2013

When this option is enabled, qBittorrent preallocates files for all torrents regardless their state.

Please, make qBittorrent preallocate space only for files which have just been started downloading, e.g. we have a torrent with many files, a torrent client doesn't receive the chunks pertaining to all the files simultaneously - it happens gradually over time.

So, only we have received a chunk for a file A, then preallocate file A, otherwise this file should not be created at all.

@sledgehammer999
Copy link
Member

Please clarify. Do you mean that qbt should preallocate torrents that are added after this and not the already downloading ones? Or are you telling me that if a torrent has downloaded one file in sparse mode, you change to preallocate it should only preallocate the rest of the files of that torrent?

@birdie-github
Copy link
Contributor Author

OK, here's what we have now:

I have this option disabled and I have 50 paused (never started) torrents (not a single file downloaded). Whenever I enable this option qbt pre-allocates all the files belonging to these torrents even though I haven't even started them.

What I want to see is that qbt only pre-allocates files which 1) belong to running torrents and 2) only if a certain file has received at least one chunk from the Internet.

2 - is not strictly necessary but desired.

@ghost ghost assigned cdumez Nov 10, 2013
@birdie-github
Copy link
Contributor Author

OK, here's what I've found out.

storage_mode is set globally on torrent initiation and that's not right for the reasons mentioned above. This is a feature request and it should be filed at the libtorrent bug tracker.

@alfrix
Copy link
Contributor

alfrix commented Feb 9, 2014

duplicate of #147

@mzso
Copy link

mzso commented Mar 31, 2015

By the way, can sparse file allocation be disabled?

@sledgehammer999
Copy link
Member

By the way, can sparse file allocation be disabled?

Enable preallocation in the options.

@ghost
Copy link

ghost commented Aug 6, 2022

This is the current behaviour in latest versions.

@ghost ghost closed this as completed Aug 6, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants