[NTFS] Full Allocation, Sparse Files and 20.000 Fragments

Specific support for Deluge on Microsoft Windows OS
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: [NTFS] Full Allocation, Sparse Files and 20.000 Fragment

Post by Cas »

The workaround for Windows is to download from git the torrentmanager.py file for the release you are using e.g. for 1.3.7: https://github.com/deluge-torrent/delug ... manager.py

Edit the value as I mentioned in earlier post and copy into "Program Files/Deluge/deluge1.3.7.egg/core/" (can't remember exact path)

It is important to ensure your text editor does not change line endings or indent type.
robnitro
Member
Member
Posts: 19
Joined: Fri Sep 19, 2014 12:19 pm

Re: [NTFS] Full Allocation, Sparse Files and 20.000 Fragment

Post by robnitro »

Thank you! I saw .pyc file in core for that but wasn't sure if they were interchangeable!

To all the windows guys:
Use notepad++ as it works well for me when I was changing scripting in openwrt qos scripts.

Edit: Just saw you are from Scotland!
The vote was rigged... I learned so much from http://www.sott.net about it.
Locutus266
New User
New User
Posts: 4
Joined: Fri Sep 09, 2011 10:48 am

Re: [NTFS] Full Allocation, Sparse Files and 20.000 Fragment

Post by Locutus266 »

Keep in mid folks: Modifying torrentmanager.py setting "storage_mode=0" caused regular data corruption on my system meaing torrents were marked as finished but data was corrupt. Force re-checking helped, but I would NOT recommend it.
robnitro
Member
Member
Posts: 19
Joined: Fri Sep 19, 2014 12:19 pm

Re: [NTFS] Full Allocation, Sparse Files and 20.000 Fragment

Post by robnitro »

Odd, I have had no issues using this... on 1.3.8 1.3.9 1.3.10 win 7 x64
set to zero.
"
# Set the right storage_mode
if options["compact_allocation"]:
storage_mode = lt.storage_mode_t(2)
else:
storage_mode = lt.storage_mode_t(0)
"

by storage_mode = 0 do you mean what I posted here or did you literally put
"storage_mode = 0" omitting the lt.storage_mode_t(0)?
Locutus266
New User
New User
Posts: 4
Joined: Fri Sep 09, 2011 10:48 am

Re: [NTFS] Full Allocation, Sparse Files and 20.000 Fragment

Post by Locutus266 »

Hey,

Good thing that you point out the correct syntax.

I think removed the if-then-else thing and just put storage_mode = lt.storage_mode_t(0) (that is what I meant in the post above).

But I don't remember as it is some time ago now and I don't use Deluge anymore.

Regards
Chris
Post Reply