search for: argc_p

Displaying 14 results from an estimated 14 matches for "argc_p".

Did you mean: argc_
2020 Feb 06
0
[PATCH] Add support for zstd compression
...on, 0, 0, 0 }, @@ -1163,6 +1173,7 @@ static void set_refuse_options(char *bp) refused_archive_part = op->val; break; case 'z': + case 'Z': refused_compress = op->val; break; case '\0': @@ -1575,6 +1586,16 @@ int parse_arguments(int *argc_p, const char ***argv_p) do_compression++; break; + case 'Z': +#ifdef HAVE_LIBZSTD + do_compression_zstd++; +#else + snprintf(err_buf, sizeof err_buf, + "Support for zstd is not enabled.\n"); + return 0; +#endif + break; + case 'M': arg = poptG...
2008 Feb 20
1
[PATCH] build fix without iconv support
...) ic_recv = (iconv_t)-1; } } +#endif if (!numeric_ids && (use_chroot ? lp_numeric_ids(i) != False : lp_numeric_ids(i) == True)) diff --git a/options.c b/options.c index 7f69bd2..75ceeeb 100644 --- a/options.c +++ b/options.c @@ -1137,7 +1137,9 @@ int parse_arguments(int *argc_p, const char ***argv_p, int frommain) break; case OPT_NO_ICONV: +#ifdef ICONV_OPTION iconv_opt = NULL; +#endif break; case OPT_MAX_SIZE:
2020 Sep 27
1
strange crash with md5p8.diff + xxhash
...ffffffbe50 "xxh128 xxh3 xxh64 (xxhash) md5p8 md5 md4 none (", to_buf_len=to_buf_len at entry=256, dup_markup=dup_markup at entry=40 '(') at compat.c:478 #3 0x000000000043d717 in print_rsync_version (f=f at entry=FINFO) at usage.c:194 #4 0x000000000042fcee in parse_arguments (argc_p=argc_p at entry=0x7fffffffc0dc, argv_p=argv_p at entry=0x7fffffffc0d0) at options.c:1897 #5 0x0000000000404de1 in main (argc=<optimized out>, argv=<optimized out>) at main.c:1747 %% Turns out the comment in rsync.h: (struct name_num_obj): struct name_num_item list[8]; /* A b...
2023 Jul 03
0
[PATCH] Add option --log-after to log after moving file into place
...t;, 0, POPT_ARG_STRING, &stdout_format, 0, 0, 0 }, {"log-format", 0, POPT_ARG_STRING, &stdout_format, 0, 0, 0 }, /* DEPRECATED */ {"itemize-changes", 'i', POPT_ARG_NONE, 0, 'i', 0, 0 }, @@ -2359,7 +2363,10 @@ int parse_arguments(int *argc_p, const char ***argv_p) if (logfile_name && !am_daemon) { if (!logfile_format) { - logfile_format = "%i %n%L"; + if (log_after_transfer) + logfile_format = "%o %i %n%L"; + else + logfile_format = "%i %n%L"; logfile_format_has_i = logfile_f...
2008 Mar 11
0
[PATCH] Comment an obscure bit of code that sets the --suffix-dels default.
--- ?More work on backup-dir-dels... options.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/options.c b/options.c index 459ad58..ed21704 100644 --- a/options.c +++ b/options.c @@ -1479,6 +1479,11 @@ int parse_arguments(int *argc_p, const char ***argv_p, int frommain) backup_suffix); return 0; } + /* --suffix-dels defaults to --suffix, or empty for a client given an + * explicit --backup-dir-dels (just as --suffix defaults to empty when + * a --backup-dir is given). The second case does not apply to the + * serve...
2008 Sep 23
1
error receiving files from protocol 29 server
In debian bug #493559 (http://bugs.debian.org/493559) the problem is that when requesting a file from an older version rsync, the remote server gives an error: $ rsync rsync://rsync.blackholes.us/zones/countries/countries.rbl /tmp rsync: on remote machine: -: unknown option rsync error: requested action not supported (code 4) at clientserver.c(517) rsync: connection unexpectedly closed (4 bytes
2023 May 17
1
[PATCH] Add --omit-{device,special}-times options
...'@', POPT_ARG_INT, &modify_window, OPT_MODIFY_WINDOW, 0, 0 }, {"super", 0, POPT_ARG_VAL, &am_root, 2, 0, 0 }, {"no-super", 0, POPT_ARG_VAL, &am_root, 0, 0, 0 }, @@ -2815,6 +2821,10 @@ void server_options(char **args, int *argc_p) args[ac++] = "--size-only"; if (do_stats) args[ac++] = "--stats"; + if (omit_device_times) + args[ac++] = "--omit-device-times"; + if (omit_special_times) + args[ac++] = "--omit-special-times"; } else { if (skip_compress) args[ac++]...
2010 Jun 15
3
about rsyncing of block devices
Hiya, I can see it's a regular subject on this list. I, like others wanted to use rsync to synchronise two block devices (as it happens one lvm volume and one nbd device served by qemu-img on a remote host from a qcow2 disk image so that I can keep the old versions) As I couldn't find any report of it being done successfully, I'm just sharing my findings as it might benefit others.
2024 Mar 18
0
[PATCH] add option to skip files based on age/mtime
...0, POPT_ARG_STRING, &max_alloc_arg, 0, 0, 0 }, {"sparse", 'S', POPT_ARG_VAL, &sparse_files, 1, 0, 0 }, {"no-sparse", 0, POPT_ARG_VAL, &sparse_files, 0, 0, 0 }, @@ -2815,6 +2819,16 @@ void server_options(char **args, int *argc_p) args[ac++] = safe_arg("--min-size", min_size_arg); if (max_size >= 0) args[ac++] = safe_arg("--max-size", max_size_arg); + if (min_age > 0) { + if (asprintf(&arg, "--min-age=%d", min_age) < 0) + goto oom; + args[ac++] = arg; + } +...
2015 Nov 28
0
[PATCH] ignore-non-existing-directory: add variant of ignore-non-existing
...0, POPT_ARG_NONE, &ignore_non_existing, 0, 0, 0 }, {"ignore-non-existing",0,POPT_ARG_NONE, &ignore_non_existing, 0, 0, 0 }, {"ignore-existing", 0, POPT_ARG_NONE, &ignore_existing, 0, 0, 0 }, @@ -2708,6 +2710,9 @@ void server_options(char **args, int *argc_p) if (ignore_non_existing) args[ac++] = "--existing"; + if (ignore_non_existing_dirs) + args[ac++] = "--ignore-non-existing-directory"; + if (tmpdir) { args[ac++] = "--temp-dir"; args[ac++] = tmpdir; diff --git a/rsync.yo b/rsync.yo index 88479f3....
2008 Mar 23
1
[PATCH] allow to change the block size used to handle sparse files
...{"inplace", 0, POPT_ARG_VAL, &inplace, 1, 0, 0 }, {"no-inplace", 0, POPT_ARG_VAL, &inplace, 0, 0, 0 }, {"append", 0, POPT_ARG_NONE, 0, OPT_APPEND, 0, 0 }, @@ -1875,6 +1878,12 @@ void server_options(char **args, int *argc_p) args[ac++] = arg; } + if (sparse_files_block_size) { + if (asprintf(&arg, "-U%lu", sparse_files_block_size) < 0) + goto oom; + args[ac++] = arg; + } + if (io_timeout) { if (asprintf(&arg, "--timeout=%d", io_timeout) < 0) goto oom; diff --git a/...
2016 Jan 16
0
[PATCH v2, resend] ignore-non-existing-directory: add variant of ignore-non-existing
...0, POPT_ARG_NONE, &ignore_non_existing, 0, 0, 0 }, {"ignore-non-existing",0,POPT_ARG_NONE, &ignore_non_existing, 0, 0, 0 }, {"ignore-existing", 0, POPT_ARG_NONE, &ignore_existing, 0, 0, 0 }, @@ -2708,6 +2710,9 @@ void server_options(char **args, int *argc_p) if (ignore_non_existing) args[ac++] = "--existing"; + if (ignore_non_existing_dirs) + args[ac++] = "--ignore-non-existing-directory"; + if (tmpdir) { args[ac++] = "--temp-dir"; args[ac++] = tmpdir; diff --git a/rsync.yo b/rsync.yo index 88479f3....
2015 Nov 28
0
[PATCH v2] ignore-non-existing-directory: add variant of ignore-non-existing
...0, POPT_ARG_NONE, &ignore_non_existing, 0, 0, 0 }, {"ignore-non-existing",0,POPT_ARG_NONE, &ignore_non_existing, 0, 0, 0 }, {"ignore-existing", 0, POPT_ARG_NONE, &ignore_existing, 0, 0, 0 }, @@ -2708,6 +2710,9 @@ void server_options(char **args, int *argc_p) if (ignore_non_existing) args[ac++] = "--existing"; + if (ignore_non_existing_dirs) + args[ac++] = "--ignore-non-existing-directory"; + if (tmpdir) { args[ac++] = "--temp-dir"; args[ac++] = tmpdir; diff --git a/rsync.yo b/rsync.yo index 88479f3....
2008 Feb 15
4
Revised flags patch
...quot;, 'E', POPT_ARG_NONE, &preserve_executability, 0, 0, 0 }, {"acls", 'A', POPT_ARG_NONE, 0, 'A', 0, 0 }, {"no-acls", 0, POPT_ARG_VAL, &preserve_acls, 0, 0, 0 }, @@ -1289,6 +1297,15 @@ int parse_arguments(int *argc_p, const c } #endif +#ifndef SUPPORT_FLAGS + if (preserve_fileflags) { + snprintf(err_buf, sizeof err_buf, + "file flags are not supported on this %s\n", + am_server ? "server" : "client"); + return 0; + } +#endif + if (write_batch && read_batch) {...