tdb: add overflow detection to tdb_expand_adjust()
authorStefan Metzmacher <metze@samba.org>
Tue, 28 May 2013 11:01:27 +0000 (13:01 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 3 Jun 2013 08:21:28 +0000 (10:21 +0200)
We round up at maximun to a new size of 4GB,
but still return at least the given size.

The caller has to deal with ENOSPC itself.

Pair-Programmed-With: Volker Lendecke <vl@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found