Project

General

Profile

Bug #5393 » dsl_dataset-v2.patch

Proposed patch (version 2) - Xin Li, 2014-12-05 05:41 PM

View differences:

usr/src/uts/common/fs/zfs/dsl_dataset.c
403 403
		    offsetof(dmu_sendarg_t, dsa_link));
404 404

  
405 405
		if (doi.doi_type == DMU_OTN_ZAP_METADATA) {
406
			err = zap_contains(mos, dsobj, DS_FIELD_LARGE_BLOCKS);
407
			if (err == 0)
406
			int zaperr = zap_contains(mos, dsobj, DS_FIELD_LARGE_BLOCKS);
407
			if (zaperr != ENOENT) {
408
				VERIFY0(zaperr);
408 409
				ds->ds_large_blocks = B_TRUE;
409
			else
410
				ASSERT3U(err, ==, ENOENT);
410
			}
411 411
		}
412 412

  
413 413
		if (err == 0) {
(2-2/2)