Displaying 9 results from an estimated 9 matches for "stat_errno".
Did you mean:
set_errno
2004 Sep 02
1
--partiall-dir not behaving like it ought too
Hi,
I have awaited the new release inorder to use the -"-partial-dir" option.
But after testing it seems that it does not behave like it says on the tin.
It will correctly move and rename the interrupted file to the declared
directory, but it will not
attempt to use it when the client attempts to rsync the file again.
I have a Solaris 8 box running as a server (Matthew), and another
2015 Nov 28
0
[PATCH] ignore-non-existing-directory: add variant of ignore-non-existing
...+extern int ignore_non_existing_dirs;
extern int want_xattr_optim;
extern int inplace;
extern int append_mode;
@@ -1323,22 +1324,28 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
return;
}
- if (ignore_non_existing > 0 && statret == -1 && stat_errno == ENOENT) {
+ if ((ignore_non_existing > 0 || ignore_non_existing_dirs > 0) && statret == -1 && stat_errno == ENOENT) {
+ int actually_ignore = 0;
if (is_dir) {
if (is_dir < 0)
return;
+ actually_ignore = 1;
skip_dir = file;
file->flags |= FLAG_MI...
2016 Jan 16
0
[PATCH v2, resend] ignore-non-existing-directory: add variant of ignore-non-existing
...+extern int ignore_non_existing_dirs;
extern int want_xattr_optim;
extern int inplace;
extern int append_mode;
@@ -1323,22 +1324,28 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
return;
}
- if (ignore_non_existing > 0 && statret == -1 && stat_errno == ENOENT) {
+ if ((ignore_non_existing > 0 || ignore_non_existing_dirs > 0) && statret == -1 && stat_errno == ENOENT) {
+ int actually_ignore = 0;
if (is_dir) {
if (is_dir < 0)
return;
+ actually_ignore = 1;
skip_dir = file;
file->flags |= FLAG_MI...
2015 Nov 28
0
[PATCH v2] ignore-non-existing-directory: add variant of ignore-non-existing
...+extern int ignore_non_existing_dirs;
extern int want_xattr_optim;
extern int inplace;
extern int append_mode;
@@ -1323,22 +1324,28 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
return;
}
- if (ignore_non_existing > 0 && statret == -1 && stat_errno == ENOENT) {
+ if ((ignore_non_existing > 0 || ignore_non_existing_dirs > 0) && statret == -1 && stat_errno == ENOENT) {
+ int actually_ignore = 0;
if (is_dir) {
if (is_dir < 0)
return;
+ actually_ignore = 1;
skip_dir = file;
file->flags |= FLAG_MI...
2010 Jul 09
8
DO NOT REPLY [Bug 7565] New: --check-point=<TIME> +options.c.patch +generator.c.patch
...trib.st_mtime );
+ }
+ */
+ }
+
if (verbose > 2) {
rprintf(FINFO, "delete_item(%s) mode=%o flags=%d\n",
fbuf, (int)mode, (int)flags);
***************
*** 1369,1374 ****
--- 1396,1409 ----
stat_errno = errno;
}
+ if ( (check_point>=0)&&(statret != 0)&&(check_point > file->modtime) )
{
+ if (verbose > 0) {
+ rprintf(FINFO, is_dir ? "checkpoint: old directory
(%s)" : "checkpoint: old item (%s), creation...
2005 Apr 10
1
PATCH: cosmetic fix to output with --existing -vv
...ot;
not creating new directory "newdir/subdir"
This following simple patch fixes this.
Paul Slootman
--- generator.c.orig 2005-04-10 21:15:07.000000000 +0200
+++ generator.c 2005-04-10 21:15:08.000000000 +0200
@@ -665,7 +665,8 @@
if (only_existing && statret == -1 && stat_errno == ENOENT) {
/* we only want to update existing files */
if (verbose > 1) {
- rprintf(FINFO, "not creating new file \"%s\"\n",
+ rprintf(FINFO, "not creating new %s \"%s\"\n",
+ S_ISDIR(file->mode) ? "direct...
2005 Oct 20
1
[Bug 3198] rsyncing a file to a dest path where dirname(path) is a file quietly fails
...is hidden unless -vv is
specified, which is clearly wrong (as you discovered). It is easy to patch this
fix into any version of rsync by looking for the stat() error in generator.c and
removing the "if (verbose > 1)" check. The code will then look like this:
rsyserr(FERROR, stat_errno, "recv_generator: failed to stat %s",
full_fname(fname));
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
2008 Mar 19
0
[PATCH] Unsnarl missing_below/dry_run logic.
...gt; 1 || (dry_missing_dir && is_below(file, dry_missing_dir))) {
+ parent_is_dry_missing:
if (fuzzy_dirlist) {
flist_free(fuzzy_dirlist);
fuzzy_dirlist = NULL;
@@ -1307,14 +1312,18 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
statret = -1;
stat_errno = ENOENT;
} else {
+ dry_missing_dir = NULL;
const char *dn = file->dirname ? file->dirname : ".";
if (parent_dirname != dn && strcmp(parent_dirname, dn) != 0) {
if (relative_paths && !implied_dirs
- && do_stat(dn, &sx.st) < 0
- &...
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.