search for: bitmap_find

Displaying 4 results from an estimated 4 matches for "bitmap_find".

Did you mean: bitmap_and
2000 Jan 14
1
Possible bug: 'all new dirptrs in use?'
...n95 OSR2 clients have a problem that occurs several times a month, always near the end of the day. If they open a samba share, it doesn't show any files. The logfile says: [2000/01/10 18:03:06, 0] smbd/dir.c:dptr_create(453) dptr_create: returned 0: Error - all new dirptrs in use ? Apparently bitmap_find() (dir.c, line 450) wraps around to 0 while it is expected to return a value higher than 255. It seems to me that bitmap_find() (file lib/bitmap.c, line 94) does the wrong thing in this particular case. It looks for free bits starting at an offset, but when it reaches the end of the bitmap it wraps...
2000 May 02
0
patch for .samba-2.0.7/source/lib/bitmap.c
Dear all, I have made patch for samba-2.0.7/source/lib/bitmap.c With this patch 1) constant '32' is now named. 2) make only one malloc on bitmap_allocate(). ( This will make bitmap to fit within same page, which will cause lesser pagefault, I wish ) 3) totally changed bitmap_find(). I guess this should work faster then testing each bits one-by-one. --- ./source/lib/bitmap.c 2000/04/29 15:35:49 1.1 +++ ./source/lib/bitmap.c 2000/05/01 09:00:59 @@ -21,35 +21,42 @@ #include "includes.h" extern int DEBUGLEVEL; +#define BITMAP_ALIGN 32 +#define UINT32_BI...
2000 May 10
0
patche for samba-2.0.7/source/smbd/conn.c
...ting from a random position. The randomisation stops problems with the server dieing and clients thinking the server is still available. ****************************************************************************/ connection_struct *conn_new(void) { - connection_struct *conn; - int i; - - i = bitmap_find(bmap, 1); - - if (i == -1) { - DEBUG(1,("ERROR! Out of connection structures\n")); - return NULL; - } + connection_struct *conn; + int i; - conn = (connection_struct *)malloc(sizeof(*conn)); - if (!conn) return NULL; + if ( cth.num_open >= MAX_CONNECTIONS ) { +...
2002 Jun 07
0
smbd: Too many open files
...itch message SMBclose (pid 6617) [2002/06/07 15:03:27, 3] smbd/reply.c:reply_close(3019) close fd=35 fnum=4581 (numopen=2) [2002/06/07 15:03:27, 2] smbd/close.c:close_normal_file(211) johny closed file O/a1/KO-I_X8-eh.cfg (numopen=1) - numbers of allocated file structure returned from "bitmap_find" in "files.c" are near "max open files" from "smb.conf", as if fd exhausted. And when fd number reach "max open files" + MAX_OPEN_FUDGEFACTOR, then in station log appear message "Too many open files" : allocated file structure 461, fnum...