]> git.ozlabs.org Git - ccan/commitdiff
tdb2: be more careful on 4G files (tdb1).
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Dec 2011 05:44:51 +0000 (16:14 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Dec 2011 05:44:51 +0000 (16:14 +1030)
I came across a tdb which had wrapped to 4G + 4K, and the contents had been
destroyed by processes which thought it only 4k long.  Fix this by checking
on open, and making tdb_oob() check for wrap itself.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Ported from tdb1 SAMBA commit b64494535dc62f4073fc6302847593ed6e6ec38b)


No differences found