search for: nread

Displaying 20 results from an estimated 166 matches for "nread".

Did you mean: read
2004 Nov 16
2
win32-file: nread and nwrite
Hi all, I''ve got alpha versions of nread and nwrite now added to the win32-file class in CVS. They seem to work fine, although I''ve noticed one bug in the File#read method. Let''s say we have a text file with "hello world" in it. If I call nread with no arguments, it works fine: fh = File.nopen("C:\\tes...
2002 Dec 20
1
smbclient and large file support
...*******/ -static void oct_it (long value, int ndgs, char *p) +static void oct_it (SMB_BIG_UINT value, int ndgs, char *p) { /* Converts long to octal string, pads with leading zeros */ @@ -621,7 +621,7 @@ static void do_atar(char *rname,char *lname,file_info *finfo1) { int fnum; - uint32 nread=0; + SMB_BIG_UINT nread=0; char ftype; file_info2 finfo; BOOL close_done = False; @@ -643,6 +643,7 @@ finfo.mtime = finfo1 -> mtime; finfo.atime = finfo1 -> atime; finfo.ctime = finfo1 -> ctime; + finfo.name = finfo1 -> name; } else { finfo.size...
2004 Nov 17
1
nread and nwrite optimizations
Hi all, So far, so good. Things seem to work just fine and, in the case of nread, I am getting incredible performance. I can''t tell if this is due to some kind of caching, however. Anyway, there a couple of things I want to work out yet. The first is File#nread and Really Big Files. I created a 500 mb text file and sucked it into memory using Ruby''s File#r...
2003 Aug 24
1
readdir() and read() errors ignored
...------------ Index: fileio.c =================================================================== 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 mi...
2008 Jul 05
4
iostat and monitoring
Hi gurus, I like zpool iostat and I like system monitoring, so I setup a script within sma to let me get the zpool iostat figures through snmp. The problem is that as zpool iostat is only run once for each snmp query, it always reports a static set of figures, like so: root at exodus:snmp # zpool iostat -v capacity operations bandwidth pool used avail read
1999 Sep 30
0
SMBTAR Not Backing up Files
...has solved a problem like this with SMBTAR, I would be interested in hearing from you. Thanks in advance. Errors Writing Tar to Tape: 593920 (21481.5 kb/s) \Tomh\Software\aix.lum\ifor_ls.msg.ko_KR Error writing to tar file - No such device or address Didn't get entire file. size=596992, nread=0 Error writing tar file - No such device or address 596992 (14575.0 kb/s) \Tomh\Software\aix.lum\ifor_ls.msg.pt_BR Error writing to tar file - No such device or address Didn't get entire file. size=521216, nread=0 Error writing tar file - No such device or address 521216 (16966.7 kb/s)...
2004 Jan 14
1
signing failures during smbclient tar operation: SMB signature check failed
...do_atar(673) file \home\faculty\bryant\bryantback-brblt\Images\backups\backup20010502.zip attrib 0x80 [2004/01/14 15:05:10, 3] client/clitar.c:do_atar(686) getting file \home\faculty\bryant\bryantback-brblt\Images\backups\backup20010502.zip of size 15593375 bytes as a tar file backup20010502.zipnread=0 [2004/01/14 15:05:10, 3] client/clitar.c:do_atar(693) nread=65520 [2004/01/14 15:05:10, 3] client/clitar.c:do_atar(693) nread=131040 [2004/01/14 15:05:10, 3] client/clitar.c:do_atar(693) nread=196560 [2004/01/14 15:05:10, 3] client/clitar.c:do_atar(693) nread=262080 [snip] [2004/01/14 1...
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
2004 Jan 09
0
Samba 2.2.8a and HP-UX 11.11 (11i)
...04 totdata=40 [2004/01/09 15:57:11, 3] smbd/process.c:process_smb(846) Transaction 59274 of length 63 [2004/01/09 15:57:11, 3] smbd/process.c:switch_message(685) switch message SMBreadX (pid 10467) [2004/01/09 15:57:11, 3] smbd/reply.c:send_file_readX(2581) send_file_readX fnum=11677 max=4096 nread=4096 [2004/01/09 15:57:11, 3] smbd/process.c:process_smb(846) Transaction 59275 of length 63 [2004/01/09 15:57:11, 3] smbd/process.c:switch_message(685) switch message SMBreadX (pid 10467) [2004/01/09 15:57:11, 3] smbd/reply.c:send_file_readX(2581) send_file_readX fnum=11677 max=2784 nread=27...
1998 Oct 08
0
readbraw vs. readX
...cket at line 1391 cmd=45 (SMBopenX) eclass=1 ecode=32 error string = Permission denied 1998/10/08 13:50:33 Transaction 20 of length 55 switch message SMBreadbraw (pid 33994) Skipping become_user - already user chdir to /u/axs 1998/10/08 13:50:33 readbraw fnum=26 cnum=75 start=4825088 max=4096 min=0 nread=4096 transfer_file 0 (head=4100) called 1998/10/08 13:50:33 Transaction 21 of length 55 switch message SMBreadbraw (pid 33994) Skipping become_user - already user 1998/10/08 13:50:33 readbraw fnum=26 cnum=75 start=4829184 max=4096 min=0 nread=4096 transfer_file 0 (head=4100) called 1998/10/08 13:...
2005 Mar 02
0
Still having trouble with slow opening of printer properties
...6:09, 3] smbd/process.c:switch_message(887) switch message SMBreadX (pid 6856) conn 0x839a388 [2005/03/02 19:16:09, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 103) - sec_ctx_stack_ndx = 0 [2005/03/02 19:16:09, 3] smbd/reply.c:send_file_readX(2154) send_file_readX fnum=7066 max=256 nread=256 [2005/03/02 19:16:09, 3] smbd/process.c:process_smb(1092) Transaction 3387 of length 63 [2005/03/02 19:16:09, 3] smbd/process.c:switch_message(887) switch message SMBreadX (pid 6856) conn 0x839a388 [2005/03/02 19:16:09, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 103) - sec_ctx...
2000 Feb 10
0
smbclient: invalid mid from server! ???
...ry \user\ received 6 entries (eos=1 resume=0) directory \user\Dellnitz\ received 18 entries (eos=1 resume=0) dos_clean_name [\user\Dellnitz\Antritt.ppt] file \user\Dellnitz\Antritt.ppt attrib 0x80 getting file \user\Dellnitz\Antritt.ppt of size 9385472 bytes as a tar file Antritt.pptnread=0 [...] nread=9303840 nread=9369360 9385472 ( 2355.0 kb/s) \user\Dellnitz\Antritt.ppt (2354.96 kb/s) (average 2354.96 kb/s) dos_clean_name [\user\Dellnitz\Bonn.ppt] code 0 opening remote file \user\Dellnitz\Bonn.ppt (\user\Dellnitz\) dos_clean_name [\user\Dellnitz\Bonn_2.ppt] file \user\Dellnitz...
2008 Sep 11
3
ZFS Crypto [Prelim] Codereview
...cs11_read_data() scares me in that it may poorly-handle some hard-to-debug EOF (possibly temporary) EOD cases (I''m easily scared). Given this new code: 112 /* reading from special file may need some coaxing * . . . 117 for (/* */; left > 0; marker += nread, left -= nread) { 118 /* keep reading it''s going well */ 119 nread = read(fd, marker, left); 120 if (nread > 0 || (nread == 0 && errno == EINTR)) 121 continue; 122 123...
2003 Dec 01
0
No subject
...message SMBclose (pid 1511) --- After the 4 tries, it starts reading at 18:23:41, one second later -- [2000/08/01 18:23:41, 3] smbd/process.c:switch_message(448) switch message SMBreadX (pid 1511) [2000/08/01 18:23:41, 3] smbd/reply.c:reply_read_and_X(2322) readX fnum=4401 min=61440 max=61440 nread=61440 [2000/08/01 18:23:41, 3] smbd/process.c:process_smb(618) Transaction 255 of length 63 [2000/08/01 18:23:41, 3] smbd/process.c:switch_message(448) switch message SMBreadX (pid 1511) --- It transfers in a pattern I don't happen to grok: --- [2000/08/01 18:23:41, 3] smbd/process.c:proc...
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.
2000 Jul 31
3
Samba 2.0.7 & Transfer speeds
infernix wrote: > Copying a 107MB mp3 file takes almost 4 minutes (238 seconds) > when I copy it with samba. [Using windows explorer under Windows 2000 --dave] > With FTP, it takes 27 seconds. > 238 divided by 27 = 8.5 times slower. Ho boy, that's bad. > I have several machines available to do testing, but you'd have to let me > know how and what. I am a linux
2014 Dec 01
0
Fwd: samba 3.6.24 domain member as printserver in win2008/2012 domain: Access denied
...ssage) switch message SMBreadX (pid 1405) conn 0xf40940 [2014/11/28 11:05:00.430955, 3] rpc_server/srv_pipe_hnd.c:121(free_pipe_context) free_pipe_context: destroying talloc pool of size 23 [2014/11/28 11:05:00.431003, 3] smbd/pipes.c:485(pipe_read_andx_done) readX-IPC min=1024 max=1024 nread=68 [2014/11/28 11:05:00.431482, 3] smbd/process.c:1609(process_smb) Transaction 8 of length 286 (0 toread) [2014/11/28 11:05:00.431523, 3] smbd/process.c:1414(switch_message) switch message SMBwriteX (pid 1405) conn 0xf40940 [2014/11/28 11:05:00.431562, 3] rpc_server/srv_pipe.c:1626(api_rp...
2008 Nov 09
10
T-Online Internet-Telefon (impossible to run the application
...net:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (3000): STUB fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 3000 fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 3000 err:ole:OLEPictureImpl_Load Failure while reading picture header (hr is 0, nread is 0). err:ole:OleLoadPicture IPersistStream_Load failed err:ole:OLEPictureImpl_Load Failure while reading picture header (hr is 0, nread is 0). err:ole:OleLoadPicture IPersistStream_Load failed err:ole:OLEPictureImpl_Load Failure while reading picture header (hr is 0, nread is 0). err:ole:OleLoadP...
2006 Jan 12
1
XP to Samba printer access delay
...nter properties on XP but that did not help. Thanks in advance, Andriy P.S. <myWinXpBox>.log Transaction 10152 of length 63 switch message SMBreadX (pid 12820) conn 0x803f5088 change_to_user: Skipping user change - already user search for pipe pnum=72d7 readX-IPC pnum=72d7 min=4280 max=4280 nread=4280 Transaction 10153 of length 63 switch message SMBreadX (pid 12820) conn 0x803f5088 change_to_user: Skipping user change - already user search for pipe pnum=72e5 readX-IPC pnum=72e5 min=4280 max=4280 nread=4280 Transaction 10154 of length 63 switch message SMBreadX (pid 12820) conn 0x803f5088 c...
1999 Jun 15
0
FIX for smbtar zero length files... (Cont :)
...=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(tarhandle, rname, finfo.size, finfo.mtime, "100644 \0", ftype); + zero_retry=0; + while (nread < finfo.size && !close_done) { DEBUG(3,("nread=%d\n",nread)); @@ -737,8 +742,15 @@ nread += datalen; if (datalen == 0) { - DEBUG(0,("Error reading file %s. Got 0 bytes\n", rname)); -...