search for: map_fil

Displaying 20 results from an estimated 27 matches for "map_fil".

Did you mean: map_file
2004 Aug 02
4
reducing memmoves
Attached is a patch that makes window strides constant when files are walked with a constant block size. In these cases, it completely avoids all memmoves. In my simple local test of rsyncing 57MB of 10 local files, memmoved bytes went from 18MB to zero. I haven't tested this for a big variety of file cases. I think that this will always reduce the memmoves involved with walking a large
2006 Jun 14
2
testparm gives error in Solaris 10
..."testparm /etc/sfw/smb.conf", I get the following error. ---------------------- Load smb config files from /etc/sfw/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[storelib_dev]" Processing section "[root]" map_file: Failed to load /usr/sfw/lib/upcase.dat - No such file or directory map_file: Failed to load /usr/sfw/lib/lowcase.dat - No such file or directory creating lame upcase table creating lame lowcase table map_file: Failed to load /usr/sfw/lib/valid.dat - No such file or directory creating default vali...
2007 Jun 29
0
RE: Samba testparm gives error in Solaris 10
..."testparm /etc/sfw/smb.conf", I get the following error. ---------------------- Load smb config files from /etc/sfw/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[storelib_dev]" Processing section "[root]" map_file: Failed to load /usr/sfw/lib/upcase.dat - No such file or directory map_file: Failed to load /usr/sfw/lib/lowcase.dat - No such file or directory creating lame upcase table creating lame lowcase table map_file: Failed to load /usr/sfw/lib/valid.dat - No such file or directory creating default vali...
2002 Jul 02
2
[PATCH] Compressed output files
...c from the latest zlib distribution so we can call gzwrite() etc. What remains to be done / problems: - Needs more testing, especially with remote clients / servers. - Batch files are not compressed. - Reading compressed files should be implemented in a more generic fashion, perhaps in map_file() and its cousins. I started working on this but saw that changing map_file() et al. could have far reaching consequences, so I took the easy way out: I just changed the one routine I cared about for now. - Add documentation of new options to manpages etc. - Find a way to write down...
2008 Jul 02
2
Make Test on Samba 3.2.0
...; with Samba 3.2.0, though, I eventually run into problems like this: RUNNING TESTS testparm_s3 Testing netbios name (0) TEST OUTPUT: Load smb config files from /home/david/build/samba-3.2.0/source/st/lib/smb.conf.tmp params.c:Parameter() - Ignoring badly formed line in configuration file: netbios map_file: Failed to load /usr/local/samba/samba-3.2.0/lib/valid.dat - No such file or directory creating default valid table Loaded services file OK. ERROR: lock directory /usr/local/samba/samba-3.2.0/var/locks does not exist ERROR: pid directory /usr/local/samba/samba-3.2.0/var/locks does not exist Ignor...
2020 May 24
3
[PATCH] file_checksum() optimization
...+++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/checksum.c b/checksum.c index 2e804c47..4aa9f4b7 100644 --- a/checksum.c +++ b/checksum.c @@ -294,7 +294,7 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum) if (fd == -1) return; - buf = map_file(fd, len, MAX_MAP_SIZE, CSUM_CHUNK); + buf = map_file(fd, len, MAX_MAP_SIZE, CHUNK_SIZE); switch (checksum_type) { case CSUM_MD5: { @@ -302,8 +302,8 @@ void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum) MD5_Init(&m5); - for (i = 0; i + CSUM_CHUNK <= len; i +=...
2003 Jul 07
1
Some C help patching sender.c (from:plain source -> encrypted destination: rsync + gpg)
...am thinking of is in an if(!read_batch) block and the CRC/deltas are under if(read_batch). Is read_batch always true when using --whole-files? Seems to be. Second concern: where is the reading and transmission of th file happening? If the do_open is in line 183, where's the read/transmit, map_file() line 202 puts the data uin buf, and then, what? You see, write_int doesn't use buf. And where is the handle closed? Thanks for any tips here... Ahhh, life. martin http://nzl.com.ar/
2008 Apr 25
1
samba and openldap authentication issues!
...ion for user [test3] -> [test3] FAILED with error NT_STATUS_NO_SUCH_USER [2008/04/24 17:45:00, 3] smbd/error.c:error_packet_set(106) error packet at smbd/sesssetup.c(105) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FAILURE here is output from pbdedit -L Code: [root@beedril samba]# pdbedit -L map_file: Failed to load /usr/lib/samba/valid.dat - No such file or directory creating default valid table smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=WINIX))] smbldap_open_connection: connection opened smbldap_check_root_dse: Expected one rootDSE, got 0 ldap_...
2008 Apr 25
2
openldap - samba
...ieve that this has something to do with nss_ldap. because doing a getent passwd, it doesn't display any smb info. Any debugging info or help would be amazing, I'm beating my head against the desk because Ive been at this for a few days now. [root@beedril smbldap-tools]# pdbedit -Lv test10 map_file: Failed to load /usr/lib/samba/valid.dat - No such file or directory creating default valid table smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=MSHOME))] smbldap_open_connection: connection opened smbldap_check_root_dse: Expected one rootDSE, got 0 ldap...
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...ved 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); if (fd != -1 && write_file(fd,data,i)...
2012 Jun 19
0
[LLVMdev] llvm/include/Support/FileSystem.h
This is a proposed patch to enhance FileSystem.h to add functionality (getting and setting permission bits and mapping an unmapping files). This implementation follows the N3365 proposal regarding permission bits. This functionality is needed for my next patch which will implement llvm/include/Support/FileOutputBuffer.h which is needed by lld. -------------- next part -------------- A
2012 May 18
0
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
..._code permissions(const Twine &path, perms p); If the name is confusing (it says nothing about modification) I'm fine with modify_permissions or something similar. >   unique_file_sized() Instead of adding this I would much rather add resize_file and call it after unique_file. >   map_file_pages() >   unmap_file_pages() These are good. > I've implemented the unix side for all these, but have the windows side just stubbed out. > > I've also added a test case (unittests/Support/FileOutputBufferTest.cpp) which exercises FileOutputBuffer. > > -Nick As a gene...
2012 May 18
2
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
On Fri, May 18, 2012 at 3:07 PM, Michael Spencer <bigcheesegs at gmail.com> wrote: > >> +  error_code ec = sys::fs::status(filePathTwine, stat); > > stat is undefined if ec isn't success. ec will be success even in the case of > file_not_found. Actually I was wrong. The Windows and UNIX implementation disagree on this point. I'm going to change it to match
2012 May 17
3
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
...ttachments/20120517/9ab7084f/attachment.obj> -------------- next part -------------- To implement the FileOutputBuffer, I needed to add some more functions to llvm/Support/FileSystem.h, including: is_writable_file() is_executable_file() set_file_executable() unique_file_sized() map_file_pages() unmap_file_pages() I've implemented the unix side for all these, but have the windows side just stubbed out. I've also added a test case (unittests/Support/FileOutputBufferTest.cpp) which exercises FileOutputBuffer. -Nick >>>> >>>> On May 3, 2012, at...
1999 Apr 16
2
Problems compiling Samba 2.0.3
Hi, I have a problem when I compile Samba 2.0.3, the next error message is generated doing "make": Using LIBS = Compiling locking/shmem.c locking/shmem.c: In function `smb_shm_open': locking/shmem.c:921: `PROT_READ' undeclared (first use this function) locking/shmem.c:921: (Each undeclared identifier is reported only once locking/shmem.c:921: for each function it appears in.)
1997 Jul 18
2
MMap failed with code 22
We have been using samba since 1995 and have found it superb, Thanks to all. Recently I built Samba1.19.17alpha4 on a DECstation 5000 running Ultrix 4.4 and included -DFAST_SHARE_MODES This results in UIST>smbclient -L UIST Session request failed (0,0) with myname=UIST destname=UIST Unspecified error 0x0 Your server software is being unfriendly and ERROR
2002 Aug 05
5
[patch] read-devices
...um,OFF_T size) +void file_checksum(char *fname,char *sum) { - OFF_T i; + OFF_T i = 0; struct map_struct *buf; int fd; - OFF_T len = size; char tmpchunk[CSUM_CHUNK]; struct mdfour m; memset(sum,0,MD4_SUM_LENGTH); fd = do_open(fname, O_RDONLY, 0); if (fd == -1) return; - buf = map_file(fd,size); + buf = map_file(fd,OFF_T_MAX); /* map_ptr() will find out the real file size */ mdfour_begin(&m); - for(i = 0; i + CSUM_CHUNK <= len; i += CSUM_CHUNK) { - memcpy(tmpchunk, map_ptr(buf,i,CSUM_CHUNK), CSUM_CHUNK); - mdfour_update(&m, (uchar *)tmpchunk, CSUM_CHUNK); - }...
2012 Oct 07
0
rsync patch
...in Toronto, Canada who sought to destroy evidence and/or to corrupt my own personal files just to cause trouble, and I'm still got three drives that need new logic (boards and eeprom transplants) so I will be doing much more testing in the coming months. The main changes are to fileio.c in the map_file() function, which I've restructured a little to allow for retrying errors, delaying before retrying errors, and filling the read buffer with an arbitrary byte to make the identification of unrecovered data easier. The three options are: --retry-errors=NUM, which retries the residue of a fail...
2002 Feb 19
0
Samba-3.0-alpha9 compilation problems
...o the OpenSSL installation itself works correctly, though it may be too old for Samba). On the Linux system, even with a simple configuration, (no options), the compilation fails at this point: make distclean ./configure make ... Compiling lib/util_file.c lib/util_file.c: In function `map_file': lib/util_file.c:442: `MAP_FAILED' undeclared (first use this function) lib/util_file.c:442: (Each undeclared identifier is reported only once lib/util_file.c:442: for each function it appears in.) (Hrmmm... I just noticed now that the make warns: WARNING: you need to rerun auto...
2010 Dec 20
7
DO NOT REPLY [Bug 7876] New: please implement o_direct
https://bugzilla.samba.org/show_bug.cgi?id=7876 Summary: please implement o_direct Product: rsync Version: 3.1.0 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned at samba.org ReportedBy: costinel at gmail.com QAContact: