search for: string_area

Displaying 4 results from an estimated 4 matches for "string_area".

2003 Oct 03
2
Cygwin/rsync Hang Problem Testing Results
People of cygwin & rsync, I recently attempted to get cygwin and rsync working to solve a backup/mirroring need in my computer life. Well, as you might guess, I ran into a little but of trouble. Strangely enough, rsync seemed to be regularly hanging when I attempted to do a "get" (sycronize a remote to a local dir). Well, considering I want to automate this, that was not going
2004 Mar 10
4
HFS+ resource forks: WIP patch included
...gt;dirname; } file->basename = STRDUP(ap, p + 1); @@ -804,6 +804,9 @@ struct file_struct *file; extern int delete_excluded; + struct file_struct *file_hfsrf; + extern char *hfs_mode; + /* f is set to -1 when calculating deletion file list */ file = make_file(fname, &flist->string_area, f == -1 && delete_excluded? SERVER_EXCLUDES @@ -831,8 +834,77 @@ local_exclude_list = last_exclude_list; return; } + + if ( file->basename[0] && S_ISREG(file->mode) && hfs_mode ) { + /** check for rsrc fork, and add if found */ + file_hfsrf = hfs_rsrc_f...
2004 Feb 06
4
memory reduction
...pools A minimum size of 128KB + * is needed to mmap them so that freeing will release the + * space to the OS. + * + * Larger sizes reduce leftover fragments and speed free calls + * (when they happen) Smaller sizes increase the chance of + * freed allocations freeing whole extents. + */ -struct string_area { - char *base; - char *end; - char *current; - struct string_area *next; -}; +#define FILE_EXTENT (256 * 1024) +#define HLINK_EXTENT (128 * 1024) struct file_list { int count; int malloced; + alloc_pool_t file_pool; + alloc_pool_t hlink_pool; struct file_struct **files; - struct string_ar...
2004 Jan 24
2
[PATCH] --links-depth for rsync
...nt make_backups; extern int preserve_links; +extern int follow_links_depth; extern int preserve_hard_links; extern int preserve_perms; extern int preserve_devices; @@ -725,6 +726,65 @@ /* IRIX cc cares that the operands to the ternary have the same type. */ #define MALLOC(ap, i) (ap ? (void*) string_area_malloc(ap, i) : malloc(i)) +void make_file_stat(struct file_struct * file, STRUCT_STAT *st) +{ + file->modtime = st->st_mtime; + file->length = st->st_size; + file->mode = st->st_mode; + file->uid = st->st_uid; + file->gid = st->st_gid; + if (preserve_hard_links) { +...