Lines Matching refs:offset

80  * stored at offset 0 of this file and contains information on the size and
1141 ztest_range_lock(ztest_ds_t *zd, uint64_t object, uint64_t offset,
1144 uint64_t hash = object ^ (offset % (ZTEST_RANGE_LOCKS + 1));
1150 rl->rl_offset = offset;
1255 uint64_t offset, uint64_t gen, uint64_t txg, uint64_t crtxg)
1260 bt->bt_offset = offset;
1268 uint64_t offset, uint64_t gen, uint64_t txg, uint64_t crtxg)
1273 ASSERT(bt->bt_offset == offset);
1546 uint64_t offset, length;
1559 offset = lr->lr_offset;
1566 offset -= offset % blocksize;
1578 rl = ztest_range_lock(zd, lr->lr_foid, offset, length, RL_WRITER);
1592 dmu_tx_hold_write(tx, lr->lr_foid, offset, length);
1595 P2PHASE(offset, length) == 0)
1614 ASSERT(offset % doi.doi_data_block_size == 0);
1620 VERIFY(dmu_read(os, lr->lr_foid, offset,
1624 offset, gen, txg, crtxg);
1635 ztest_bt_verify(bt, os, lr->lr_foid, offset,
1644 ztest_bt_generate(bt, os, lr->lr_foid, offset, gen, txg, crtxg);
1648 dmu_write(os, lr->lr_foid, offset, length, data, tx);
1651 dmu_assign_arcbuf(db, offset, abuf, tx);
1827 uint64_t offset = lr->lr_offset;
1861 zgd->zgd_rl = ztest_range_lock(zd, object, offset, size,
1864 error = dmu_read(os, object, offset, size, buf,
1870 offset = P2ALIGN(offset, size);
1872 ASSERT(offset < size);
1873 offset = 0;
1876 zgd->zgd_rl = ztest_range_lock(zd, object, offset, size,
1879 error = dmu_buf_hold(os, object, offset, zgd, &db,
1892 ASSERT(db->db_offset == offset);
2057 ztest_write(ztest_ds_t *zd, uint64_t object, uint64_t offset, uint64_t size,
2066 lr->lr_offset = offset;
2081 ztest_truncate(ztest_ds_t *zd, uint64_t object, uint64_t offset, uint64_t size)
2089 lr->lr_offset = offset;
2119 ztest_prealloc(ztest_ds_t *zd, uint64_t object, uint64_t offset, uint64_t size)
2129 rl = ztest_range_lock(zd, object, offset, size, RL_WRITER);
2133 dmu_tx_hold_write(tx, object, offset, size);
2138 dmu_prealloc(os, object, offset, size, tx);
2142 (void) dmu_free_long_range(os, object, offset, size);
2150 ztest_io(ztest_ds_t *zd, uint64_t object, uint64_t offset)
2175 ztest_bt_generate(&wbt, zd->zd_os, object, offset, 0, 0, 0);
2176 (void) ztest_write(zd, object, offset, sizeof (wbt), &wbt);
2180 (void) memset(data, 'a' + (object + offset) % 5, blocksize);
2190 (void) ztest_write(zd, object, offset, blocksize, data);
2195 (void) ztest_write(zd, object, offset, blocksize, data);
2199 (void) ztest_truncate(zd, object, offset, blocksize);
2219 VERIFY0(dmu_read(zd->zd_os, object, offset, blocksize, data,
2222 (void) ztest_write(zd, object, offset, blocksize, data);
3537 * packobj, at offset n * sizeof (bufwad_t)
3686 (void) printf("freeing offset %llx size %llx"
3695 (void) printf("writing offset %llx size %llx"
3806 * packobj, at offset n * sizeof (bufwad_t)
3933 (void) printf("writing offset %llx size %llx"
4010 uint64_t offset = (1ULL << (ztest_random(20) + 43)) +
4024 ztest_io(zd, od[0].od_object, offset);
4031 uint64_t offset = (1ULL << (ztest_random(4) + SPA_MAXBLOCKSHIFT)) +
4042 if (ztest_truncate(zd, od[0].od_object, offset, count * blocksize) != 0)
4045 ztest_prealloc(zd, od[0].od_object, offset, count * blocksize);
4050 uint64_t randoff = offset + (ztest_random(count) * blocksize);
4749 uint64_t offset;
4917 offset = ztest_random(fsize / (leaves << bshift)) *
4921 if (offset >= fsize)
4931 if (pwrite(fd, &bad, sizeof (bad), offset) != sizeof (bad))
4933 offset, pathrand);
4939 " offset 0x%llx\n", pathrand, (u_longlong_t)offset);
5003 uint64_t offset = i * blocksize;
5004 int error = dmu_buf_hold(os, object, offset, FTAG, &db,
5008 os, (long long)object, (long long) offset, error);
5010 ASSERT(db->db_offset == offset);
5939 int size, offset;
5955 offset = hdr->zh_hdr_size;
5956 ztest_shared_opts = (void *)&buf[offset];
5957 offset += hdr->zh_opts_size;
5958 ztest_shared = (void *)&buf[offset];
5959 offset += hdr->zh_size;
5960 ztest_shared_callstate = (void *)&buf[offset];
5961 offset += hdr->zh_stats_size * hdr->zh_stats_count;
5962 ztest_shared_ds = (void *)&buf[offset];