search for: total_read

Displaying 16 results from an estimated 16 matches for "total_read".

2007 Feb 07
3
Redirect --stats to STDERR.
...m(total_written));/ /- rprintf(FINFO,"Total bytes received: %s\n",/ /+ rprintf(FERROR,"Total bytes received: %s\n",/ / human_num(total_read));/ / }/ / if (verbose || do_stats) {/ / rprintf(FCLIENT, "\n");/ /- rprintf(FINFO,/ /+ rprintf(FERROR,/ /...
2016 Dec 25
1
System freeze if mount cifs share with option "hard", and samba server is not available
...c: 8: iov_base=ffff88003d4e3000 iov_len=4096 [ 3058.820508] fs/cifs/file.c: 9: iov_base=ffff8800109cb000 iov_len=4096 [ 3058.820510] fs/cifs/file.c: 10: iov_base=ffff88003b56b000 iov_len=4096 [ 3058.820512] fs/cifs/file.c: 11: iov_base=ffff880013bd6000 iov_len=4096 [ 3058.820515] fs/cifs/cifssmb.c: total_read=49216 buflen=49216 remaining=49152 [ 3058.820529] fs/cifs/cifssmb.c: cifs_readv_callback: mid=61459 state=4 result=0 bytes=49152 [ 3058.820531] fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release [ 3058.820546] fs/cifs/cifssmb.c: cifs_async_readv: offset=116178944 bytes=16384 [ 3058.820547...
2002 May 16
1
[patch] suggestions for -v option
...mp; recurse && !am_server; + return verbose > 1 && recurse && !am_server; } static void start_filelist_progress(char *kind) --- rsync-2.5.5/main.c.orig Wed Mar 27 06:10:44 2002 +++ rsync-2.5.5/main.c Tue May 14 16:38:06 2002 @@ -118,7 +118,7 @@ (double)stats.total_read); } - if (verbose || do_stats) { + if (verbose > 1 || do_stats) { rprintf(FINFO,"wrote %.0f bytes read %.0f bytes %.2f bytes/sec\n", (double)stats.total_written, (double)stats.total_read, --- rsync-2.5.5/generator.c.orig Mon Mar 25 06:54:31 2002 +++ rsync-...
2002 Jul 31
1
rsync: omit summary with a single -v
...am_server; } static void start_filelist_progress(char *kind) diff -r -X /home/roderick/.diff-exclude -u rsync-2.5.5.debian/main.c rsync-2.5.5/main.c --- rsync-2.5.5.debian/main.c Wed Mar 27 00:10:44 2002 +++ rsync-2.5.5/main.c Wed Jul 31 09:13:10 2002 @@ -118,7 +118,7 @@ (double)stats.total_read); } - if (verbose || do_stats) { + if (verbose > 1 || do_stats) { rprintf(FINFO,"wrote %.0f bytes read %.0f bytes %.2f bytes/sec\n", (double)stats.total_written, (double)stats.total_read, diff -r -X /home/roderick/.diff-exclude -u rsync-2.5.5.debian/rsync....
2003 Apr 08
2
[Patch] Require extra --stats to emit heap statistics
...rprintf(FINFO,"Total bytes written: %.0f\n", (double)stats.total_written); - rprintf(FINFO,"Total bytes read: %.0f\n\n", + rprintf(FINFO,"Total bytes read: %.0f\n", (double)stats.total_read); } if (verbose || do_stats) { - rprintf(FINFO,"wrote %.0f bytes read %.0f bytes %.2f bytes/sec\n", + rprintf(FINFO,"\nwrote %.0f bytes read %.0f bytes %.2f bytes/sec\n", (double)stats.total_written,...
2005 Jun 27
5
adding a new log-format escape
...break; + case 's': + if (!am_sender) { + b = stats.total_written - + initial_stats->total_written; + } else { + b = stats.total_read - + initial_stats->total_read; + } + strlcat(fmt, "02x", sizeof fmt); + for (j = 0; j < b; j++ ) { + snprintf(buf2 + j * 2, sizeof buf2, fmt, file-&g...
2004 Jan 06
2
[patch] making rsync less verbose
...17:10:19.000000000 +0100 @@ -32,6 +32,7 @@ extern int am_daemon; extern int verbose; extern int protocol_version; +extern int show_speedup; /* there's probably never more than at most 2 outstanding child processes, * but set it higher just in case. @@ -146,7 +147,7 @@ (double)stats.total_read); } - if (verbose || do_stats) { + if (show_speedup || do_stats) { rprintf(FINFO,"\nwrote %.0f bytes read %.0f bytes %.2f bytes/sec\n", (double)stats.total_written, (double)stats.total_read, --- rsync-2.6.0/options.c.orig 2003-12-30 19:16:25.000000000 +0100 +++ rsync-2.6....
2013 Apr 03
0
[PATCH] Btrfs-progs: add a free space cache checker to fsck
...max = 1 * 1024 * 1024 * 1024; @@ -696,6 +698,55 @@ out: return ret; } +int read_data_from_disk(struct btrfs_fs_info *info, void *buf, u64 offset, + u64 bytes, int mirror) +{ + struct btrfs_multi_bio *multi = NULL; + struct btrfs_device *device; + u64 bytes_left = bytes; + u64 read_len; + u64 total_read = 0; + int ret; + + while (bytes_left) { + read_len = bytes_left; + ret = btrfs_map_block(&info->mapping_tree, READ, offset, + &read_len, &multi, mirror, NULL); + if (ret) { + fprintf(stderr, "Couldn''t map the block %Lu\n", + offset); + return -E...
2019 Jun 29
0
[libnbd PATCH 6/6] examples: New example for strict read validations
...nge *remaining; +}; + +#define MAX_BUF (2 * 1024 * 1024) +static char buf[MAX_BUF]; + +/* Various statistics */ +static int total_data_chunks; +static int total_data_bytes; +static int total_hole_chunks; +static int total_hole_bytes; +static int total_chunks; +static int total_df_reads; +static int total_reads; +static int64_t total_bytes; +static int total_success; + +static int +read_chunk (void *opaque, const void *bufv, size_t count, uint64_t offset, + int *error, int status) +{ + struct data *data = opaque; + struct range *r, **prev; + + /* libnbd guarantees this: */ + assert (offset...
2001 Aug 22
1
@RSYNC EXIT / @RSYNC EOF
...s a problem + (start_socket_client), kludge_around_eof is True and we + just exit. + */ + + if (kludge_around_eof) + exit_cleanup (0); + else { + rprintf (FERROR, + "%s: connection unexpectedly closed " + "(%.0f bytes read so far)\n", + RSYNC_NAME, (double)stats.total_read); + + exit_cleanup (RERR_STREAMIO); + } +} -/* + +static void die_from_readerr (int err) +{ + /* this prevents us trying to write errors on a dead socket */ + io_multiplexing_close(); + + rprintf(FERROR, "%s: read error: %s\n", + RSYNC_NAME, strerror (err)); + exit_cleanup(RERR_S...
2010 May 03
1
3.1: bug in --stats
...Total bytes sent: 69219 Total bytes received: 184 sent 69219 bytes received 184 bytes 138806.00 bytes/sec total size is 327945064379 speedup is 4725228.94 BTW, why aren't these fields struct stats { int64 total_size; int64 total_transferred_size; int64 total_written; int64 total_read; int64 literal_data; int64 matched_data; of type size_t?
2004 Feb 06
4
memory reduction
...@@ -136,9 +136,7 @@ struct file_list *create_flist_from_batc exit_cleanup(1); } - batch_flist = new(struct file_list); - if (!batch_flist) - out_of_memory("create_flist_from_batch"); + batch_flist = flist_new(WITH_HLINK, "create_flist_from_batch"); save_read = stats.total_read; save_pv = protocol_version; @@ -153,9 +151,9 @@ struct file_list *create_flist_from_batc for (i = 0; (flags = read_byte(f)) != 0; i++) { if (protocol_version >= 28 && (flags & XMIT_EXTENDED_FLAGS)) flags |= read_byte(f) << 8; - receive_file_entry(&batch_flist-&...
2004 May 29
1
[patch] Filename conversion
...1227,9 @@ struct file_list *send_file_list(int f, write_batch_flist_info(flist->count, flist->files); } + if (!am_server) + cleanup_fname_convert(); + if (verbose > 3) output_flist(flist); @@ -1239,6 +1252,9 @@ struct file_list *recv_file_list(int f) start_read = stats.total_read; + if (!am_server) + init_fname_convert(); + flist = flist_new(WITH_HLINK, "recv_file_list"); flist->count = 0; @@ -1293,6 +1309,9 @@ struct file_list *recv_file_list(int f) } } + if (!am_server) + cleanup_fname_convert(); + if (verbose > 3) output_flist(flist)...
2004 Jul 12
2
[PATCH] Batch-mode rewrite
...nknown"; int select_timeout = SELECT_TIMEOUT; *************** *** 674,679 **** --- 676,688 ---- total += ret; } + if (write_batch && !am_sender) { + if (write(batch_fd, buffer, total) < 0) { + close(batch_fd); + exit_cleanup(RERR_FILEIO); + } + } + stats.total_read += total; } *************** *** 951,956 **** --- 960,972 ---- exit_cleanup(RERR_PROTOCOL); } + if (write_batch && am_sender) { + if (write(batch_fd, buf, len) < 0) { + close(batch_fd); + exit_cleanup(RERR_FILEIO); + } + } + if (!io_buffer || fd != multiplex...
2019 Jun 29
19
[libnbd PATCH 0/6] new APIs: aio_in_flight, aio_FOO_notify
I still need to wire in the use of *_notify functions into nbdkit to prove whether it makes the code any faster or easier to maintain, but at least the added example shows one good use case for the new API. Eric Blake (6): api: Add nbd_aio_in_flight generator: Allow DEAD state actions to run generator: Allow Int64 in callbacks states: Prepare for aio notify callback api: Add new
2007 Sep 22
0
rsync build on IA64 using icc
...ATHLEN]; ^ main.c(72): remark #1419: external declaration in primary source file extern struct filter_list_struct server_filter_list; ^ main.c(260): remark #981: operands are evaluated in unspecified order human_num(total_written), human_num(total_read), ^ main.c(258): remark #981: operands are evaluated in unspecified order rprintf(FINFO, ^ main.c(285): remark #981: operands are evaluated in unspecified order am_daemon ? "daemon " : "", who_am_i());...