Displaying 6 results from an estimated 6 matches for "make_exclude_list".
2001 Sep 30
0
Exclude sets generated with -C
...re_list[i], 0);
+ add_exclude_list(cvs_ignore_list[i], &global_cvs_exclude_list, 0);
if ((p=getenv("HOME")) && strlen(p) < (MAXPATHLEN-12)) {
slprintf(fname,sizeof(fname), "%s/.cvsignore",p);
- add_exclude_file(fname,0,0);
+ global_cvs_exclude_list =
+ make_exclude_list(fname, global_cvs_exclude_list, 0, 0);
}
- add_exclude_line(getenv("CVSIGNORE"));
+ add_exclude_line_to_list(getenv("CVSIGNORE"), &global_cvs_exclude_list);
}
Binary files /home/sits/orig/rsync-2.4.6/exclude.o and ./exclude.o differ
diff -r -u --exclude=.o --exclude=rsy...
2002 Nov 11
0
Regular Expression support
...(*list)[len+1] = NULL;
}
-void add_exclude(const char *pattern, int include)
+void add_exclude(const char *pattern, int include, int regexp)
{
- add_exclude_list(pattern,&exclude_list, include);
+ add_exclude_list(pattern,&exclude_list, include, regexp);
}
struct exclude_struct **make_exclude_list(const char *fname,
struct exclude_struct **list1,
- int fatal, int include)
+ int fatal, int include, int regexp)
{
struct exclude_struct **list=list1;
FILE *f = fopen(fname,"r");
@@ -240,19 +321,18 @@
/* Skip lines starting with semicolon or pound.
It...
2003 Jan 14
3
.rsync-/.rsync+ patch and --link-dest example
...+ recur_local_exclude_list = recur_last_exclude_list;
return;
}
}
@@ -840,6 +848,29 @@
local_exclude_list = NULL;
+ if (rsync_exclude) {
+ if (strlen(fname) + strlen(".rsync-") <= MAXPATHLEN - 1) {
+ strcpy(p, ".rsync-");
+ recur_local_exclude_list =
+ make_exclude_list(fname, recur_local_exclude_list, 0, 0);
+ } else {
+ io_error = 1;
+ rprintf(FINFO,
+ "cannot cvs-exclude in long-named directory %s\n",
+ fname);
+ }
+ if (strlen(fname) + strlen(".rsync+") <= MAXPATHLEN - 1) {
+ strcpy(p, ".rsync+");
+ recur_local...
2001 Nov 29
2
Rsync: Re: patch to enable faster mirroring of large filesystems
...I'm sure that the 1hr spent building the exclude list can be
> greatly reduced by just slurping in the file list in memory.
Yes, I think that 1hr can be completely bypassed by reading the
--files-from file directly inside the send_exclude_list() function
and bypassing all the work done by make_exclude_list() to generate the
in-memory representation of the exclude patterns. I sure am glad you
ran this test because otherwise I probably wouldn't have thought of
doing that.
Hmm, wait, the remote side would still be building the in-memory exclude
pattern representations. I guess that needs a short-...
2002 Mar 08
1
[PATCH][RFC] space saving incrementals
...This way if a file
outside of destdir is hardlinked to a dentry
inside destdir the permissions (uid, gid,
mode) will be untouched preserving history
etc.
o link-dest option
After setting compare_dest this causes
unchanged files in destdir to be hardlinked
to link-dest.
o modified make_exclude_list to support stdin
if --exclude-from has argument of "-"
stdin will be read.
This lets us pipe a include/exclude list
into rsync so that we can generate it on the
fly.
The upshot of these is to allow rsync to make incremental
backups without modifying earlier versions but keep ev...
2003 Feb 16
1
rsync-exclude.patch.
...ist);
if (cvs_exclude) {
if (strlen(fname) + strlen(".cvsignore") <= MAXPATHLEN - 1) {
@@ -854,6 +886,19 @@
}
}
+ if (rsync_exclude) {
+ if (strlen(fname) + strlen(rsync_exclude) <= MAXPATHLEN - 1) {
+ strcpy(p, rsync_exclude);
+ recur_local_exclude_list =
+ make_exclude_list(fname, recur_local_exclude_list, 0, 0);
+ } else {
+ io_error = 1;
+ rprintf(FINFO,
+ "cannot cvs-exclude in long-named directory %s\n",
+ fname);
+ }
+ }
+
for (di = readdir(d); di; di = readdir(d)) {
char *dname = d_name(di);
if (strcmp(dname, ".") == 0 ||...