search for: io_error

Displaying 20 results from an estimated 54 matches for "io_error".

Did you mean: i_error
2005 Dec 14
2
Patch: ioloop using kqueue/kevent for FreeBSD
...; + +#ifndef INITIAL_BUF_SIZE +# define INITIAL_BUF_SIZE 128 +#endif + + +struct ioloop_handler_context { + int kq; + size_t evbuf_size; + struct kevent *evbuf; + + size_t fds_size; + struct fdrecord *fds; +}; + +struct fdrecord { + /* IO_READ | IO_WRITE | IO_ERROR */ + unsigned char mode : 3; +}; + + +void io_loop_handler_init(struct ioloop *ioloop) +{ + struct ioloop_handler_context *ctx; + + ioloop->handler_context = ctx = + p_new(ioloop->pool, struct ioloop_handler_context, 1); + ctx->evbuf_size = INITIA...
2006 May 09
2
Fix for the kevent "Unrecognized event" problem.
The attached patch should fix the problem with dying imap on "Unrecognized event". The problem is that when we register a handle for IO_ERROR only, we still can get readable/writable event without EV_EOF being set. This case was not handled. -- Vaclav Haisman -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: io-kq.diff URL: <http://dovecot.org/pipermail/dovecot/attachments/20060509...
2002 Jun 17
1
make_file() could ignore ENODEV errors (from afs filesystem)
Hi, Would it be acceptable to patch make_file() in flist.c to ignore any ENODEV's and not mark them as io_error=1? In afs, a mountpoint to a volume which does not exist gives an ENODEV. As such, it can't be copied, so should (or could) just be ignored? The io_error isn't terminal, but it does disable the delete function and you end up with an exit code of 23. regards |<evin -- Kevin J Walte...
2004 Jan 19
1
File that "vanish"es between readdir and stat is not IO error
Using rsync 2.6.0 with --verbose and doing a pull. >?receiving file list ... readlink "{FILENAME}" failed: >?No such file or directory >?done >?IO error encountered - skipping file deletion The file was a temporary file that was being deleted just as the rsync was run. So while the file list was being built, it was there when the directory was read but had vanished by the
2004 Jan 07
1
2.6.0 "file has vanished" fails to set exit code on local client
...ifferent exit code when the only 'errors' were from files that disappeared between the building of the file list and the actual transfer of files. But if the client is local and the server is remote, IOERR_VANISHED gets set on the remote server, but is never passed to the local client (the io_error value is passed at the end of the file list, not during or after the file transfer phase). The old scheme used FERROR for the ""send_files failed to open" message. The new scheme uses FINFO for the "file has vanished:" message. The client receiver sets log_got_error when...
2005 Dec 15
2
Patch: More of kqueue() support.
Hi, the attached patch contains these changes: 2005-12-15 22:18 Vaclav Haisman <v.haisman@sh.cvut.cz> * src/lib/ioloop-kqueue.c: Fix IO_ERROR behaviour. * src/lib/ioloop-notify-kqueue.c: New file. * configure.in: Improve kqueue detection and handling. Cleanup. The configure.in changes that are not related to kqueue are there to make autoconf 2.59, automake 1.9.6 and libtool 1.5.20 are happy. The directory change notification is no...
2007 Nov 10
3
Funny issue with chroot + symlink outside chroot
..., NULL) == 0 - && S_ISLNK(st.st_mode)) { + if ((copy_links && x_lstat(thisname, &st, NULL) == 0 + && S_ISLNK(st.st_mode)) || x_stat(thisname, &st, NULL) != 0) { io_error |= IOERR_GENERAL; rprintf(FERROR, "symlink has no referent: %s\n", full_fname(thisname)); Summary: - should "vanished" message be report as INFO instead ERROR ? - can we detected --copy-unsafe-symlink for...
2002 May 04
1
A simpler move-files patch
...e (directories are not removed). dit(bf(--force)) This options tells rsync to delete directories even if they are not empty when they are to be replaced by non-directories. This Index: sender.c --- sender.c 2002/04/09 06:03:50 1.17 +++ sender.c 2002/05/04 19:20:29 @@ -26,6 +26,7 @@ extern int io_error; extern int dry_run; extern int am_server; +extern int move_files; /** @@ -184,6 +185,7 @@ rprintf(FERROR,"send_files failed to open %s: %s\n", fname,strerror(errno)); free_sums(s); + file->flags |= FLAG_NO_DELETE; continue; } @@ -265,6 +267,7 @@...
2006 Oct 30
0
File Store permissions
...06:47.000000000 -0600 @@ -51,7 +51,7 @@ static void fs_touch(Store *store, char int f; char path[MAX_FILE_PATH]; join_path(path, store->dir.path, filename); - if ((f = creat(path, S_IRUSR | S_IWUSR)) == 0) { + if ((f = creat(path, store->file_mode)) == 0) { RAISE(IO_ERROR, "couldn''t create file %s: <%s>", path, strerror(errno)); } @@ -252,7 +252,7 @@ static OutStream *fs_new_output(Store *s { char path[MAX_FILE_PATH]; int fd = open(join_path(path, store->dir.path, filename), - O_WRONLY | O_C...
2002 Mar 28
1
rsync raising an IO error for an excluded file
...memset((char *) &st, 0, sizeof(st)); if (check_exclude_file(f, fname, &st)) { /* file is excluded anyway, ignore silently */ return NULL; } } io_error = 1; rprintf(FERROR, "readlink %s: %s\n", fname, strerror(save_errno)); return NULL; } Shouldn't/couldn't the "ignore silently if excluded" be specified less strictly to cover the above "permission den...
2007 Aug 01
0
[PATCH] handle dir entries with zero length(!)
...3:32:49.000000000 +0200 @@ -1462,6 +1462,20 @@ if (dname[0] == '.' && (dname[1] == '\0' || (dname[1] == '.' && dname[2] == '\0'))) continue; + if (dname[0] == '\0') { + char replaced = 0; + io_error |= IOERR_GENERAL; + if (len > 0) { + replaced = fbuf[len+1]; + fbuf[len+1] = '\0'; + } + rprintf(FINFO, + "cannot send file with empty name %s\n", + full_fname(fbuf)); + if (replace...
2006 Apr 03
30
DO NOT REPLY [Bug 3653] New: Silence 'vanished files' messages
https://bugzilla.samba.org/show_bug.cgi?id=3653 Summary: Silence 'vanished files' messages Product: rsync Version: 2.6.8 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: count-samba@flatline.de
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.
2003 Aug 07
1
[patch] New RC to differentiate partial xfers from files that get deleted before they're xfered
All, During development of a backup solution with rsync I experienced some failed backups because of RC 23, partial transfer. These were because the application using the data I was backing up, was still active, and had deleted a file inbetween rsync compiling the file list and then transfering the file. After some feedback from Wayne Davidson and JW Schultz suggesting the solution to this,
2012 May 03
1
[PATCH] Btrfs: fix crash in scrub repair code when device is missing
...or_num = mirror_index + 1; page->page = alloc_page(GFP_NOFS); @@ -1042,6 +1043,12 @@ static int scrub_recheck_block(struct btrfs_fs_info *fs_info, struct scrub_page *page = sblock->pagev + page_num; DECLARE_COMPLETION_ONSTACK(complete); + if (page->bdev == NULL) { + page->io_error = 1; + sblock->no_io_error_seen = 0; + continue; + } + BUG_ON(!page->page); bio = bio_alloc(GFP_NOFS, 1); if (!bio) -- 1.7.10.1.362.g242cab3 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.or...
2001 Sep 30
0
Exclude sets generated with -C
...patterns in ./.cvsignore, since it may contain bogus + entries that actually refer to CVS controlled files. */ + if (strlen(fname) + strlen("CVS/Entries") <= MAXPATHLEN-1) { + strcpy(p,"CVS/Entries"); + add_cvs_entries(fname,&local_exclude_list); + } else { + io_error = 1; + rprintf(FINFO,"cannot scan CVS/Entries in long-named directory %s\n",fname); + } + + /* Add the exclude patterns specified in the ./.cvsignore file + if it exists. */ if (strlen(fname) + strlen(".cvsignore") <= MAXPATHLEN-1) { strcpy(p,".cvsignore&q...
2003 Aug 24
1
readdir() and read() errors ignored
...)) { char *dname = d_name(di); if (dname[0] == '.' && (dname[1] == '\0' || (dname[1] == '.' && dname[2] == '\0'))) continue; strlcpy(p, dname, MAXPATHLEN - l); send_file_name(f, flist, fname, recurse, 0); + } + if ( errno ) { + io_error = 1; + rprintf(FERROR, "readdir(%s): %s\n", dir, strerror(errno)); + /* Don't return yet; we want to clean up first */ } if (local_exclude_list) Index: rsync.c =================================================================== RCS file: /cvsroot/rsync/rsync.c,v retrieving rev...
2002 Sep 10
0
[PATCH] Add --preserve-atime switch to rsync
...t;st_uid,st2->st_gid)!=0) { rprintf(FERROR,"make_bak_dir chown %s : %s\n",fullpath,strerror(errno)); }; *** sender.c@@/main/original/1 Tue Apr 9 14:03:44 2002 --- sender.c Fri Apr 12 11:09:52 2002 *************** *** 26,33 **** extern int io_error; extern int dry_run; extern int am_server; - /* receive the checksums for a buffer */ --- 26,36 ---- extern int io_error; extern int dry_run; extern int am_server; + extern int preserve_atime; /* receive the checksums for a buffer */ *************** *** 184,189...
2004 Jul 12
2
[PATCH] Batch-mode rewrite
...flags |= FLAG_TOP_DIR; - if (file->basename[0]) { flist->files[flist->count++] = file; send_file_entry(file, f, base_flags); --- 950,955 ---- *************** *** 1301,1313 **** * protocol version 15 */ recv_uid_list(f, flist); - if (!read_batch) { /* Recv the io_error flag */ if (lp_ignore_errors(module_id) || ignore_errors) read_int(f); else io_error |= read_int(f); ! } } if (verbose > 3) --- 1298,1309 ---- * protocol version 15 */ recv_uid_list(f, flist); /* Recv the io_error flag */ if (lp_ignore_errors(...
2004 Jan 13
3
Progress reporting: N more to check
...7,6 +477,8 @@ struct stats { int flist_size; int num_files; int num_transferred_files; + int num_untransferred_files; + int current_file_index; }; --- sender.c 10 Jan 2004 20:16:18 -0000 1.32 +++ sender.c 13 Jan 2004 06:19:53 -0000 @@ -25,6 +25,7 @@ extern struct stats stats; extern int io_error; extern int dry_run; extern int am_server; +extern int do_progress; /** @@ -155,6 +156,9 @@ void send_files(struct file_list *flist, file = flist->files[i]; + if (phase == 0) + stats.num_untransferred_files += i - stats.current_file_index - 1; + stats.current_file_index = i;...