• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/rep/

Lines Matching +defs:fnum +defs:data

83 	 * The data we send looks like this:
206 * If we don't have a data dir, we have just the
405 fuid = (u_int8_t *)rfp->uid.data;
469 * the client can compute the pages from the meta-data.
535 &msgfp, rec->data, rec->size, &next)) != 0)
619 NULL : msgfp->info.data,
621 msgfp->info.data : NULL,
670 lockdbt.data = &lock_obj;
897 &rup, rec->data, rec->size, &next)) != 0)
1090 if ((ret = __rep_remove_file(env, finfo->uid.data,
1091 finfo->info.data, finfo->type, finfo->db_flags)) != 0)
1110 (ret = __os_write(env, fhp, rec->data, rec->size, &cnt)) != 0 ||
1138 u_int32_t fnum, lastfile;
1167 for (fnum = 1; fnum <= lastfile; fnum++) {
1168 if ((ret = __log_name(dblp, fnum, &name, NULL, 0)) != 0)
1273 for (ep = (u_int8_t *)rec->data + rec->size, p = (u_int8_t *)rec->data;
1286 "rep_bulk_page: p %#lx ep %#lx pgrec data %#lx, size %lu (%#lx)",
1288 P_TO_ULONG(b_args.bulkdata.data),
1327 DBT key, data;
1355 &msgfp, rec->data, rec->size, NULL)) != 0)
1395 memset(&data, 0, sizeof(data));
1397 key.data = &recno;
1406 ret = __db_put(rep->file_dbp, ip, NULL, &key, &data, DB_NOOVERWRITE);
1490 &msgfp, rec->data, rec->size, NULL)) != 0)
1579 * page in mpool. Then copy the data to the page, and memp_fput the
1590 * the data into the file via mpool.
1594 (char *)rfp->info.data));
1596 rfp->info.data, DB_APP_DATA,
1658 pginfo = (DB_PGINFO *)pgcookie.data;
1660 if ((ret = __db_pageswap(&db, msgfp->info.data, msgfp->pgsize,
1665 memcpy(dst, msgfp->info.data, msgfp->pgsize);
1691 DBT data, key;
1779 memset(&data, 0, sizeof(data));
1789 key.data = &recno;
1796 ret = __dbc_get(dbc, &key, &data, DB_SET);
1805 ret = __dbc_get(dbc, &key, &data, DB_NEXT);
1823 rep->waiting_pg = *(db_pgno_t *)key.data;
1890 * 1. Close up the file data pointer we used.
2176 memcpy(db.fileid, rfp->uid.data, DB_FILE_ID_LEN);
2198 if ((ret = __env_mpool(&db, rfp->info.data, flags)) != 0) {
2354 * Allocate enough for the structure and the two DBT data areas.
2362 * Copy the structure itself, and then set the DBT data pointers
2363 * to their space and copy the data itself as well.
2367 rfp->uid.data = uidp;
2368 memcpy(uidp, rfpsrc->uid.data, rfpsrc->uid.size);
2371 rfp->info.data = infop;
2372 memcpy(infop, rfpsrc->info.data, rfpsrc->info.size);
2484 rfp->info.data,
2485 FLD_ISSET(rfp->db_flags, DB_AM_INMEM) ? rfp->info.data :
2619 dbt.data = NULL;
2679 if (dbt.data == NULL) {
2709 &rup, dbt.data, dbt.size, &next)) != 0)
2721 if (dbt.data != NULL)
2722 __os_free(env, dbt.data);
2731 * full file list is indicated by a NULL dbt->data. On success, the list is
2751 dbt->data = NULL;
2759 if (cnt == 0 && dbt->data != NULL)
2772 if (cnt == 0 && dbt->data != NULL)
2778 (size_t)length, &dbt->data)) != 0)
2782 env, fhp, dbt->data, length, &cnt)) != 0 ||
2794 * read less than we expected, and dbt->data == NULL indicates to the
2797 if (dbt->data != NULL)
2798 __os_free(env, dbt->data);
2799 dbt->data = NULL;
2865 DB_APP_DATA, rfp->info.data, 0, NULL, &namep)) != 0)