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
preallocation does not work and not saved over restart
Re: preallocation does not work and not saved over restart
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.
Re: preallocation does not work and not saved over restart
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
/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

Re: preallocation does not work and not saved over restart
Transmission, as with other internet server applications, should never be run as root.lakrigg wrote:/root/.config/transmission-daemon/settings.json
Last edited by ijuxda on Mon Feb 14, 2011 3:57 am, edited 1 time in total.
Re: preallocation does not work and not saved over restart
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.

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