- Minor
If "Sharename" uses the cache setting "Yes" and I try to move a file from the array to the cache as follows:
echo "/mnt/disk8/Sharename/foo/bar.txt" | /usr/local/sbin/move -d 1
It returns a "no space left" error altough there is enough space (does not happen if "Prefer" has been set):
Dec 31 16:17:25 Tower move: move: file /mnt/disk8/Sharename/foo/bar.txt Dec 31 16:17:25 Tower move: move: create_parent: /mnt/disk8/Sharename error: No space left on device
Expected result:
Tower move: move: create_parent: /mnt/disk8/Sharename error: Cache usage is not set to Only/Prefer
I'm note sure why this internal check of /usr/local/sbin/move even exists as the mover-script checked it already:
if grep -qs 'shareUseCache="prefer"' "/boot/config/shares/${SHARE}.cfg" ; then
Maybe it should be removed from /usr/local/sbin/move?
Alternative Feature Request:
Maybe its possible to add a "force" flag to /usr/local/sbin/move, so the current cache setting is ignored.
Edited by mgutt