Skip to content

Commit

Permalink
add preliminary async dmu support
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Macy <[email protected]>
  • Loading branch information
mattmacy committed May 18, 2020
1 parent b29e31d commit b1dcf7f
Show file tree
Hide file tree
Showing 41 changed files with 2,411 additions and 783 deletions.
6 changes: 3 additions & 3 deletions cmd/zdb/zdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ dump_packed_nvlist(objset_t *os, uint64_t object, void *data, size_t size)
size_t nvsize = *(uint64_t *)data;
char *packed = umem_alloc(nvsize, UMEM_NOFAIL);

VERIFY(0 == dmu_read(os, object, 0, nvsize, packed, DMU_READ_PREFETCH));
VERIFY0(dmu_read(os, object, 0, nvsize, packed, DMU_CTX_FLAG_PREFETCH));

VERIFY(nvlist_unpack(packed, nvsize, &nv, 0) == 0);

Expand Down Expand Up @@ -923,7 +923,7 @@ dump_spacemap(objset_t *os, space_map_t *sm)
offset += sizeof (word)) {

VERIFY0(dmu_read(os, space_map_object(sm), offset,
sizeof (word), &word, DMU_READ_PREFETCH));
sizeof (word), &word, DMU_CTX_FLAG_PREFETCH));

if (sm_entry_is_debug(word)) {
(void) printf("\t [%6llu] %s: txg %llu pass %llu\n",
Expand Down Expand Up @@ -954,7 +954,7 @@ dump_spacemap(objset_t *os, space_map_t *sm)
offset += sizeof (extra_word);
VERIFY0(dmu_read(os, space_map_object(sm), offset,
sizeof (extra_word), &extra_word,
DMU_READ_PREFETCH));
DMU_CTX_FLAG_PREFETCH));

ASSERT3U(offset, <=, space_map_length(sm));

Expand Down
Loading

0 comments on commit b1dcf7f

Please sign in to comment.