tdb2: restore file filling code.