Lines Matching refs:dsize
302 for (value = 0x238F13AF * key->dsize, i=0; i < key->dsize; i++) in default_tdb_hash()
403 if (tdb_oob(tdb, off + key.dsize, 0) != 0)
407 return !memcmp(off + (char*)tdb->map_ptr, key.dptr, key.dsize);
409 while (key.dsize) {
410 len = key.dsize;
418 key.dsize -= len;
944 if (!TDB_DEAD(r) && hash==r->full_hash && key.dsize==r->key_len) {
1011 if (rec.rec_len < key.dsize + dbuf.dsize + sizeof(tdb_off)) {
1017 dbuf.dptr, dbuf.dsize) == -1)
1020 if (dbuf.dsize != rec.data_len) {
1022 rec.data_len = dbuf.dsize;
1050 ret.dsize = rec.data_len;
1299 key.dsize = rec.key_len;
1301 dbuf.dsize = rec.data_len;
1343 key.dsize = rec.key_len;
1344 key.dptr =tdb_alloc_read(tdb,tdb->travlocks.off+sizeof(rec),key.dsize);
1365 || memcmp(k, oldkey.dptr, oldkey.dsize) != 0) {
1393 key.dsize = rec.key_len;
1395 key.dsize);
1474 if (!(p = (char *)talloc_size(tdb, key.dsize + dbuf.dsize))) {
1479 memcpy(p, key.dptr, key.dsize);
1480 if (dbuf.dsize)
1481 memcpy(p+key.dsize, dbuf.dptr, dbuf.dsize);
1484 if (!(rec_ptr = tdb_allocate(tdb, key.dsize + dbuf.dsize, &rec)))
1491 rec.key_len = key.dsize;
1492 rec.data_len = dbuf.dsize;
1498 || tdb_write(tdb, rec_ptr+sizeof(rec), p, key.dsize+dbuf.dsize)==-1