usr/src/uts/common/fs/zfs/zfs_fm.c
changeset 10922 e2081f502306
parent 10921 8aac17999e4d
child 11147 74e8c05021f1
equal deleted inserted replaced
10921:8aac17999e4d 10922:e2081f502306
   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);