Support for Qnap without ctime
This commit is contained in:
parent
45304c608c
commit
81437b5824
|
@ -30,7 +30,7 @@ osync uses pidlocks to prevent multiple concurrent sync processes on/to the same
|
|||
You may launch concurrent sync processes on the same system but as long as the replicas to synchronize are different.
|
||||
Multiple osync tasks may be launched sequentially by osync osync-batch tool.
|
||||
|
||||
Currently, it has been tested on CentOS 5.x, 6.x, 7.x, Fedora 22-25, Debian 6-8, Linux Mint 14-18, Ubuntu 12.04-12.10, FreeBSD 8.3-11, Mac OS X and pfSense 2.3.x.
|
||||
Currently, it has been tested on CentOS 5.x, 6.x, 7.x, Fedora 22-25, Debian 6-8, Linux Mint 14-18, Ubuntu 12.04-12.10, FreeBSD 8.3-11, Mac OS X, QTS 4.5.1(x86) and pfSense 2.3.x.
|
||||
Microsoft Windows is supported via MSYS or Cygwin and now via Windows 10 bash.
|
||||
Android support works via Termux.
|
||||
Some users also have successfully used osync on Gentoo and created an openRC init scriptt for it.
|
||||
|
|
|
@ -483,6 +483,9 @@ function GetLocalOS {
|
|||
*"Android"*)
|
||||
LOCAL_OS="Android"
|
||||
;;
|
||||
*"qnap"*)
|
||||
LOCAL_OS="Qnap"
|
||||
;;
|
||||
*"Linux"*)
|
||||
LOCAL_OS="Linux"
|
||||
;;
|
||||
|
@ -1630,6 +1633,9 @@ function GetLocalOS {
|
|||
*"Android"*)
|
||||
LOCAL_OS="Android"
|
||||
;;
|
||||
*"qnap"*)
|
||||
LOCAL_OS="Qnap"
|
||||
;;
|
||||
*"Linux"*)
|
||||
LOCAL_OS="Linux"
|
||||
;;
|
||||
|
@ -1802,6 +1808,9 @@ ENDSSH
|
|||
*"Android"*)
|
||||
REMOTE_OS="Android"
|
||||
;;
|
||||
*"qnap"*)
|
||||
REMOTE_OS="Qnap"
|
||||
;;
|
||||
*"Linux"*)
|
||||
REMOTE_OS="Linux"
|
||||
;;
|
||||
|
|
|
@ -1255,6 +1255,9 @@ function GetLocalOS {
|
|||
*"Android"*)
|
||||
LOCAL_OS="Android"
|
||||
;;
|
||||
*"qnap"*)
|
||||
LOCAL_OS="Qnap"
|
||||
;;
|
||||
*"Linux"*)
|
||||
LOCAL_OS="Linux"
|
||||
;;
|
||||
|
@ -1427,6 +1430,9 @@ ENDSSH
|
|||
*"Android"*)
|
||||
REMOTE_OS="Android"
|
||||
;;
|
||||
*"qnap"*)
|
||||
REMOTE_OS="Qnap"
|
||||
;;
|
||||
*"Linux"*)
|
||||
REMOTE_OS="Linux"
|
||||
;;
|
||||
|
|
10
osync.sh
10
osync.sh
|
@ -1395,6 +1395,9 @@ function GetLocalOS {
|
|||
*"Android"*)
|
||||
LOCAL_OS="Android"
|
||||
;;
|
||||
*"qnap"*)
|
||||
LOCAL_OS="Qnap"
|
||||
;;
|
||||
*"Linux"*)
|
||||
LOCAL_OS="Linux"
|
||||
;;
|
||||
|
@ -1565,6 +1568,9 @@ ENDSSH
|
|||
*"Android"*)
|
||||
REMOTE_OS="Android"
|
||||
;;
|
||||
*"qnap"*)
|
||||
REMOTE_OS="Qnap"
|
||||
;;
|
||||
*"Linux"*)
|
||||
REMOTE_OS="Linux"
|
||||
;;
|
||||
|
@ -5086,7 +5092,7 @@ function _SoftDeleteLocal {
|
|||
|
||||
local retval
|
||||
|
||||
if [ "$LOCAL_OS" == "Busybox" ] || [ "$LOCAL_OS" == "Android" ]; then
|
||||
if [ "$LOCAL_OS" == "Busybox" ] || [ "$LOCAL_OS" == "Android" ] || [ "$LOCAL_OS" == "Qnap" ]; then
|
||||
Logger "Skipping $deletionType deletion on $replicaType. Busybox find -ctime not supported." "NOTICE"
|
||||
return 0
|
||||
fi
|
||||
|
@ -5138,7 +5144,7 @@ function _SoftDeleteRemote {
|
|||
|
||||
local retval
|
||||
|
||||
if [ "$REMOTE_OS" == "BusyBox" ] || [ "$REMOTE_OS" == "Android" ]; then
|
||||
if [ "$REMOTE_OS" == "BusyBox" ] || [ "$REMOTE_OS" == "Android" ] || [ "$REMOTE_OS" == "Qnap" ]; then
|
||||
Logger "Skipping $deletionType deletion on $replicaType. Busybox find -ctime not supported." "NOTICE"
|
||||
return 0
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue