X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/a5e6228afbf1809d33d9a31e0895c5e955c39ce1..63bb92e3343c5d762dec2ff150bb3e5e165d05db:/preallocate.diff diff --git a/preallocate.diff b/preallocate.diff index fb8354c..74f3238 100644 --- a/preallocate.diff +++ b/preallocate.diff @@ -32,7 +32,7 @@ diff --git a/options.c b/options.c int do_compression = 0; int def_compress_level = Z_DEFAULT_COMPRESSION; int am_root = 0; /* 0 = normal, 1 = root, 2 = --super, -1 = --fake-super */ -@@ -223,6 +224,7 @@ static void print_rsync_version(enum logcode f) +@@ -224,6 +225,7 @@ static void print_rsync_version(enum logcode f) char const *links = "no "; char const *iconv = "no "; char const *ipv6 = "no "; @@ -40,9 +40,9 @@ diff --git a/options.c b/options.c STRUCT_STAT *dumstat; #if SUBPROTOCOL_VERSION != 0 -@@ -252,6 +254,9 @@ static void print_rsync_version(enum logcode f) - #ifdef ICONV_OPTION - iconv = ""; +@@ -256,6 +258,9 @@ static void print_rsync_version(enum logcode f) + #if defined HAVE_LUTIMES && defined HAVE_UTIMES + symtimes = ""; #endif +#ifdef SUPPORT_PREALLOCATION + preallocation = ""; @@ -50,18 +50,18 @@ diff --git a/options.c b/options.c rprintf(f, "%s version %s protocol version %d%s\n", RSYNC_NAME, RSYNC_VERSION, PROTOCOL_VERSION, subprotocol); -@@ -265,8 +270,8 @@ static void print_rsync_version(enum logcode f) +@@ -269,8 +274,8 @@ static void print_rsync_version(enum logcode f) (int)(sizeof (int64) * 8)); rprintf(f, " %ssocketpairs, %shardlinks, %ssymlinks, %sIPv6, batchfiles, %sinplace,\n", got_socketpair, hardlinks, links, ipv6, have_inplace); -- rprintf(f, " %sappend, %sACLs, %sxattrs, %siconv\n", -- have_inplace, acls, xattrs, iconv); -+ rprintf(f, " %sappend, %sACLs, %sxattrs, %siconv, %spreallocation\n", -+ have_inplace, acls, xattrs, iconv, preallocation); +- rprintf(f, " %sappend, %sACLs, %sxattrs, %siconv, %ssymtimes\n", +- have_inplace, acls, xattrs, iconv, symtimes); ++ rprintf(f, " %sappend, %sACLs, %sxattrs, %siconv, %ssymtimes, %spreallocation\n", ++ have_inplace, acls, xattrs, iconv, symtimes, preallocation); #ifdef MAINTAINER_MODE rprintf(f, "Panic Action: \"%s\"\n", get_panic_action()); -@@ -353,6 +358,9 @@ void usage(enum logcode F) +@@ -357,6 +362,9 @@ void usage(enum logcode F) rprintf(F," --fake-super store/recover privileged attrs using xattrs\n"); #endif rprintf(F," -S, --sparse handle sparse files efficiently\n"); @@ -71,7 +71,7 @@ diff --git a/options.c b/options.c rprintf(F," -n, --dry-run perform a trial run with no changes made\n"); rprintf(F," -W, --whole-file copy files whole (without delta-xfer algorithm)\n"); rprintf(F," -x, --one-file-system don't cross filesystem boundaries\n"); -@@ -531,6 +539,7 @@ static struct poptOption long_options[] = { +@@ -537,6 +545,7 @@ static struct poptOption long_options[] = { {"max-size", 0, POPT_ARG_STRING, &max_size_arg, OPT_MAX_SIZE, 0, 0 }, {"min-size", 0, POPT_ARG_STRING, &min_size_arg, OPT_MIN_SIZE, 0, 0 }, {"sparse", 'S', POPT_ARG_NONE, &sparse_files, 0, 0, 0 }, @@ -79,7 +79,7 @@ diff --git a/options.c b/options.c {"inplace", 0, POPT_ARG_NONE, &inplace, 0, 0, 0 }, {"append", 0, POPT_ARG_NONE, 0, OPT_APPEND, 0, 0 }, {"append-verify", 0, POPT_ARG_VAL, &append_mode, 2, 0, 0 }, -@@ -1289,6 +1298,15 @@ int parse_arguments(int *argc_p, const char ***argv_p, int frommain) +@@ -1311,6 +1320,15 @@ int parse_arguments(int *argc_p, const char ***argv_p, int frommain) } #endif @@ -95,7 +95,7 @@ diff --git a/options.c b/options.c if (write_batch && read_batch) { snprintf(err_buf, sizeof err_buf, "--write-batch and --read-batch can not be used together\n"); -@@ -2000,6 +2018,9 @@ void server_options(char **args, int *argc_p) +@@ -2022,6 +2040,9 @@ void server_options(char **args, int *argc_p) else if (remove_source_files) args[ac++] = "--remove-sent-files"; @@ -160,7 +160,7 @@ diff --git a/receiver.c b/receiver.c diff --git a/rsync.h b/rsync.h --- a/rsync.h +++ b/rsync.h -@@ -601,6 +601,10 @@ struct ht_int64_node { +@@ -602,6 +602,10 @@ struct ht_int64_node { #define ACLS_NEED_MASK 1 #endif