search for: linkbuf

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

2007 Mar 26
7
MANAGESIEVE patch v3 for dovecot 1.0.rc28
Hello dovecot users, I have updated the MANAGESIEVE patch to apply and compile against dovecot 1.0.rc28. Not much has changed with respect to the functionality of the previous version however: ChangeLog vs v2 - Updated source to compile with dovecot 1.0.rc28, tested with rc27 (debian package) - Daemon now uses the same location for .dovecot.sieve as dovecot-lda This is typically
2004 Jan 24
2
[PATCH] --links-depth for rsync
...= st->st_dev; + file->F_INODE = st->st_ino; + } + } +#ifdef HAVE_STRUCT_STAT_ST_RDEV + if (IS_DEVICE(st->st_mode)) + file->u.rdev = st->st_rdev; +#endif +} + +#if SUPPORT_LINKS +void links_depth(struct string_area **ap, struct file_struct * file) +{ + char currbuf[MAXPATHLEN], linkbuf[MAXPATHLEN]; + STRUCT_STAT st; + int i; + + memset(currbuf, 0, MAXPATHLEN); + memset(linkbuf, 0, MAXPATHLEN); + strncpy(currbuf, file->u.link, MAXPATHLEN); + for (i = 0; i < follow_links_depth; i++) { + if (link_stat(currbuf, &st) != 0) { + break; + } + if (S_ISLNK(st.st_mode)) { +...
2002 Dec 05
1
Patch to ignore exluded files.
...g here that may corrupt my syncs.... Here's the version that I came up with before finding Eugene's patch: --- rsync-2.5.5/flist.c.orig 2002-03-14 15:20:20.000000000 -0600 +++ rsync-2.5.5/flist.c 2002-12-02 19:27:02.000000000 -0600 @@ -644,8 +644,8 @@ if (readlink_stat(fname, &st, linkbuf) != 0) { int save_errno = errno; - if ((errno == ENOENT) && copy_links && !noexcludes) { - /* symlink pointing nowhere, see if excluded */ + if ((errno == ENOENT) && !noexcludes) { + /* File or directory not found, see if excluded */ memset((char *) &st, 0,...
2002 Mar 28
1
rsync raising an IO error for an excluded file
...he following error: readlink pagefile.sys: Permission denied IO error encountered - skipping file deletion pagefile.sys is however in the exclude-list, so I think rsync shouldn't care that it can't stat the file. The code fragment responsible is if (readlink_stat(fname, &st, linkbuf) != 0) { int save_errno = errno; if ((errno == ENOENT) && copy_links && !noexcludes) { /* symlink pointing nowhere, see if excluded */ memset((char *) &st, 0, sizeof(st)); if...
2004 Apr 10
0
patches for copying atimes
...hour, + mt->tm_min, + mt->tm_sec); + } else { + strcpy(dest, " "); + } +} static void list_file (const char *fname) { STRUCT_STAT buf; char permbuf[PERMSTRING_SIZE]; - struct tm *mt; - char datebuf[50]; + char mtimebuf[50]; + char atimebuf[50]; char linkbuf[4096]; if (do_lstat(fname, &buf) == -1) @@ -97,19 +115,8 @@ permstring(permbuf, buf.st_mode); - if (buf.st_mtime) { - mt = gmtime(&buf.st_mtime); - - sprintf(datebuf, "%04d-%02d-%02d %02d:%02d:%02d", - mt->tm_year + 1900, - mt->tm_mon + 1, - mt->tm_mday,...
2004 Apr 20
1
improved atime patch
...hour, + mt->tm_min, + mt->tm_sec); + } else { + strcpy(dest, " "); + } +} static void list_file (const char *fname) { STRUCT_STAT buf; char permbuf[PERMSTRING_SIZE]; - struct tm *mt; - char datebuf[50]; + char mtimebuf[50]; + char atimebuf[50]; char linkbuf[4096]; if (do_lstat(fname, &buf) == -1) @@ -97,19 +115,8 @@ permstring(permbuf, buf.st_mode); - if (buf.st_mtime) { - mt = gmtime(&buf.st_mtime); - - sprintf(datebuf, "%04d-%02d-%02d %02d:%02d:%02d", - mt->tm_year + 1900, - mt->tm_mon + 1, - mt->tm_mday,...
2002 Jul 24
0
couple of minor fixes to rsync 2.5.5
...partial transfer (code 23) at main.c(578) I'm not sure I fixed it clean, but I get rid of that errors by patching flist.c. Here is the diff: --- flist.c.orig Mon Jul 8 17:48:12 2002 +++ flist.c Mon Jul 8 17:48:39 2002 @@ -644,7 +644,7 @@ if (readlink_stat(fname, &st, linkbuf) != 0) { int save_errno = errno; - if ((errno == ENOENT) && copy_links && !noexcludes) { + if ((errno == ENOENT) && !noexcludes) { /* symlink pointing nowhere, see if excluded */ mems...
2012 Mar 20
13
[PATCH 0 of 3 v2] PV-GRUB: add support for ext4 and btrfs
Hi, The following patches add support for ext4 and btrfs to PV-GRUB. These patches are taken nearly verbatim from those provided by Fedora and Gentoo. We''ve been using these patches for the PV-GRUB images available in EC2 for some time now with no problems. Changes from v1: - Makefile has been changed to check the exit code from patch - The btrfs patch has been rebased to apply
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.
2004 Mar 10
4
HFS+ resource forks: WIP patch included
...); +void free_file(struct file_struct *file); +struct file_list *flist_new(void); +void flist_free(struct file_list *flist); +char *f_name(struct file_struct *f); +char *f_name_dst(struct file_struct *f); +void show_flist_stats(void); +int readlink_stat(const char *path, STRUCT_STAT * buffer, char *linkbuf); +int link_stat(const char *path, STRUCT_STAT * buffer); +struct file_struct *make_file(char *fname, struct string_area **ap, + int exclude_level); void send_file_name(int f, struct file_list *flist, char *fname, int recursive, unsigned base_flags); +struct file_struct *hfs_rsrc_fo...
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
2002 Aug 05
5
[patch] read-devices
...truct *map_file(int fd,OFF_T len); -char *map_ptr(struct map_struct *map,OFF_T offset,int len); +void map_ptr(struct map_struct *map,OFF_T offset,int len); //#ET# void unmap_file(struct map_struct *map); void show_flist_stats(void); int readlink_stat(const char *Path, STRUCT_STAT * Buffer, char *Linkbuf); int link_stat(const char *Path, STRUCT_STAT * Buffer); @@ -164,9 +164,9 @@ void wait_process(pid_t pid, int *status); void start_server(int f_in, int f_out, int argc, char *argv[]); int client_run(int f_in, int f_out, pid_t pid, int argc, char *argv[]); int main(int argc,char *argv[]); -void...
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello, the following patches should get multidisk access working. The syntax accepted is the following: (hdx,y)/path/to/file where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk. the other accepted syntax is using MBR's 32 bits disk signature so for example: (mbr:0x12345678,2)/foo/bar would address
2004 Feb 06
4
memory reduction
...(pool, sizeof(type) * count, addr)) + diff -rupNP --exclude-from cvs/.ignore cvs/proto.h pool2/proto.h --- cvs/proto.h Wed Feb 4 01:00:45 2004 +++ pool2/proto.h Thu Feb 5 18:49:59 2004 @@ -73,16 +73,18 @@ void show_flist_stats(void); int readlink_stat(const char *path, STRUCT_STAT *buffer, char *linkbuf); int link_stat(const char *path, STRUCT_STAT * buffer); void send_file_entry(struct file_struct *file, int f, unsigned short base_flags); -void receive_file_entry(struct file_struct **fptr, unsigned short flags, int f); -struct file_struct *make_file(char *fname, int exclude_level); +void receiv...