Modifying a .py file in FreeNAS?

Status
Not open for further replies.

AlexV

Cadet
Joined
Dec 22, 2017
Messages
4
Hello, I'm pretty new to FreeNAS, so I wanted to check with the community about the recommended way to tweak behaviour not exposed in the UI.

For background, I noticed that Cloud Sync to B2 was using up a whole lot of "Class C transactions", which cost money, and investigating that issue led me to https://github.com/ncw/rclone/issues/1277

It seems that (for my case) the best solution is to add a --fast-list parameter to rclone. Following the diff for where the B2 Cloud Sync feature was added takes me to the backup.py file, which I found under /usr/local/lib/python3.6/site-packages/middlewared/plugins

So, do I face any unexpected problems if I just edit that file to add the additional parameter to the args array for the b2 rclone? Or is that an acceptable approach to resolving the issue?
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
That should work, just make sure to reboot or restart middlewared.

No need to say change will be lost in an upgrade.
 

AlexV

Cadet
Joined
Dec 22, 2017
Messages
4
Thanks, I'll make a note to re-apply the change (if necessary) after the next upgrade.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Is there a bug report for this yet?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Status
Not open for further replies.
Top