Home | History | Annotate | Download | only in ext2fs

Lines Matching full:newdb

3730 	struct tdb_header *newdb;
3735 if (!(newdb = (struct tdb_header *)calloc(size, 1)))
3739 newdb->version = TDB_VERSION;
3740 newdb->hash_size = hash_size;
3743 tdb->map_ptr = (char *)newdb;
3744 memcpy(&tdb->header, newdb, sizeof(tdb->header));
3746 CONVERT(*newdb);
3756 CONVERT(*newdb);
3757 memcpy(&tdb->header, newdb, sizeof(tdb->header));
3759 memcpy(newdb->magic_food, TDB_MAGIC_FOOD, strlen(TDB_MAGIC_FOOD)+1);
3760 if (write(tdb->fd, newdb, size) != size) {
3767 SAFE_FREE(newdb);