equal
deleted
inserted
replaced
698 if (info != NULL) { |
698 if (info != NULL) { |
699 report->zcr_ckinfo = kmem_zalloc(sizeof (*info), KM_SLEEP); |
699 report->zcr_ckinfo = kmem_zalloc(sizeof (*info), KM_SLEEP); |
700 bcopy(info, report->zcr_ckinfo, sizeof (*info)); |
700 bcopy(info, report->zcr_ckinfo, sizeof (*info)); |
701 } |
701 } |
702 |
702 |
|
703 report->zcr_align = 1ULL << vd->vdev_top->vdev_ashift; |
703 report->zcr_length = length; |
704 report->zcr_length = length; |
704 |
705 |
705 #ifdef _KERNEL |
706 #ifdef _KERNEL |
706 zfs_ereport_start(&report->zcr_ereport, &report->zcr_detector, |
707 zfs_ereport_start(&report->zcr_ereport, &report->zcr_detector, |
707 FM_EREPORT_ZFS_CHECKSUM, spa, vd, zio, offset, length); |
708 FM_EREPORT_ZFS_CHECKSUM, spa, vd, zio, offset, length); |