1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-29 16:23:52 +03:00
Commit Graph

42 Commits

Author SHA1 Message Date
Herb Lewis
e18fab269c fix dump printout when byte >= 0x80 2007-12-20 14:57:29 -08:00
Volker Lendecke
223352e323 Add a warning for a potential bug I've run into 2007-11-28 09:45:40 -08:00
Volker Lendecke
89e2984a84 Add a missing prototype 2007-11-22 16:00:13 +01:00
Volker Lendecke
fc58f2f45a Add some comments 2007-11-09 15:14:00 +01:00
Jeremy Allison
c14db81be5 Fix tdbtorture build.
Jeremy.
2007-11-06 23:13:11 -08:00
Jeremy Allison
ecc2555197 Fix const warning.
Jeremy.
2007-11-06 23:09:31 -08:00
Jeremy Allison
ab11c00557 Keep the tdb code in sync with Samba4.
Mainly this is the svn changes :

------------------------------------------------------------------------
r23238 | tridge | 2007-05-30 01:15:49 -0700 (Wed, 30 May 2007) | 6 lines

merged transaction lock changes from ctdb

this ensures that having the global lock also implies the transaction
lock

------------------------------------------------------------------------
r22832 | tridge | 2007-05-13 18:00:06 -0700 (Sun, 13 May 2007) | 3 lines

merged the latest tdb changes from ctdb to Samba4

Jeremy.
2007-11-06 22:57:35 -08:00
Jeremy Allison
ef8da16983 Fix bug where tdb lock call interrupted with
an alarm sig would not terminate and could lead
to runaway smbd processes.
Thanks to Dave Daugherty @ Centrify for pointing
this out to us.
Jeremy.
2007-11-06 21:47:57 -08:00
Stefan Metzmacher
4f084efd6a offsetof() is always present as shown in some
libreplace testing.

metze
2007-10-12 10:06:27 +02:00
Gerald (Jerry) Carter
5c6c8e1fe9 [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch. 2007-10-10 15:34:30 -05:00
Günther Deschner
579fb55b75 r24743: Fix build warning.
Guenther
2007-10-10 12:30:17 -05:00
Michael Adam
a3506f291a r24738: Fix one more use of pwrite in tdb code in the spirit of r23972 and r23977.
Michael
2007-10-10 12:30:16 -05:00
Jelmer Vernooij
4a5fa715a6 r24341: Make libreplace provide offsetof. 2007-10-10 12:29:31 -05:00
Jelmer Vernooij
26d1430283 r24340: Use standard data type uint32_t rather than tdb-specific u32. 2007-10-10 12:29:30 -05:00
Volker Lendecke
eabe796e46 r24049: Some more 64-bit warnings 2007-10-10 12:28:59 -05:00
Michael Adam
de0ef91346 r23980: Fix one more use of pwrite in expand_file.
Michael
2007-10-10 12:28:52 -05:00
Michael Adam
24fed55d72 r23979: Fix another occurence of (written != requested) as an
error condition to write. This is in tdb_new_database.

Fix one call to tdb_new_database in tdb_open_ex to not
overwrite the newly propagated errno (typically ENOSPC).

Michael
2007-10-10 12:28:51 -05:00
Michael Adam
5b8d53dfe1 r23977: Im prove the pwrite-patch to tdb_expand_file of r23972:
* prevent infinite loops due to 0 bytes written:
  try once more. if we still get 0 as return,
  set errno to ENOSPC and return -1 (error)

* replace int by correct types (ssize_t and size_t).

* print a warning log message in case "written < requested to write"
  usually this means, that the next call to pwrite will fail
  with return value -1 and set errno accordingly.

  Note that the former error condition "written != requested to write"
  is not a correct error condition of write/pwrite. If this is due
  to an error, a subsequent call to (p)write will reveal the cause
  (typically "no space left on device" - ENOSPC).

Michael
2007-10-10 12:28:51 -05:00
Michael Adam
e3af95f098 r23972: Fix a bug in pwrite error detection in tdb_expand_file():
The proper error condition is (ret == -1) instead of
(ret != number_of_byte_told_to_write).

Michael
2007-10-10 12:28:50 -05:00
Michael Adam
63c4c40cf7 r23950: unlink before rename is superfluous.
Michael
2007-10-10 12:28:48 -05:00
Michael Adam
864b3d260f r23925: Use NULL instead of 0 for a void * argument. 2007-10-10 12:28:45 -05:00
Michael Adam
3a2a032a44 r23853: Fix a very misleading error message in tdbbackup.
Michael
2007-10-10 12:28:34 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Andrew Tridgell
43cd589773 r23799: updated old Franklin Street FSF addresses to new URL 2007-10-10 12:28:26 -05:00
Andrew Tridgell
c676a97114 r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 12:28:26 -05:00
Andrew Tridgell
1b78cace50 r23790: LGPLv3+ conversion for our LGPLv2+ library code 2007-10-10 12:28:25 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
c2f7ab1c17 r23780: Find and fix more GPL2 -> GPL3.
Jeremy.
2007-10-10 12:28:21 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Jeremy Allison
d7b39e4534 r23590: Fix realloc leak on failure case from Jim Meyering <jim@meyering.net>.
Jeremy.
2007-10-10 12:23:33 -05:00
Jeremy Allison
bf951e3d7f r23371: Fix the misleading comment I added - it really *should*
say "locks chain and returned record", not
"and returns record"
Jeremy.
2007-10-10 12:23:11 -05:00
Jeremy Allison
d0b6456763 r23370: Traverse in tdb wasn't consistently using the
travlocks.lock_rw for lock read/write types, it
was sometimes using it (tdb_next_lock) and
sometimes explicitly using F_WRLCK instead.
Change this to consistently use travlocks.lock_rw
only.
I'm pretty sure about this fix (else I woudn't
be checking this in :-) but tridge and Volker
please review.
Jeremy.
2007-10-10 12:23:10 -05:00
Volker Lendecke
a343521439 r23184: Checkin for Tridge: Add a speed test to tdbtool 2007-10-10 12:22:52 -05:00
Volker Lendecke
945f73fa39 r23161: Add TDB_VOLATILE as open_flag to activate the per-hashchain dead record
optimization.
2007-10-10 12:22:50 -05:00
Jelmer Vernooij
232c5c6557 r22641: Install tdbdump and tdbbackup. 2007-10-10 12:19:51 -05:00
Stefan Metzmacher
562a9ce019 r22364: sync lib/tdb/ with samba4
there's no code change here...

metze
2007-10-10 12:19:29 -05:00
Stefan Metzmacher
e9200b4475 r22363: merge from samba4:
fix compiler warning

metze
2007-10-10 12:19:29 -05:00
Stefan Metzmacher
56e31d60c6 r22317: add tdb_ prefix to non static function
metze
2007-10-10 12:19:26 -05:00
Stefan Metzmacher
f722fd32da r22316: merge from samba4:
this function should be static

metze
2007-10-10 12:19:26 -05:00
Stefan Metzmacher
1ca12b1c9e r22315: move tdbback.c content into tdbbackup.c
and make the functions static.

also use libreplace headers in tdbbackup.c

metze
2007-10-10 12:19:26 -05:00
Stefan Metzmacher
d757cdc092 r22314: use libreplace headers
metze
2007-10-10 12:19:25 -05:00
Stefan Metzmacher
c7def92a9c r22249: move tdb code to lib/tdb/ as in samba4
metze
2007-10-10 12:19:22 -05:00