|
clsync
|

Go to the source code of this file.
Macros | |
| #define | BUFSIZ (1<<16) |
| #define | MAXRULES (1<<8) |
| #define | MAXARGUMENTS (1<<8) |
| #define | MAXNODES ((1<<8)-1) |
| #define | MAXSIGNALNUM (1<<9) |
| #define | USER_LEN (1<<8) |
| #define | GROUP_LEN USER_LEN |
| #define | SOCKET_BACKLOG 2 |
| #define | SOCKET_MAX_CLSYNC 8 |
| #define | SOCKET_MAX_LIBCLSYNC (1<<16) |
| #define | MAXCHILDREN (1<<8) |
| #define | MAXMOUNTPOINTS (1<<8) |
| #define | MAXPERMITTEDHOOKFILES (1<<8) |
| #define | DEFAULT_RULES_PERM RA_ALL |
| #define | DEFAULT_COLLECTDELAY 30 |
| #define | DEFAULT_SYNCDELAY (DEFAULT_COLLECTDELAY) |
| #define | DEFAULT_BFILETHRESHOLD (128 * 1024 * 1024) |
| #define | DEFAULT_BFILECOLLECTDELAY 1800 |
| #define | DEFAULT_LABEL "nolabel" |
| #define | DEFAULT_RSYNCINCLUDELINESLIMIT 20000 |
| #define | DEFAULT_SYNCTIMEOUT (3600 * 24) |
| #define | DEFAULT_CLUSTERTIMEOUT 1000 |
| #define | DEFAULT_CLUSTERIPADDR "227.108.115.121" |
| #define | DEFAULT_CLUSTERIPPORT 40079 |
| #define | DEFAULT_CLUSTERHDLMIN 1 |
| #define | DEFAULT_CLUSTERHDLMAX 16 |
| #define | DEFAULT_CLUSTERSDLMAX 32 |
| #define | DEFAULT_CONFIG_BLOCK "default" |
| #define | DEFAULT_RETRIES 1 |
| #define | DEFAULT_VERBOSE 3 |
| #define | DEFAULT_DUMPDIR "/tmp/clsync-dump-%label%" |
| #define | DEFAULT_DETACH_IPC 1 |
| #define | FANOTIFY_FLAGS (FAN_CLOEXEC|FAN_UNLIMITED_QUEUE|FAN_UNLIMITED_MARKS) |
| #define | FANOTIFY_EVFLAGS (O_LARGEFILE|O_RDONLY|O_CLOEXEC) |
| #define | FANOTIFY_MARKMASK (FAN_OPEN|FAN_MODIFY|FAN_CLOSE|FAN_ONDIR|FAN_EVENT_ON_CHILD) |
| #define | INOTIFY_FLAGS (IN_CLOEXEC) |
| #define | INOTIFY_MARKMASK (IN_ATTRIB|IN_CLOSE_WRITE|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_MOVED_FROM|IN_MOVED_TO|IN_MODIFY|IN_DONT_FOLLOW) |
| #define | COUNTER_LIMIT (1<<10) |
| #define | SLEEP_SECONDS 1 |
| #define | KILL_TIMEOUT 60 |
| #define | ALLOC_PORTION (1<<10) /* 1 KiX */ |
| #define | CLUSTER_WINDOW_BUFSIZE_PORTION (1<<20) /* 1 MiB */ |
| #define | CLUSTER_PACKET_MAXSIZE (1<<20) /* 1 MiB */ |
| #define | CLUSTER_WINDOW_PCKTLIMIT (1<<20) /* 1 Ki packets */ |
| #define | CONFIG_PATHS { ".clsync.conf", "/etc/clsync/clsync.conf", "/etc/clsync.conf", "/usr/local/etc/clsync/clsync.conf", "/usr/local/etc/clsync.conf", NULL } /* "~/.clsync.conf", "/etc/clsync/clsync.conf" ... */ |
| #define | API_PREFIX "clsyncapi_" |
| #define | DUMP_DIRMODE 0750 |
| #define | DUMP_FILEMODE 0644 |
| #define | DEFAULT_CP_PATH "cp" |
| #define | DEFAULT_RSYNC_PATH "rsync" |
| #define | KQUEUE_EVENTLISTSIZE 256 |
| #define | AUDITPIPE_PATH "/dev/auditpipe" |
| #define | AUDIT_CONTROL_PATH "/etc/security/audit_control" |
| #define | AUDIT_CONTROL_INITSCRIPT "/etc/rc.d/auditd" |
| #define | AUDIT_CONTROL_HEADER "#clsync\n" |
| #define | AUDIT_CONTROL_CONTENT "\n\dir:/var/audit\n\flags:fc,fd,fw,fm,cl\n\minfree:0\n\naflags:fc,fd,fw,fm,cl\n\policy:cnt\n\filesz:1M\n\expire-after:20M\n\" |
| #define | DTRACE_PATH "dtrace" |
| #define | PIVOT_AUTO_DIR "/dev/shm/clsync-rootfs" |
| #define | TMPDIR_PATH "/tmp" |
| #define | TMPDIR_TEMPLATE "/clsync-XXXXXX" |
| #define | SYSLOG_BUFSIZ (1<<16) |
| #define | SYSLOG_FLAGS (LOG_PID|LOG_CONS) |
| #define | SYSLOG_FACILITY LOG_DAEMON |
| #define | CLSYNCSOCK_WINDOW (1<<8) |
| #define | DEFAULT_SYNCHANDLER_ARGS_SIMPLE "sync %label% %EVENT-MASK% %INCLUDE-LIST%" |
| #define | DEFAULT_SYNCHANDLER_ARGS_DIRECT "%INCLUDE-LIST% %destination-dir%/" |
| #define | DEFAULT_SYNCHANDLER_ARGS_SHELL_NR "synclist %label% %INCLUDE-LIST-PATH%" |
| #define | DEFAULT_SYNCHANDLER_ARGS_SHELL_R "initialsync %label% %INCLUDE-LIST%" |
| #define | DEFAULT_SYNCHANDLER_ARGS_RDIRECT_E "-aH --delete --exclude-from %EXCLUDE-LIST-PATH% --include-from %INCLUDE-LIST-PATH% --exclude=* %watch-dir%/ %destination-dir%/" |
| #define | DEFAULT_SYNCHANDLER_ARGS_RDIRECT_I "-aH --delete --include-from %INCLUDE-LIST-PATH% --exclude=* %watch-dir%/ %destination-dir%/" |
| #define | DEFAULT_SYNCHANDLER_ARGS_RSHELL_E "rsynclist %label% %INCLUDE-LIST-PATH% %EXCLUDE-LIST-PATH%" |
| #define | DEFAULT_SYNCHANDLER_ARGS_RSHELL_I "rsynclist %label% %INCLUDE-LIST-PATH%" |
| #define | RSYNC_ARGS_E |
| #define | RSYNC_ARGS_I |
| #define | DEFAULT_PRESERVE_CAPABILITIES ( CAP_TO_MASK(CAP_DAC_READ_SEARCH) | CAP_TO_MASK(CAP_SETUID) | CAP_TO_MASK(CAP_SETGID) | CAP_TO_MASK(CAP_KILL) ) |
| #define | DEFAULT_USER "nobody" |
| #define | DEFAULT_GROUP "nogroup" |
| #define | DEFAULT_UID 65534 |
| #define | DEFAULT_GID 65534 |
| #define | DEFAULT_CAPS_INHERIT CI_EMPTY |
| #define | DEFAULT_PIVOT_MODE (PW_OFF) |
| #define | DEVZERO "/dev/zero" |
| #define | HL_LOCK_TRIES_INITIAL (1<<13) |
| #define | HL_LOCK_TRIES_AUTO |
| #define | HL_LOCK_AUTO_INTERVAL 7 /* 128 */ |
| #define | HL_LOCK_AUTO_K 1.1 |
| #define | HL_LOCK_AUTO_THREADHOLD 0.2 |
| #define | HL_LOCK_AUTO_DECELERATION 1.1 |
| #define | HL_LOCK_AUTO_K_FINISH 0.001 |
| #define | HL_LOCK_AUTO_LIMIT_HIGH (1<<20) |
| #define | HL_LOCK_NONPRIV_TRIES (HL_LOCK_AUTO_LIMIT_HIGH << 5) |
| #define | CG_DEV_CONSOLE "c 5:1" |
| #define | CG_DEV_ZERO "c 1:5" |
| #define | CG_DEV_RANDOM "c 1:8" |
| #define | CG_DEV_URANDOM "c 1:9" |
| #define | CG_DEV_NULL "c 1:3" |
| #define | CG_ALLOWED_DEVICES |
| #define | DEFAULT_CG_GROUPNAME "clsync/%PID%" |
| #define | OUTPUT_LOCK_TIMEOUT (100*1000*1000) |
| #define | WAITPID_TIMED_GRANULARITY (30*1000*1000) |
| #define | BSM_QUEUE_LENGTH_MAX (1024*1024) |
| #define | GIO_QUEUE_LENGTH_MAX BSM_QUEUE_LENGTH_MAX |
| #define ALLOC_PORTION (1<<10) /* 1 KiX */ |
Definition at line 117 of file configuration.h.
| #define API_PREFIX "clsyncapi_" |
Definition at line 124 of file configuration.h.
| #define AUDIT_CONTROL_CONTENT "\n\dir:/var/audit\n\flags:fc,fd,fw,fm,cl\n\minfree:0\n\naflags:fc,fd,fw,fm,cl\n\policy:cnt\n\filesz:1M\n\expire-after:20M\n\" |
Definition at line 139 of file configuration.h.
| #define AUDIT_CONTROL_HEADER "#clsync\n" |
Definition at line 138 of file configuration.h.
| #define AUDIT_CONTROL_INITSCRIPT "/etc/rc.d/auditd" |
Definition at line 137 of file configuration.h.
| #define AUDIT_CONTROL_PATH "/etc/security/audit_control" |
Definition at line 136 of file configuration.h.
| #define AUDITPIPE_PATH "/dev/auditpipe" |
Definition at line 135 of file configuration.h.
| #define BSM_QUEUE_LENGTH_MAX (1024*1024) |
Definition at line 244 of file configuration.h.
| #define BUFSIZ (1<<16) |
Definition at line 6 of file configuration.h.
| #define CG_ALLOWED_DEVICES |
Definition at line 229 of file configuration.h.
| #define CG_DEV_CONSOLE "c 5:1" |
Definition at line 223 of file configuration.h.
| #define CG_DEV_NULL "c 1:3" |
Definition at line 227 of file configuration.h.
| #define CG_DEV_RANDOM "c 1:8" |
Definition at line 225 of file configuration.h.
| #define CG_DEV_URANDOM "c 1:9" |
Definition at line 226 of file configuration.h.
| #define CG_DEV_ZERO "c 1:5" |
Definition at line 224 of file configuration.h.
| #define CLSYNCSOCK_WINDOW (1<<8) |
Definition at line 159 of file configuration.h.
| #define CLUSTER_PACKET_MAXSIZE (1<<20) /* 1 MiB */ |
Definition at line 119 of file configuration.h.
| #define CLUSTER_WINDOW_BUFSIZE_PORTION (1<<20) /* 1 MiB */ |
Definition at line 118 of file configuration.h.
| #define CLUSTER_WINDOW_PCKTLIMIT (1<<20) /* 1 Ki packets */ |
Definition at line 120 of file configuration.h.
| #define CONFIG_PATHS { ".clsync.conf", "/etc/clsync/clsync.conf", "/etc/clsync.conf", "/usr/local/etc/clsync/clsync.conf", "/usr/local/etc/clsync.conf", NULL } /* "~/.clsync.conf", "/etc/clsync/clsync.conf" ... */ |
Definition at line 122 of file configuration.h.
| #define COUNTER_LIMIT (1<<10) |
Definition at line 111 of file configuration.h.
| #define DEFAULT_BFILECOLLECTDELAY 1800 |
Definition at line 86 of file configuration.h.
| #define DEFAULT_BFILETHRESHOLD (128 * 1024 * 1024) |
Definition at line 85 of file configuration.h.
| #define DEFAULT_CAPS_INHERIT CI_EMPTY |
Definition at line 194 of file configuration.h.
| #define DEFAULT_CG_GROUPNAME "clsync/%PID%" |
Definition at line 238 of file configuration.h.
| #define DEFAULT_CLUSTERHDLMAX 16 |
Definition at line 94 of file configuration.h.
| #define DEFAULT_CLUSTERHDLMIN 1 |
Definition at line 93 of file configuration.h.
| #define DEFAULT_CLUSTERIPADDR "227.108.115.121" |
Definition at line 91 of file configuration.h.
| #define DEFAULT_CLUSTERIPPORT 40079 |
Definition at line 92 of file configuration.h.
| #define DEFAULT_CLUSTERSDLMAX 32 |
Definition at line 95 of file configuration.h.
| #define DEFAULT_CLUSTERTIMEOUT 1000 |
Definition at line 90 of file configuration.h.
| #define DEFAULT_COLLECTDELAY 30 |
Definition at line 83 of file configuration.h.
| #define DEFAULT_CONFIG_BLOCK "default" |
Definition at line 96 of file configuration.h.
| #define DEFAULT_CP_PATH "cp" |
Definition at line 129 of file configuration.h.
| #define DEFAULT_DETACH_IPC 1 |
Definition at line 100 of file configuration.h.
| #define DEFAULT_DUMPDIR "/tmp/clsync-dump-%label%" |
Definition at line 99 of file configuration.h.
| #define DEFAULT_GID 65534 |
Definition at line 193 of file configuration.h.
| #define DEFAULT_GROUP "nogroup" |
Definition at line 191 of file configuration.h.
| #define DEFAULT_LABEL "nolabel" |
Definition at line 87 of file configuration.h.
| #define DEFAULT_PIVOT_MODE (PW_OFF) |
Definition at line 195 of file configuration.h.
| #define DEFAULT_PRESERVE_CAPABILITIES ( CAP_TO_MASK(CAP_DAC_READ_SEARCH) | CAP_TO_MASK(CAP_SETUID) | CAP_TO_MASK(CAP_SETGID) | CAP_TO_MASK(CAP_KILL) ) |
Definition at line 188 of file configuration.h.
| #define DEFAULT_RETRIES 1 |
Definition at line 97 of file configuration.h.
| #define DEFAULT_RSYNC_PATH "rsync" |
Definition at line 130 of file configuration.h.
| #define DEFAULT_RSYNCINCLUDELINESLIMIT 20000 |
Definition at line 88 of file configuration.h.
| #define DEFAULT_RULES_PERM RA_ALL |
Definition at line 82 of file configuration.h.
| #define DEFAULT_SYNCDELAY (DEFAULT_COLLECTDELAY) |
Definition at line 84 of file configuration.h.
| #define DEFAULT_SYNCHANDLER_ARGS_DIRECT "%INCLUDE-LIST% %destination-dir%/" |
Definition at line 162 of file configuration.h.
| #define DEFAULT_SYNCHANDLER_ARGS_RDIRECT_E "-aH --delete --exclude-from %EXCLUDE-LIST-PATH% --include-from %INCLUDE-LIST-PATH% --exclude=* %watch-dir%/ %destination-dir%/" |
Definition at line 165 of file configuration.h.
| #define DEFAULT_SYNCHANDLER_ARGS_RDIRECT_I "-aH --delete --include-from %INCLUDE-LIST-PATH% --exclude=* %watch-dir%/ %destination-dir%/" |
Definition at line 166 of file configuration.h.
| #define DEFAULT_SYNCHANDLER_ARGS_RSHELL_E "rsynclist %label% %INCLUDE-LIST-PATH% %EXCLUDE-LIST-PATH%" |
Definition at line 167 of file configuration.h.
| #define DEFAULT_SYNCHANDLER_ARGS_RSHELL_I "rsynclist %label% %INCLUDE-LIST-PATH%" |
Definition at line 168 of file configuration.h.
| #define DEFAULT_SYNCHANDLER_ARGS_SHELL_NR "synclist %label% %INCLUDE-LIST-PATH%" |
Definition at line 163 of file configuration.h.
| #define DEFAULT_SYNCHANDLER_ARGS_SHELL_R "initialsync %label% %INCLUDE-LIST%" |
Definition at line 164 of file configuration.h.
| #define DEFAULT_SYNCHANDLER_ARGS_SIMPLE "sync %label% %EVENT-MASK% %INCLUDE-LIST%" |
Definition at line 161 of file configuration.h.
| #define DEFAULT_SYNCTIMEOUT (3600 * 24) |
Definition at line 89 of file configuration.h.
| #define DEFAULT_UID 65534 |
Definition at line 192 of file configuration.h.
| #define DEFAULT_USER "nobody" |
Definition at line 190 of file configuration.h.
| #define DEFAULT_VERBOSE 3 |
Definition at line 98 of file configuration.h.
| #define DEVZERO "/dev/zero" |
Definition at line 197 of file configuration.h.
| #define DTRACE_PATH "dtrace" |
Definition at line 149 of file configuration.h.
| #define DUMP_DIRMODE 0750 |
Definition at line 126 of file configuration.h.
| #define DUMP_FILEMODE 0644 |
Definition at line 127 of file configuration.h.
| #define FANOTIFY_EVFLAGS (O_LARGEFILE|O_RDONLY|O_CLOEXEC) |
Definition at line 103 of file configuration.h.
| #define FANOTIFY_FLAGS (FAN_CLOEXEC|FAN_UNLIMITED_QUEUE|FAN_UNLIMITED_MARKS) |
Definition at line 102 of file configuration.h.
| #define FANOTIFY_MARKMASK (FAN_OPEN|FAN_MODIFY|FAN_CLOSE|FAN_ONDIR|FAN_EVENT_ON_CHILD) |
Definition at line 105 of file configuration.h.
| #define GIO_QUEUE_LENGTH_MAX BSM_QUEUE_LENGTH_MAX |
Definition at line 245 of file configuration.h.
| #define GROUP_LEN USER_LEN |
Definition at line 22 of file configuration.h.
| #define HL_LOCK_AUTO_DECELERATION 1.1 |
Definition at line 213 of file configuration.h.
| #define HL_LOCK_AUTO_INTERVAL 7 /* 128 */ |
Definition at line 207 of file configuration.h.
| #define HL_LOCK_AUTO_K 1.1 |
Definition at line 209 of file configuration.h.
| #define HL_LOCK_AUTO_K_FINISH 0.001 |
Definition at line 215 of file configuration.h.
| #define HL_LOCK_AUTO_LIMIT_HIGH (1<<20) |
Definition at line 217 of file configuration.h.
| #define HL_LOCK_AUTO_THREADHOLD 0.2 |
Definition at line 211 of file configuration.h.
| #define HL_LOCK_NONPRIV_TRIES (HL_LOCK_AUTO_LIMIT_HIGH << 5) |
Definition at line 219 of file configuration.h.
| #define HL_LOCK_TRIES_AUTO |
Definition at line 205 of file configuration.h.
| #define HL_LOCK_TRIES_INITIAL (1<<13) |
Definition at line 202 of file configuration.h.
| #define INOTIFY_FLAGS (IN_CLOEXEC) |
Definition at line 107 of file configuration.h.
| #define INOTIFY_MARKMASK (IN_ATTRIB|IN_CLOSE_WRITE|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_MOVED_FROM|IN_MOVED_TO|IN_MODIFY|IN_DONT_FOLLOW) |
Definition at line 109 of file configuration.h.
| #define KILL_TIMEOUT 60 |
Definition at line 115 of file configuration.h.
| #define KQUEUE_EVENTLISTSIZE 256 |
Definition at line 133 of file configuration.h.
| #define MAXARGUMENTS (1<<8) |
Definition at line 13 of file configuration.h.
| #define MAXCHILDREN (1<<8) |
Definition at line 34 of file configuration.h.
| #define MAXMOUNTPOINTS (1<<8) |
Definition at line 36 of file configuration.h.
| #define MAXNODES ((1<<8)-1) |
Definition at line 16 of file configuration.h.
| #define MAXPERMITTEDHOOKFILES (1<<8) |
Definition at line 37 of file configuration.h.
| #define MAXRULES (1<<8) |
Definition at line 10 of file configuration.h.
| #define MAXSIGNALNUM (1<<9) |
Definition at line 18 of file configuration.h.
| #define OUTPUT_LOCK_TIMEOUT (100*1000*1000) |
Definition at line 241 of file configuration.h.
| #define PIVOT_AUTO_DIR "/dev/shm/clsync-rootfs" |
Definition at line 151 of file configuration.h.
| #define RSYNC_ARGS_E |
Definition at line 170 of file configuration.h.
| #define RSYNC_ARGS_I |
Definition at line 180 of file configuration.h.
| #define SLEEP_SECONDS 1 |
Definition at line 113 of file configuration.h.
| #define SOCKET_BACKLOG 2 |
Definition at line 25 of file configuration.h.
| #define SOCKET_MAX_CLSYNC 8 |
Definition at line 28 of file configuration.h.
| #define SOCKET_MAX_LIBCLSYNC (1<<16) |
Definition at line 31 of file configuration.h.
| #define SYSLOG_BUFSIZ (1<<16) |
Definition at line 155 of file configuration.h.
| #define SYSLOG_FACILITY LOG_DAEMON |
Definition at line 157 of file configuration.h.
| #define SYSLOG_FLAGS (LOG_PID|LOG_CONS) |
Definition at line 156 of file configuration.h.
| #define TMPDIR_PATH "/tmp" |
Definition at line 152 of file configuration.h.
| #define TMPDIR_TEMPLATE "/clsync-XXXXXX" |
Definition at line 153 of file configuration.h.
| #define USER_LEN (1<<8) |
Definition at line 21 of file configuration.h.
| #define WAITPID_TIMED_GRANULARITY (30*1000*1000) |
Definition at line 242 of file configuration.h.