preallocation does not work and not saved over restart

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
tman
Posts: 15
Joined: Sat Feb 20, 2010 1:18 pm

preallocation does not work and not saved over restart

Post by tman »

I'm using Transmission daemon 2.11 on Fonera2n device (linux embedded OpenWrt / BusyBox). The default setting in settings.json for preallocation is: "preallocation": 0, and I want to change that to "preallocation": 2, the reason is that downloads fragment heavily the drive.
Tried to edit settings.json using 'vi', then start downloading a torrent, it's not working.
Tried to edit settings.json, then shutdown daemon and start again, in this case settings.json changes back to "preallocation": 0,

Any ideea how to change "preallocation": 2, and to keep it like that after restart ?

Thanks!
tman
Rolcol
Posts: 337
Joined: Sun Aug 10, 2008 8:00 am

Re: preallocation does not work and not saved over restart

Post by Rolcol »

Either x190's solution, or edit the file, then send a SIGHUP signal to the daemon to reload its settings. The daemon writes out its settings on exit. That is why everything is getting reset. If you're using a filesystem that doesn't support fast preallocation, it's going to take a noticeable amount of time to zero out the size of the file.
lakrigg
Posts: 17
Joined: Fri Dec 31, 2010 7:32 am

Re: preallocation does not work and not saved over restart

Post by lakrigg »

make sure ure editing the correct file,
/root/.config/transmission-daemon/settings.json
as their sometimes will be a /.config/transmission/settings.json

Before editing do killall tranmission-daemon
just to be sure :P
ijuxda

Re: preallocation does not work and not saved over restart

Post by ijuxda »

lakrigg wrote:/root/.config/transmission-daemon/settings.json
Transmission, as with other internet server applications, should never be run as root.
Last edited by ijuxda on Mon Feb 14, 2011 3:57 am, edited 1 time in total.
lakrigg
Posts: 17
Joined: Fri Dec 31, 2010 7:32 am

Re: preallocation does not work and not saved over restart

Post by lakrigg »

Default user on the NAS was root :)

I'm not worries, they say don't IRC with irssi as root either, but have for 10 years haha.
Post Reply