Skip to content

Commit

Permalink
Illumos 5393 - spurious failures from dsl_dataset_hold_obj()
Browse files Browse the repository at this point in the history
5393 spurious failures from dsl_dataset_hold_obj()
Reviewed by: Matthew Ahrens <[email protected]>
Reviewed by: Will Andrews <[email protected]>
Reviewed by: Prakash Surya <[email protected]>
Reviewed by: Steven Hartland <[email protected]>
Approved by: Dan McDonald <[email protected]>

References:
  https://www.illumos.org/issues/5393
  illumos/illumos-gate@e1f3c20

Ported-by: Brian Behlendorf <[email protected]>
Closes #3403
  • Loading branch information
Justin T. Gibbs authored and behlendorf committed May 13, 2015
1 parent 63b33e8 commit 19b3b1d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions module/zfs/dsl_dataset.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,12 @@ dsl_dataset_hold_obj(dsl_pool_t *dp, uint64_t dsobj, void *tag,
offsetof(dmu_sendarg_t, dsa_link));

if (doi.doi_type == DMU_OTN_ZAP_METADATA) {
err = zap_contains(mos, dsobj, DS_FIELD_LARGE_BLOCKS);
if (err == 0)
int zaperr = zap_contains(mos, dsobj,
DS_FIELD_LARGE_BLOCKS);
if (zaperr != ENOENT) {
VERIFY0(zaperr);
ds->ds_large_blocks = B_TRUE;
else
ASSERT3U(err, ==, ENOENT);
}
}

if (err == 0) {
Expand Down

0 comments on commit 19b3b1d

Please sign in to comment.