Displaying 8 results from an estimated 8 matches for "set_compression".
2016 Aug 25
0
--skip-compress option not selectively skipping files
....57
default compression, "--skip-compress=grb2"
sent 156,439,778 bytes  received 110 bytes  62,575,955.20 bytes/sec
total size is 156,374,300  speedup is 1.00
Which I believe indicates that *no* files are compressed when the first
file read has a suffix in the skip list.  Looking at the set_compression
function in token.c, I see that the compression_level variable is set to 0
when a file with a suffix in the skip list is encountered, but that
variable appears to only be read once during the initial execution of
send_deflated_token.
Am I misunderstanding the intent of the --skip-compress option?...
2004 May 11
1
Would this patch be useful...
..., but not want to try to compress .gz, .jpg, .mp3, etc. type files.
Rsyncd has this feature with it's "dont compress" option, but I think
many users are using rsync over ssh and therefore do not have this
functionality available to them.
The way my test code works is by modifying the set_compression() function
in token.c and using the wildmatch() function, exactly like rsyncd's
dont compress option is doing now.
If this seems useful, I want to receive input on how to implement
the user-interface.  I was thinking about two command line options,
--dont-compress and --dont-compress-from.
Th...
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...le(fd, 0, 0, s->blength);
+			rprintf(FINFO,"sending file descriptor %d\n", mbuf->fd);
+			send_fd(local_socket, mbuf->fd);
+		}
+
 		write_ndx_and_attrs(f_out, ndx, iflags, fname, file,
 				    fnamecmp_type, xname, xlen);
 		write_sum_head(f_xfer, s);
@@ -333,7 +345,18 @@
 
 		set_compression(fname);
 
-		match_sums(f_xfer, s, mbuf, st.st_size);
+		if (local_server && local_socket && s->count == 0) {
+			OFF_T offset = 0;
+			while (offset < st.st_size) {
+				read_buf(local_socket, (char *)&offset, sizeof(offset));
+				if (offset < 0)
+					break;
+				if...
2002 Apr 03
3
metadata in dryrun mode
As I reported a while back rsync doesn't handle metadata (permissions and
ownership) in dryrun mode.
I offered to make a patch and that offer still stands. I didn't have the
time for it until now and want to pick it up again. I had some ugly hack
back then but I want to redo it in a clean way.
I would like some input on my thoughts.
IMHO, it would be ideally if the check for dry_run
2003 Oct 18
0
Added functionality --compare-file and --compare-auto
..._hard_link(struct file_struct *file);
@@ -224,7 +225,6 @@
 OFF_T do_lseek(int fd, OFF_T offset, int whence);
 void *do_mmap(void *start, int len, int prot, int flags, int fd, OFF_T offset);
 char *d_name(struct dirent *di);
-int main(int argc, char **argv);
 int main (int argc, char *argv[]);
 void set_compression(char *fname);
 void send_token(int f,int token,struct map_struct *buf,OFF_T offset,
@@ -232,6 +232,7 @@
 int recv_token(int f,char **data);
 void see_token(char *data, int toklen);
 int main(int argc, char **argv);
+int main(int argc, char **argv);
 void add_uid(uid_t uid);
 void add_gid(gid_t gid)...
2005 Mar 21
4
Patch: Offline transfer mode
...tinue;
 		}
 
@@ -224,8 +238,8 @@
 				safe_fname(fname), (double)st.st_size);
 		}
 
-		write_int(f_out, i);
-		write_sum_head(f_out, s);
+		write_int(f_alt, i);
+		write_sum_head(f_alt, s);
 
 		if (verbose > 2) {
 			rprintf(FINFO, "calling match_sums %s\n",
@@ -237,7 +251,7 @@
 
 		set_compression(fname);
 
-		match_sums(f_out, s, mbuf, st.st_size);
+		match_sums(f_alt, s, mbuf, st.st_size);
 		log_send(file, &initial_stats);
 
 		if (mbuf) {
Index: rsync-2.6.3/options.c
===================================================================
--- rsync-2.6.3.orig/options.c	2005-03-18 17:19:30...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch?
Thanks for the reminder.
I've just committed Jos's rsync+ patch onto the
"branch_mbp_rsyncplus_merge" branch.  If it works OK and nobody
screams I will move it across onto the main tree tomorrow or
Wednesday.
I see the patch doesn't add documentation about the new options to the
man page, so we should fix that in the future.
2002 Aug 05
5
[patch] read-devices
...void usage(enum logcode F);
 void option_error(void);
 int parse_arguments(int *argc, const char ***argv, int frommain);
@@ -216,9 +216,9 @@
 void *do_mmap(void *start, int len, int prot, int flags, int fd, OFF_T offset);
 char *d_name(struct dirent *di);
 int main (int argc, char *argv[]);
 void set_compression(char *fname);
-void send_token(int f,int token,struct map_struct *buf,OFF_T offset,
+int send_token(int f,int token,struct map_struct *buf,OFF_T offset,
 		int n,int toklen);
 int recv_token(int f,char **data);
 void see_token(char *data, int toklen);
 int main(int argc, char **argv);
diff -r -u4 r...