• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/BerkeleyDB-21/db/db/

Lines Matching defs:meta

39  *    name will be non-NULL, subname will be NULL, and meta-pgno will be
42 * name will be non-NULL, subname may be NULL and meta-pgno will be
327 DBMETA *meta;
333 /* Subdb exists; read meta-data page and initialize. */
336 ip, txn, 0, &meta)) != 0)
338 ret = __db_meta_setup(mdbp->env, dbp, name, meta, 0, 0);
340 ip, meta, dbp->priority)) != 0 && ret == 0)
343 * If __db_meta_setup found that the meta-page hadn't
375 * Take a buffer containing a meta-data page and check it for a valid LSN,
383 __db_chk_meta(env, dbp, meta, flags)
386 DBMETA *meta;
397 if (FLD_ISSET(meta->metaflags, DBMETA_CHKSUM)) {
401 is_hmac = meta->encrypt_alg == 0 ? 0 : 1;
402 chksum = ((BTMETA *)meta)->chksum;
419 chksum, meta, DBMETASIZE, is_hmac)) != 0) {
434 dbp, (u_int8_t *)meta, LF_ISSET(DB_CHK_META));
445 swap_lsn = meta->lsn;
446 magic = meta->magic;
476 * Take a buffer containing a meta-data page and figure out if it's
477 * valid, and if so, initialize the dbp from the meta-data page.
483 __db_meta_setup(env, dbp, name, meta, oflags, flags)
487 DBMETA *meta;
505 magic = meta->magic;
518 * subdatabase had its meta-data page allocated, but
523 meta->pgno != PGNO_INVALID))
537 * We can only check the meta page if we are sure we have a meta page.
543 if ((ret = __db_chk_meta(env, dbp, meta, flags)) != 0) {
556 flags = meta->flags;
564 __bam_metachk(dbp, name, (BTMETA *)meta)) != 0)
573 __ham_metachk(dbp, name, (HMETA *)meta)) != 0)
581 __qam_metachk(dbp, name, (QMETA *)meta)) != 0)
588 memcpy(dbp->fileid, ((DBMETA *)meta)->uid, DB_FILE_ID_LEN);