Sabnzbd docker; move is actually a "copy & delete"?

MisterE2002

Patron
Joined
Sep 5, 2015
Messages
211
I notice the "move" of "incomplete" to "complete" is somewhat slow. I would expect it to happen directly. I can reproduce this.

Created a 40GB folder. On the scale host. If moves directly. Note i am in the "sabnzbd" dataset, "complete" and "incomplete" are normal folders.
# mv incomplete/copytest complete/
# mv complete/copytest incomplete

Those folders are mapped to the docker container, so.
/mnt/tank/sabnzbd/incomplete -> /incomplete
/mnt/tank/sabnzbd/complete -> /complete


if i enter the docker container and running this it takes about a minute. I deliberately created folders to avoid this kind of overhead.
The workaround would be to pass only one folder with all subfolders within. But i choose this setup currently.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
The only way it's going to work how you seem to expect is if complete and incomplete are subdirectories of the same mount.
 

MisterE2002

Patron
Joined
Sep 5, 2015
Messages
211
Yeah, have to fix a lot of stuff to make this happen. Fix paths in the apps and my local documentation.

Maybe we should note this also somewhere in the App migration. I am surely not the only one who creates multiple mappings and this can cause a lot of unneeded IO operations.
 
Top