Lines Matching refs:mhp

1205 	ndmp_metadata_header_ext_t *mhp;  in zfs_put_prop_cb()  local
1216 mhp = mhd->ml_xhdr; in zfs_put_prop_cb()
1217 mpp = &mhp->nh_property[mhp->nh_count]; in zfs_put_prop_cb()
1219 if (mhp->nh_count * sizeof (ndmp_metadata_property_ext_t) + in zfs_put_prop_cb()
1220 sizeof (ndmp_metadata_header_ext_t) > mhp->nh_total_bytes) in zfs_put_prop_cb()
1225 mhp->nh_count++; in zfs_put_prop_cb()
1241 sourcestr = mhp->nh_dataset; in zfs_put_prop_cb()
1255 mhp->nh_count++; in zfs_put_prop_cb()
1266 ndmp_metadata_header_ext_t *mhp; in zfs_put_quota_cb() local
1274 mhp = mhd->ml_xhdr; in zfs_put_quota_cb()
1275 mpp = &mhp->nh_property[mhp->nh_count]; in zfs_put_quota_cb()
1277 if (mhp->nh_count * sizeof (ndmp_metadata_property_ext_t) + in zfs_put_quota_cb()
1278 sizeof (ndmp_metadata_header_ext_t) > mhp->nh_total_bytes) in zfs_put_quota_cb()
1294 (void) strlcpy(mpp->mp_source, mhp->nh_dataset, ZFS_MAXPROPLEN); in zfs_put_quota_cb()
1296 mhp->nh_count++; in zfs_put_quota_cb()
1361 ndmp_metadata_header_ext_t *mhp; in ndmp_include_zfs() local
1395 if ((mhp = malloc(size)) == NULL) { in ndmp_include_zfs()
1401 (void) memset(mhp, 0, size); in ndmp_include_zfs()
1404 mhd.ml_xhdr = mhp; in ndmp_include_zfs()
1405 mhp->nh_total_bytes = size; in ndmp_include_zfs()
1406 mhp->nh_major = META_HDR_MAJOR_VERSION; in ndmp_include_zfs()
1407 mhp->nh_minor = META_HDR_MINOR_VERSION; in ndmp_include_zfs()
1408 mhp->nh_plversion = nctx->nc_plversion; in ndmp_include_zfs()
1410 (void) strlcpy(mhp->nh_plname, nctx->nc_plname, in ndmp_include_zfs()
1411 sizeof (mhp->nh_plname)); in ndmp_include_zfs()
1412 (void) strlcpy(mhp->nh_magic, ZFS_META_MAGIC_EXT, in ndmp_include_zfs()
1413 sizeof (mhp->nh_magic)); in ndmp_include_zfs()
1414 (void) strlcpy(mhp->nh_dataset, dataset, sizeof (mhp->nh_dataset)); in ndmp_include_zfs()
1426 mpp = &mhp->nh_property[mhp->nh_count]; in ndmp_include_zfs()
1432 free(mhp); in ndmp_include_zfs()
1442 mhp->nh_count++; in ndmp_include_zfs()
1452 mhp->nh_count = pcount; in ndmp_include_zfs()
1459 pp = (char *)mhp; in ndmp_include_zfs()
1478 free(mhp); in ndmp_include_zfs()