1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-18 19:17:08 +03:00

12 Commits

Author SHA1 Message Date
Jeremy Allison
c6609c042b Sync tdb with the tdb changes in ctdb. Spoke to tridge about
this. Fixes insidious problem with order n^2 freelist merging.
Jeremy.
2008-01-11 15:08:37 -08:00
Jeremy Allison
ecc2555197 Fix const warning.
Jeremy.
2007-11-06 23:09:31 -08: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
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
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
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
Stefan Metzmacher
c7def92a9c r22249: move tdb code to lib/tdb/ as in samba4
metze
2007-10-10 12:19:22 -05:00