Displaying 20 results from an estimated 24 matches for "default_af_hint".
2007 Aug 21
1
DO NOT REPLY [Bug 4907] New: --disable-ipv6 disables -4 option
...9;, POPT_ARG_STRING, &shell_cmd, 0, 0, 0 },
{"rsync-path", 0, POPT_ARG_STRING, &rsync_path, 0, 0, 0 },
{"temp-dir", 'T', POPT_ARG_STRING, &tmpdir, 0, 0, 0 },
-#ifdef INET6
{"ipv4", '4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 },
+#ifdef INET6
{"ipv6", '6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0
},
#endif
{"8-bit-output", '8', POPT_ARG_NONE, &allow_8bit_chars, 0, 0, 0 },
@@ -588,8 +588,8 @@ static struct poptOption long_daemon_op...
2004 Dec 06
1
port and double-colon
....c 27 Nov 2004 18:24:12 -0000 1.132
+++ clientserver.c 6 Dec 2004 07:38:29 -0000
@@ -88,6 +88,9 @@
*p = '\0';
}
+ if (rsync_port == 0 && (rsync_port = lp_rsync_port()) == 0)
+ rsync_port = RSYNC_PORT;
+
fd = open_socket_out_wrapped(host, rsync_port, bind_address,
default_af_hint);
if (fd == -1)
Index: options.c
===================================================================
RCS file: /cvsroot/rsync/options.c,v
retrieving revision 1.190
diff -u -r1.190 options.c
--- options.c 27 Nov 2004 18:24:12 -0000 1.190
+++ options.c 6 Dec 2004 07:38:30 -0000
@@ -307,6 +307,7 @@...
2008 Mar 04
1
when rsync is called with -4 or -6, pass that on to ssh [PATCH]
...hat the remote shell
program is something that looks like ssh. Perhaps that could be done
cleaner...
Paul Slootman
--- a/main.c 2008-03-01 21:01:41.000000000 +0100
+++ b/main.c 2008-03-04 18:55:10.933488013 +0100
@@ -82,6 +82,7 @@
#ifdef ICONV_OPTION
extern iconv_t ic_send;
#endif
+extern int default_af_hint;
uid_t our_uid;
int local_server = 0;
@@ -381,6 +382,23 @@
*t++ = '\0';
}
+#ifdef AF_INET
+ if (default_af_hint == AF_INET) {
+ if (strncmp(cmd, "ssh", 3) == 0 || strstr(cmd, "/ssh") != NULL) {
+ /* we...
2003 Mar 05
0
"rsync --daemon" and IPv4/v6 dual stack
...turn s;
}
@@ -371,24 +342,52 @@
return(getsockopt(fd, SOL_SOCKET, SO_TYPE, (char *)&v, &l) == 0);
}
+#define MAXSOCK 20
void start_accept_loop(int port, int (*fn)(int ))
{
- int s;
+ int s[MAXSOCK];
+ int nsock = 0;
+ int maxsock = -1;
extern char *bind_address;
extern int default_af_hint;
+ struct addrinfo hints, *res, *res0;
+ char portstr[NI_MAXSERV];
+ int i;
- /* open an incoming socket */
- s = open_socket_in(SOCK_STREAM, port, bind_address, default_af_hint);
- if (s == -1)
+ memset(&hints, 0, sizeof(hints));
+ hints.ai_family = default_af_hint;
+ hints.ai_socktype = SOC...
2002 May 04
1
A simpler move-files patch
...ARG_STRING, &batch_prefix, OPT_READ_BATCH, 0, 0 },
{"write-batch", 0, POPT_ARG_STRING, &batch_prefix, OPT_WRITE_BATCH, 0, 0 },
+ {"move-files", 0, POPT_ARG_NONE, &move_files, 0, 0, 0 },
#ifdef INET6
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET , 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6 , 0, 0 },
@@ -813,6 +816,9 @@
args[ac++] = "--compare-dest";
args[ac++] = compare_dest;
}
+
+ if (move_files)
+ args[ac++] = "--move-files";
*argc = ac;
}
Index: rsync...
2004 Mar 17
1
setgid on directories
...Dec 30 13:16:25 2003
+++ ../rsync-2.6.0.gsa/options.c Thu Feb 12 12:22:21 2004
@@ -88,6 +88,7 @@
int ignore_errors=0;
int modify_window=0;
int blocking_io=-1;
+int setgid_dirs=0;
/** Network address family. **/
@@ -380,6 +381,7 @@
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0,
0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6,
0, 0 },
#endif
+ {"setgid_dirs", 0, POPT_ARG_NONE, &setgid_dirs, 0, 0, 0 },
{0,0,0,0, 0, 0, 0}
};
Jim Ogilvie
2003 Feb 01
0
Fw: Re: [Apt-rpm] I: [PATCH] 0.5.4cnc9: rsync method support
...set;
* address, or a hostname. **/
char *bind_address;
+/** Print information needed for APT rsync method */
+int apt_support = 0;
static void print_rsync_version(enum logcode f)
{
@@ -370,6 +372,7 @@ static struct poptOption long_options[]
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET , 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6 , 0, 0 },
#endif
+ {"apt-support", 0, POPT_ARG_NONE, &apt_support, 0, 0, 0 },
{0,0,0,0, 0, 0, 0}
};
--- rsync-2.5.6/receiver.c.orig 2003-01-21 02:32:17 +0300
+++ rsync-2.5...
2009 Jan 24
2
[patch] Replace illegal characters in filenames for FAT (switch)
...0, POPT_ARG_STRING, &iconv_opt, 0, 0, 0 },
{"no-iconv", 0, POPT_ARG_NONE, 0, OPT_NO_ICONV, 0, 0 },
#endif
+ {"fat-filenames", 0, POPT_ARG_NONE, &fat_filenames, 0, 0, 0 },
{"ipv4", '4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 },
{"ipv6", '6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 },
{"8-bit-output", '8', POPT_ARG_VAL, &allow_8bit_chars, 1, 0, 0 },
diff --git a/receiver.c b/receiver.c
index 4325e30..bc9dc90 100644
--- a/receiver...
2003 Mar 08
1
[patch] rsync over existing I/O connections (new feature)
...0, POPT_ARG_STRING, &batch_prefix, OPT_WRITE_BATCH, 0, 0 },
+ {"fd-in", 0, POPT_ARG_INT, &force_f_in , 0, 0, 0 },
+ {"fd-out", 0, POPT_ARG_INT, &force_f_out , 0, 0, 0 },
#ifdef INET6
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET , 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6 , 0, 0 },
@@ -586,6 +592,20 @@
return 0;
}
+ if ((force_f_in == -1) && (force_f_out != -1)) {
+ snprintf(err_buf,sizeof(err_buf),
+ "fd-out can not be used without fd-in\n&q...
2004 May 15
1
Fwd: Re: setting checksum_seed
...rs", 0, POPT_ARG_VAL, &implied_dirs, 0, 0, 0 },
{"protocol", 0, POPT_ARG_INT, &protocol_version, 0, 0, 0 },
+ {"checksum-seed", 0, POPT_ARG_INT, &checksum_seed, 0, 0, 0 },
#ifdef INET6
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 },
@@ -911,6 +913,11 @@
goto oom;
args[ac++] = arg;
}
+ if (checksum_seed) {
+ if (asprintf(&arg, "--checksum_seed=%d", checksum_seed) < 0)
+ goto oom;
+ args[ac++] = arg...
2002 Sep 10
0
[PATCH] Add --preserve-atime switch to rsync
...NG, &batch_prefix, OPT_READ_BATCH,
0, 0 },
{"write-batch", 0, POPT_ARG_STRING, &batch_prefix,
OPT_WRITE_BATCH, 0, 0 },
+ {"preserve-atime", 0, POPT_ARG_NONE, &preserve_atime, 0, 0, 0 },
#ifdef INET6
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET , 0,
0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6 ,
0, 0 },
*** flist.c@@/main/original/1 Tue Apr 9 14:02:48 2002
--- flist.c Tue Jun 18 09:40:46 2002
***************
*** 706,711 ****
--- 706,712 ----
}
file->modtime = st.st_mtime;
+ f...
2003 Sep 05
1
new option suggestion '--backup-only'
...'0', POPT_ARG_NONE, &eol_nulls, 0, 0, 0},
{"no-implied-dirs", 0, POPT_ARG_VAL, &implied_dirs, 0, 0, 0 },
+ {"backup-only", 0, POPT_ARG_NONE, &backup_only , 0, 0, 0 },
#ifdef INET6
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET, 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6, 0, 0 },
@@ -584,6 +587,11 @@
return 0;
#endif
+ case OPT_BACKUP_DIR:
+ /* --backup-dir implies --backup */
+ make_backups = 1;
+ break;
+
default:
/* FIXME: If --daemon is specified,...
2006 May 24
0
rsync connection limit
...f(35)) Timeout in connect()
enddit()
manpagesection(ENVIRONMENT VARIABLES)
diff -Naur rsync-2.6.8/socket.c rsync-2.6.8-new/socket.c
--- rsync-2.6.8/socket.c Tue Apr 11 03:48:28 2006
+++ rsync-2.6.8-new/socket.c Wed May 24 16:22:48 2006
@@ -37,6 +37,7 @@
extern char *bind_address;
extern int default_af_hint;
+extern int do_timeout;
#ifdef HAVE_SIGACTION
static struct sigaction sigact;
@@ -162,6 +163,13 @@
return -1;
}
+/**
+ * connect() timeout handler based on alarm()
+ **/
+static RETSIGTYPE contimeout_handler(UNUSED(int val))
+{
+ exit_cleanup(RERR_CON_TIMEOUT);
+}
/**
* Open a socket...
2005 Jan 05
1
rsync filename heuristics
...0, POPT_ARG_STRING, &batch_prefix, OPT_READ_BATCH},
> {"write-batch", 0, POPT_ARG_STRING, &batch_prefix, OPT_WRITE_BATCH},
> + {"fuzzy", 0, POPT_ARG_NONE, &fuzzy},
> #ifdef INET6
> {0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET },
> {0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6 },
> @@ -757,7 +760,9 @@
> args[ac++] = "--compare-dest";
> args[ac++] = compare_dest;
> }
> -
> +
> + if (fuzzy && am_sender)
> + args[ac++] = "-...
2005 Jan 27
1
feedback on rsync-HEAD-20050125-1221GMT
Wayne,
I have been using the rsync snapshot from 1/25 for the last few days and
everything seems quite solid so far. I include below a few nit-picks in
case you're looking for thing to tidy up.
I'm also looking forward to hearing news about the --filter option. I'm
thinking it is going to be very useful for backup purposes. What I
would want to be able to do is, on a
2011 Nov 28
0
RFC: [PATCH] Add TCP congestion control and Diffserv options
...quot; -4, --ipv4 prefer IPv4\n");
rprintf(F," -6, --ipv6 prefer IPv6\n");
diff --git a/socket.c b/socket.c
index 84f9b0c..4ee901e 100644
--- a/socket.c
+++ b/socket.c
@@ -38,6 +38,8 @@ extern char *bind_address;
extern char *sockopts;
extern int default_af_hint;
extern int connect_timeout;
+extern int diffserv;
+extern char *congestion_alg;
#ifdef HAVE_SIGACTION
static struct sigaction sigact;
@@ -166,6 +168,40 @@ static RETSIGTYPE contimeout_handler(UNUSED(int val))
connect_timeout = -1;
}
+/* Set special socket options
+ *
+ * Diffserv is a v...
2003 Jan 14
4
specifying a list of files to transfer
...0, POPT_ARG_NONE, 0, OPT_NULL, 0, 0},
+ {"send-dirs", 0, POPT_ARG_NONE, &send_dirs, 0, 0, 0 },
+ {"no-implicit-dirs", 0, POPT_ARG_NONE, 0, OPT_NO_IMPLICIT_DIRS, 0, 0},
#ifdef INET6
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET , 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6 , 0, 0 },
@@ -561,6 +574,14 @@
case OPT_READ_BATCH:
/* popt stores the filename in batch_prefix for us */
read_batch = 1;
+ break;
+
+ case OPT_NULL:
+ list_rs = '\0';
+ break...
2005 Nov 01
2
request: add TCP buffer options to rsync CLI?
Dear rsync folks,
I'd like to request/suggest that cli options to set TCP send/receive buffers
be added to rsync client-side.
Summary:
I'm aware that a daemon's config-file can set socket options for
the server side
(e.g. SO_SNDBUF, SO_RCVBUF). That is useful.
But when trying to get high-throughput rsync over
long paths (i.e. large bandwidth*delay product), since
2002 Aug 05
5
[patch] read-devices
...sync-2.5.5/options.c rsync-patched/options.c
--- rsync-2.5.5/options.c Tue Mar 19 23:16:42 2002
+++ rsync-patched/options.c Mon Aug 5 10:05:15 2002
@@ -86,8 +86,9 @@
#else
int modify_window=0;
#endif
int blocking_io=-1;
+int read_devices=0;
/** Network address family. **/
#ifdef INET6
int default_af_hint = 0; /* Any protocol */
@@ -218,8 +219,9 @@
rprintf(F," -p, --perms preserve permissions\n");
rprintf(F," -o, --owner preserve owner (root only)\n");
rprintf(F," -g, --group preserve group\n");
rprintf(F,"...
2003 Jun 25
3
patch draft for extended attributes on linux
..._ARG_STRING, &batch_prefix, OPT_READ_BATCH, 0, 0 },
{"write-batch", 0, POPT_ARG_STRING, &batch_prefix, OPT_WRITE_BATCH, 0, 0 },
+ {"xattr", 0, POPT_ARG_NONE, &opt_xattr, 0, 0, 0 },
#ifdef INET6
{0, '4', POPT_ARG_VAL, &default_af_hint, AF_INET , 0, 0 },
{0, '6', POPT_ARG_VAL, &default_af_hint, AF_INET6 , 0, 0 },
@@ -825,6 +833,10 @@ void server_options(char **args,int *arg
args[ac++] = tmpdir;
}
+ if (opt_xattr) {
+ args[ac++] = "--xattr";
+ }
+
if (bac...