Andrew Tridgell
313a21b4d9
merged changes from v4-0-test
...
(This used to be commit 8c89d60924b0380231da834cd3c097b4f8cdc369)
2008-01-18 15:46:15 +11:00
Volker Lendecke
5b37e815b4
Don't try ftruncate when the tdb is opened read-only
...
Tridge, Jeremy, please check!
Thanks,
Volker
(This used to be commit e4f46d527411c54e8f26c05033b744c751810c32)
2008-01-16 21:18:26 +01:00
Volker Lendecke
7084854bd9
Next try to fix the max dead record calculation
...
(This used to be commit 4f95c58040f46f343f55f9a5db2655a5e3b62c00)
2008-01-16 21:04:52 +01:00
Volker Lendecke
c308d76305
Fix some C++ warnings
...
(This used to be commit 625241c4773ae5c80dd0cb0c07a86aff633c1ede)
2008-01-16 20:29:41 +01:00
Volker Lendecke
b0950557f9
Fix a missing prototype warning
...
(This used to be commit 871cee04f26da97756804b38acfd366b6011dc9e)
2008-01-16 20:25:57 +01:00
Jeremy Allison
7e2b8eb079
Port from ctdb:
...
minor fix to transaction_write_existing: tridge.
Jeremy.
(This used to be commit 874425c8f680fb2f737b46a3177b239e69302af5)
2008-01-15 17:20:50 -08:00
Andrew Tridgell
63b1c765de
samba3 already has tdb_validate()
...
(This used to be commit 9f002eeff9bcf33a00e5641cb14338e866a17afe)
2008-01-14 16:26:52 +11:00
Andrew Tridgell
a1902700c4
merged tdb fix from ctdb tree
...
(This used to be commit c91e9c785b5bf4b0c479edf8eb33da22bf615387)
2008-01-14 15:38:43 +11:00
Volker Lendecke
5b6520044b
Fix the max_dead_record calculations
...
(This used to be commit 4aaf4e7e73a5c7fa97ef730fbff5c7cb12df2d6c)
2008-01-13 22:58:41 +01:00
Jeremy Allison
2ec41571a3
Sync tdb with the tdb changes in ctdb. Spoke to tridge about
...
this. Fixes insidious problem with order n^2 freelist merging.
Jeremy.
(This used to be commit c6609c042b128e7d63eb64cfdfb0f6b65cb59d76)
2008-01-11 15:08:37 -08:00
Volker Lendecke
66d6eb27a4
Fix the max_dead_record calculations
...
(This used to be commit 2a5c53220a5cc2b4a80fc7c6cb38e87789c5e797)
2008-01-09 23:24:30 +01:00
Herb Lewis
df133758c2
fix dump printout when byte >= 0x80
...
(This used to be commit e18fab269c7370a6670c56eeab60fd90feecf0b2)
2007-12-20 14:57:29 -08:00
Volker Lendecke
a605be7314
Add a warning for a potential bug I've run into
...
(This used to be commit 223352e32372f1b055298cfc6f2770043a845e3d)
2007-11-28 09:45:40 -08:00
Volker Lendecke
afc3eee3b8
Add a missing prototype
...
(This used to be commit 89e2984a84951373d0e93fe06d0c69c8a62bc777)
2007-11-22 16:00:13 +01:00
Volker Lendecke
333d83e1ee
Add some comments
...
(This used to be commit fc58f2f45ab93ecea855e1dc07b6fdccce041c8d)
2007-11-09 15:14:00 +01:00
Jeremy Allison
1ee8607d4a
Fix tdbtorture build.
...
Jeremy.
(This used to be commit c14db81be5212dfa6fbcf8bfdcf725d7db3376ca)
2007-11-06 23:13:11 -08:00
Jeremy Allison
99fd77f4ae
Fix const warning.
...
Jeremy.
(This used to be commit ecc2555197860ae56726724ec824fc149d2d831c)
2007-11-06 23:09:31 -08:00
Jeremy Allison
3809490dd0
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.
(This used to be commit ab11c0055761e97ba32a8c3ec4fa6f8763a262cd)
2007-11-06 22:57:35 -08:00
Jeremy Allison
d8f3c9d078
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.
(This used to be commit ef8da1698371c95495add53df81a978df709c88d)
2007-11-06 21:47:57 -08:00
Stefan Metzmacher
9d29664b33
offsetof() is always present as shown in some
...
libreplace testing.
metze
(This used to be commit 4f084efd6ac39a8347d5cfc73b727940e40150cf)
2007-10-12 10:06:27 +02:00
Gerald (Jerry) Carter
e5a951325a
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
...
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10 15:34:30 -05:00
Günther Deschner
068d95cde1
r24743: Fix build warning.
...
Guenther
(This used to be commit 579fb55b7556dc90b42f77d5fc9e9c31f34974e5)
2007-10-10 12:30:17 -05:00
Michael Adam
c7489a5d96
r24738: Fix one more use of pwrite in tdb code in the spirit of r23972 and r23977.
...
Michael
(This used to be commit a3506f291abfb8a9516b79c10c79841a7391651e)
2007-10-10 12:30:16 -05:00
Jelmer Vernooij
db2666759d
r24341: Make libreplace provide offsetof.
...
(This used to be commit 4a5fa715a6af281282092644817599f79806981d)
2007-10-10 12:29:31 -05:00
Jelmer Vernooij
594bbfcdee
r24340: Use standard data type uint32_t rather than tdb-specific u32.
...
(This used to be commit 26d1430283bd4ae8b8a84f3253e33417d509c1a4)
2007-10-10 12:29:30 -05:00
Volker Lendecke
115062e7ce
r24049: Some more 64-bit warnings
...
(This used to be commit eabe796e464e5fe10d0f4cca1362985c529f5a5b)
2007-10-10 12:28:59 -05:00
Michael Adam
84f352caa5
r23980: Fix one more use of pwrite in expand_file.
...
Michael
(This used to be commit de0ef9134650e3e7cc5b5cfec9e8dd8510bd6677)
2007-10-10 12:28:52 -05:00
Michael Adam
207a213c06
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
(This used to be commit 24fed55d72a4922bfd3ddba61449fbae01365feb)
2007-10-10 12:28:51 -05:00
Michael Adam
e5051dd4a6
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
(This used to be commit 5b8d53dfe1872621bf28c8351d87bfc53ef6e66b)
2007-10-10 12:28:51 -05:00
Michael Adam
146c0781f3
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
(This used to be commit e3af95f0983e9f92c10a80ee4f15a0cd718a4728)
2007-10-10 12:28:50 -05:00
Michael Adam
67b0553f56
r23950: unlink before rename is superfluous.
...
Michael
(This used to be commit 63c4c40cf7055ab7cf413a23e306cf209a1dd0a1)
2007-10-10 12:28:48 -05:00
Michael Adam
4e23e4bd18
r23925: Use NULL instead of 0 for a void * argument.
...
(This used to be commit 864b3d260f3b099b1f24edf4ed0a7ed52b05f6cc)
2007-10-10 12:28:45 -05:00
Michael Adam
c52c8b4821
r23853: Fix a very misleading error message in tdbbackup.
...
Michael
(This used to be commit 3a2a032a44502eebdb61faf9cfdb3e54f5072514)
2007-10-10 12:28:34 -05:00
Andrew Tridgell
153cfb9c83
r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
...
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10 12:28:27 -05:00
Andrew Tridgell
674b835241
r23799: updated old Franklin Street FSF addresses to new URL
...
(This used to be commit 43cd589773148fe3d243892768ce187604dd0c33)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
9fa1c63578
r23798: updated old Temple Place FSF addresses to new URL
...
(This used to be commit c676a971142d7176fd5dbf21405fca14515a0a76)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
2c09988e46
r23790: LGPLv3+ conversion for our LGPLv2+ library code
...
(This used to be commit 1b78cace504f60c0f525765fbf59d9cc6506cd4d)
2007-10-10 12:28:25 -05:00
Andrew Tridgell
5e54558c6d
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
...
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10 12:28:22 -05:00
Jeremy Allison
2a9b4da0fa
r23780: Find and fix more GPL2 -> GPL3.
...
Jeremy.
(This used to be commit c2f7ab1c175ecff0cf44d0bbc4763ba9f7d7803f)
2007-10-10 12:28:21 -05:00
Jeremy Allison
d824b98f80
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
(This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10 12:28:20 -05:00
Jeremy Allison
ed961d66b2
r23590: Fix realloc leak on failure case from Jim Meyering <jim@meyering.net>.
...
Jeremy.
(This used to be commit d7b39e4534d85c84e8b24668ab7d7a93d5647c23)
2007-10-10 12:23:33 -05:00
Jeremy Allison
5b11268609
r23371: Fix the misleading comment I added - it really *should*
...
say "locks chain and returned record", not
"and returns record"
Jeremy.
(This used to be commit bf951e3d7f0310cc624abab11a7fb04c50770425)
2007-10-10 12:23:11 -05:00
Jeremy Allison
68f2b1d9f6
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.
(This used to be commit d0b64567630ec02eb437aa713847bb23a8be8a60)
2007-10-10 12:23:10 -05:00
Volker Lendecke
7bffc41757
r23184: Checkin for Tridge: Add a speed test to tdbtool
...
(This used to be commit a343521439f68c76c9939f04eea96c6e6d6b01e4)
2007-10-10 12:22:52 -05:00
Volker Lendecke
d5daef32b2
r23161: Add TDB_VOLATILE as open_flag to activate the per-hashchain dead record
...
optimization.
(This used to be commit 945f73fa39ba6f2b637379ac20d52b4d0306d77f)
2007-10-10 12:22:50 -05:00
Jelmer Vernooij
cd7ad0993d
r22641: Install tdbdump and tdbbackup.
...
(This used to be commit 232c5c65578e3cddffe7e6ed996de7fc42b32f48)
2007-10-10 12:19:51 -05:00
Stefan Metzmacher
4c8dc9c11e
r22364: sync lib/tdb/ with samba4
...
there's no code change here...
metze
(This used to be commit 562a9ce019af802b4a71c210b69bc8b93ebcd76f)
2007-10-10 12:19:29 -05:00
Stefan Metzmacher
d6ca327bd5
r22363: merge from samba4:
...
fix compiler warning
metze
(This used to be commit e9200b4475bcae4fd5eaaf94905c8a9beccd635a)
2007-10-10 12:19:29 -05:00
Stefan Metzmacher
123e721590
r22317: add tdb_ prefix to non static function
...
metze
(This used to be commit 56e31d60c672689e934fbed2794c7c54cf874b11)
2007-10-10 12:19:26 -05:00
Stefan Metzmacher
6f9f5bd745
r22316: merge from samba4:
...
this function should be static
metze
(This used to be commit f722fd32da56aabca2fffe243e89177bc23e2be7)
2007-10-10 12:19:26 -05:00