1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/lib/ntdb/test
Rusty Russell db2508840d ntdb: create initial database to be multiple of NTDB_PGSIZE.
As copied from tdb1, there is logic in the transaction code to handle
a non-PGSIZE multiple db, but in fact this only happens for a
completely unused database: as soon as we add anything to it, it is
expanded to a NTDB_PGSIZE multiple.

If we create the database with a free record which pads it out to
NTDB_PGSIZE, we can remove this last-page-is-different logic.

Of course, the fake ntdbs we create in our tests now also need to be
multiples of NTDB_PGSIZE, so we change some numbers there too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-06-19 05:38:06 +02:00
..
api-12-store.c
api-13-delete.c
api-14-exists.c
api-16-wipe_all.c
api-21-parse_record.c
api-55-transaction.c
api-80-tdb_fd.c
api-81-seqnum.c
api-82-lockattr.c
api-83-openhook.c ntdb: enhance external-helper test code. 2012-06-19 05:38:06 +02:00
api-91-get-stats.c ntdb: create initial database to be multiple of NTDB_PGSIZE. 2012-06-19 05:38:06 +02:00
api-92-get-set-readonly.c
api-93-repack.c
api-add-remove-flags.c
api-check-callback.c
api-firstkey-nextkey.c
api-fork-test.c ntdb: make fork test more thorough. 2012-06-19 05:38:06 +02:00
api-locktimeout.c
api-missing-entries.c
api-open-multiple-times.c
api-record-expand.c
api-simple-delete.c
api-summary.c
external-agent.c ntdb: enhance external-helper test code. 2012-06-19 05:38:06 +02:00
external-agent.h ntdb: enhance external-helper test code. 2012-06-19 05:38:06 +02:00
failtest_helper.c
failtest_helper.h ntdb: create initial database to be multiple of NTDB_PGSIZE. 2012-06-19 05:38:06 +02:00
helpapi-external-agent.c
helprun-external-agent.c
helprun-layout.c
layout.h
lock-tracking.c
lock-tracking.h
logging.c
logging.h
ntdb-source.h
run-01-new_database.c
run-02-expand.c
run-03-coalesce.c ntdb: create initial database to be multiple of NTDB_PGSIZE. 2012-06-19 05:38:06 +02:00
run-04-basichash.c
run-05-readonly-open.c
run-10-simple-store.c
run-11-simple-fetch.c
run-12-check.c
run-15-append.c
run-20-growhash.c
run-25-hashoverload.c
run-30-exhaust-before-expand.c ntdb: create initial database to be multiple of NTDB_PGSIZE. 2012-06-19 05:38:06 +02:00
run-35-convert.c
run-50-multiple-freelists.c
run-56-open-during-transaction.c
run-57-die-during-transaction.c ntdb: fix recovery data write. 2012-06-19 05:38:06 +02:00
run-64-bit-tdb.c ntdb: create initial database to be multiple of NTDB_PGSIZE. 2012-06-19 05:38:06 +02:00
run-90-get-set-attributes.c
run-001-encode.c
run-001-fls.c
run-capabilities.c ntdb: create initial database to be multiple of NTDB_PGSIZE. 2012-06-19 05:38:06 +02:00
run-expand-in-transaction.c ntdb: create initial database to be multiple of NTDB_PGSIZE. 2012-06-19 05:38:06 +02:00
run-features.c
run-lockall.c ntdb: enhance external-helper test code. 2012-06-19 05:38:06 +02:00
run-remap-in-read_traverse.c ntdb: enhance external-helper test code. 2012-06-19 05:38:06 +02:00
run-seed.c
run-tdb_errorstr.c
run-tdb_foreach.c
run-traverse.c
tap-interface.c
tap-interface.h ntdb: print \n at end of log messages in tests. 2012-06-19 05:38:06 +02:00