search for: read_siz

Displaying 20 results from an estimated 26 matches for "read_siz".

Did you mean: read_size
2005 Sep 20
2
Nulls instead of data
In short: Platform: linux with 2.4 kernel Version: rsync 2.6.6 Command line: rsync266 -av -W --bwlimit=1 /mnt/somedir/rsync-2.6.6.tar.gz ./ Destination: local disk Source: file on a smbfs mounted filesystem; share is exported on a NT 4.0 workstation over a very slow and unstable link Result: Rsync completes operation with no special message, but the resulting file is damaged, large
2003 Aug 24
1
readdir() and read() errors ignored
...================================================== RCS file: /cvsroot/rsync/fileio.c,v retrieving revision 1.6 diff -u -r1.6 fileio.c --- fileio.c 22 May 2003 23:24:44 -0000 1.6 +++ fileio.c 23 Aug 2003 23:03:01 -0000 @@ -191,7 +191,10 @@ } if ((nread=read(map->fd,map->p + read_offset,read_size)) != read_size) { - if (nread < 0) nread = 0; + if (nread < 0) { + rprintf(FERROR,"read failed in map_ptr\n"); + exit_cleanup(RERR_FILEIO); + } /* the best we can do is zero the buffer - the file has changed mid transfer! */ memset(map->p+read_offset+n...
2004 Oct 27
1
Fix for Theora example encoder
...{ fprintf(stderr,"The WAV file %s is in a compressed format; " "can't read it.\n",f); @@ -195,6 +199,17 @@ exit(1); } + /* read past extra header bytes */ + while(extra_hdr_bytes){ + int read_size = (extra_hdr_bytes > sizeof(buffer)) ? sizeof(buffer) : extra_hdr_bytes; + ret = fread(buffer, 1, read_size, test); + + if (ret < read_size) + goto riff_err; + else + extra_hdr_bytes -= read_size; + } + /* Now, al...
2017 Oct 11
0
[PATCH miniexpect 2/2] Add debugging capability at runtime.
...d %d\n", r); -#endif + if (h->debug_fp) + fprintf (h->debug_fp, "DEBUG: poll returned %d\n", r); if (r == -1) return MEXP_ERROR; @@ -318,9 +314,8 @@ mexp_expect (mexp_h *h, const mexp_regexp *regexps, int *ovector, int ovecsize) h->alloc += h->read_size; } rs = read (h->fd, h->buffer + h->len, h->read_size); -#if DEBUG - fprintf (stderr, "DEBUG: read returned %zd\n", rs); -#endif + if (h->debug_fp) + fprintf (h->debug_fp, "DEBUG: read returned %zd\n", rs); if (rs == -1) { /* A...
2003 Aug 15
2
Inadequate error checking in rsync 2.5.5
I'm using rsync to mirror files from a Windows XP machine mounted via smbfs. Apparently I have something configured wrong as I get a "permisson denied" error accessing some of the files on the smbfs mount with cp, od, etc. However, rsync produces no error messages on these files. It happily creates files in the target directory that are the right size, but filled with null bytes.
2002 Aug 05
5
[patch] read-devices
...indow is saved in the map->p* members. + * A subrange of this window corresponding to the request is + * saved in the map->m_* members, for the use of the caller. */ +void map_ptr(struct map_struct *map,OFF_T offset,int len) { - int nread; OFF_T window_start, read_start; int window_size, read_size, read_offset; + if (verbose>3) rprintf(FINFO, "#ET# map_ptr(%d,%.0f,%.0f)\n",(int)map,(double)offset,(double)len); - if (len == 0) { - return NULL; + /* produce a NULL result if past (currently known) end of file */ + if (len == 0 || offset>=map->file_size) { + map->m_ptr...
2017 Oct 11
5
[PATCH miniexpect 0/2] Add debugging capability at runtime.
Currently you can only turn on miniexpect debugging by recompiling. These two patches make it configurable at runtime, and also improve the usefulness of the output. Rich.
2012 Aug 19
1
local -> local file copy question
In looking at source, I started at fileio and found write routines but no read routines. I found a 'WRITE_SIZE' (32K), but no 'READ_SIZE' -- is that' what the MAX_MAP_SIZE (256K)? I would like to make so that rsync can use larger I/O sizes if (maybe a command line option?).... The map routine led me to receiver -- where it looks like it is responsible for reading the file. A comment says: "Receiver process runs on t...
2011 May 29
22
[Bug 8177] New: Problems with big sparsed files
https://bugzilla.samba.org/show_bug.cgi?id=8177 Summary: Problems with big sparsed files Product: rsync Version: 3.0.8 Platform: x64 OS/Version: Linux Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: joluinfante at gmail.com
2006 Jan 14
3
Reducing echo on FXS port
Hello everybody, I am sorry to bring this up again if this kind of echo issue has ever discussed. Phone2 in below call path experiences quite annoying echo: Phone1 --> FXS (TDM400P) --> Asterisk --> SIP GW --> PSTN --> Phone2 It is annoying as on phone2, we can hear the whole words we say with the level of maybe 25% of the original sound. I can reduce the echo to maximum with
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...i = recv_fd(local_socket); + rprintf(FINFO,"received file descriptor %d\n", i); + if (i <= 0) + offset = -1; + write_buf(local_socket, (char *)&offset, sizeof(offset)); + if (i <= 0) + return 0; + f_in = -i; + } + if (fd_r >= 0 && size_r > 0) { int32 read_size = MAX(sum.blength * 2, 16*1024); mapbuf = map_file(fd_r, size_r, read_size, sum.blength); @@ -231,11 +245,18 @@ stats.literal_data += i; cleanup_got_literal = 1; - sum_update(data, i); + if (f_in >= 0) + /* no need for md4 during fast copy -goldor */ + sum_update(data, i)...
2005 May 07
1
Echo Madness
...ctically every different configuration possible, and this seems to yield the best result for me, although not good enough for a production environment (I hate echo). Further reading on the mailing list and wiki suggested I should try tweaking a) In chan_zap.c - change the following line: #define READ_SIZE 160 to #define READ_SIZE 16 And In zapata.conf adding jitterbuffers=40 (and recompile) This did not have any noticeable effect, except increase CPU load. b) In zconfig.h, uncomment DAGGRESSIVE_SUPPRESSOR (and recompile) This made audio quality worse, and echo unchanged. My TDM400P card, which...
2004 Aug 02
4
reducing memmoves
...our desired window */ if (offset > 2*CHUNK_SIZE) { - window_start = offset - 2*CHUNK_SIZE; - window_start &= ~((OFF_T)(CHUNK_SIZE-1)); /* assumes power of 2 */ + window_start = offset; } else { window_start = 0; } @@ -212,6 +212,7 @@ read_offset = read_start - window_start; read_size = window_size - read_offset; memmove(map->p, map->p + (map->p_len - read_offset), read_offset); + total_bytes_memmoved += read_offset; } else { read_start = window_start; read_size = window_size;
1999 Jun 15
0
FIX for smbtar zero length files... (Cont :)
...I let it try 5 times just to be sure. Thanks to the Samba team! Patch is below: ----- CUT ---------- --- samba-2.0.3/source/client/clitar.c.orig Sat Feb 27 16:08:59 1999 +++ samba-2.0.3/source/client/clitar.c Tue Jun 15 08:35:40 1999 @@ -629,6 +629,9 @@ char data[65520]; int read_size = 65520; int datalen=0; + /* Zero Byte Error retry setup */ + int zero_retry=0; + int max_zero_retry=5; struct timeval tp_start; GetTimeOfDay(&tp_start); @@ -717,6 +720,8 @@ /* write a tar header, don't bother with mode - just set to 100644 */ writetarheader(tarh...
2012 Oct 01
9
How to remove the call waiting tone without disabling callwaiting?
Hi, The call waiting tone is very annoying (you hear nothing while it plays the beep). I need callwaiting because of the queues (the phone has to ring as soon as you hangup) but I want to remove the beep on my dahdi channels, how can I do? Thanks, Niccol? -- http://www.linuxsystems.it
2002 Dec 20
1
smbclient and large file support
...ther with mode - just set to 100644 */ @@ -719,7 +721,7 @@ while (nread < finfo.size && !close_done) { - DEBUG(3,("nread=%d\n",nread)); + DEBUG(3,("nread=%.0f\n",(double)nread)); datalen = cli_read(cli, fnum, data, nread, read_size); @@ -736,7 +738,7 @@ if (nread > finfo.size) { datalen -= nread - finfo.size; - DEBUG(0,("File size change - truncating %s to %d bytes\n", finfo.name, (int)finfo.size)); + DEBUG(0,("File size change - truncating %s to %.0f bytes\n", finfo.name, (doub...
2019 Jul 09
7
[PATCH 0/5] Split virt-p2v in own repository
Hi, as it was already discussed on this list, here it is my attempt in splitting virt-p2v in an own repository. Sadly there are things that must be copied from libguestfs, as it cannot be avoided. The approach taken was to run a script (will send separately) to just get the "p2v" subdirectory with its history as own repository, and then add in few followup commits all the bits needed
2009 Oct 19
2
Old application very slow
Hi, This weekend I migrated a samba-server to new hardware and software : I'm running samba 3.2.7-11.3.2 on Opensuse 11.1. Everything works fine I believe except for an old DOS-application, written in Clipper. It's too slow to be usable. I tried to debug this but I'm stuck. I put the loglevel to 10, but I can't see anything wrong. I first added to veto oplock files :
2003 Dec 01
0
No subject
...******** + get a file from rname to lname + ****************************************************************************/ +static void do_reget(char *rname,char *lname) +{ + int handle=0,fnum; + BOOL newhandle = False; + char *data; + struct timeval tp_start; + int read_size = io_bufsize; + uint16 attr; + size_t size; + off_t nread = 0; + off_t hashbytes = HASHBYTES; + + GetTimeOfDay(&tp_start); + + if (lowercase) { + strlower(lname); + } + + fnum = cli_open(cli, rname, O_RDONLY, DENY_NONE); + + i...
2015 Mar 11
0
[PATCH] pmu/gk20a: PMU boot support.
...return 0; > +} > + > +static bool pmu_read_message(struct pmu_desc *pmu, struct pmu_queue *queue, > + struct pmu_msg *msg, int *status) > +{ > + struct nvkm_pmu *ppmu = (void *)nvkm_pmu((void *) > + impl_from_pmu(pmu)); > + u32 read_size, bytes_read; > + int err; > + > + *status = 0; > + > + if (pmu_queue_is_empty(pmu, queue)) > + return false; > + > + err = pmu_queue_open_read(pmu, queue); > + if (err) { > + nv_error(ppmu, > +...