Lines Matching refs:dsphys
1043 dsl_dataset_phys_t *dsphys; in dsl_dataset_create_sync_dd() local
1059 dsphys = dbuf->db_data; in dsl_dataset_create_sync_dd()
1060 bzero(dsphys, sizeof (dsl_dataset_phys_t)); in dsl_dataset_create_sync_dd()
1061 dsphys->ds_dir_obj = dd->dd_object; in dsl_dataset_create_sync_dd()
1062 dsphys->ds_flags = flags; in dsl_dataset_create_sync_dd()
1063 dsphys->ds_fsid_guid = unique_create(); in dsl_dataset_create_sync_dd()
1064 (void) random_get_pseudo_bytes((void*)&dsphys->ds_guid, in dsl_dataset_create_sync_dd()
1065 sizeof (dsphys->ds_guid)); in dsl_dataset_create_sync_dd()
1066 dsphys->ds_snapnames_zapobj = in dsl_dataset_create_sync_dd()
1069 dsphys->ds_creation_time = gethrestime_sec(); in dsl_dataset_create_sync_dd()
1070 dsphys->ds_creation_txg = tx->tx_txg == TXG_INITIAL ? 1 : tx->tx_txg; in dsl_dataset_create_sync_dd()
1073 dsphys->ds_deadlist_obj = dsl_deadlist_alloc(mos, tx); in dsl_dataset_create_sync_dd()
1077 dsphys->ds_prev_snap_obj = origin->ds_object; in dsl_dataset_create_sync_dd()
1078 dsphys->ds_prev_snap_txg = in dsl_dataset_create_sync_dd()
1080 dsphys->ds_referenced_bytes = in dsl_dataset_create_sync_dd()
1082 dsphys->ds_compressed_bytes = in dsl_dataset_create_sync_dd()
1084 dsphys->ds_uncompressed_bytes = in dsl_dataset_create_sync_dd()
1087 dsphys->ds_bp = dsl_dataset_phys(origin)->ds_bp; in dsl_dataset_create_sync_dd()
1094 dsphys->ds_flags |= dsl_dataset_phys(origin)->ds_flags & in dsl_dataset_create_sync_dd()
1110 dsphys->ds_deadlist_obj = dsl_deadlist_clone(&ohds->ds_deadlist, in dsl_dataset_create_sync_dd()
1111 dsphys->ds_prev_snap_txg, dsphys->ds_prev_snap_obj, tx); in dsl_dataset_create_sync_dd()
1144 dsphys->ds_flags |= DS_FLAG_UNIQUE_ACCURATE; in dsl_dataset_create_sync_dd()
1579 dsl_dataset_phys_t *dsphys; in dsl_dataset_snapshot_sync_impl() local
1613 dsphys = dbuf->db_data; in dsl_dataset_snapshot_sync_impl()
1614 bzero(dsphys, sizeof (dsl_dataset_phys_t)); in dsl_dataset_snapshot_sync_impl()
1615 dsphys->ds_dir_obj = ds->ds_dir->dd_object; in dsl_dataset_snapshot_sync_impl()
1616 dsphys->ds_fsid_guid = unique_create(); in dsl_dataset_snapshot_sync_impl()
1617 (void) random_get_pseudo_bytes((void*)&dsphys->ds_guid, in dsl_dataset_snapshot_sync_impl()
1618 sizeof (dsphys->ds_guid)); in dsl_dataset_snapshot_sync_impl()
1619 dsphys->ds_prev_snap_obj = dsl_dataset_phys(ds)->ds_prev_snap_obj; in dsl_dataset_snapshot_sync_impl()
1620 dsphys->ds_prev_snap_txg = dsl_dataset_phys(ds)->ds_prev_snap_txg; in dsl_dataset_snapshot_sync_impl()
1621 dsphys->ds_next_snap_obj = ds->ds_object; in dsl_dataset_snapshot_sync_impl()
1622 dsphys->ds_num_children = 1; in dsl_dataset_snapshot_sync_impl()
1623 dsphys->ds_creation_time = gethrestime_sec(); in dsl_dataset_snapshot_sync_impl()
1624 dsphys->ds_creation_txg = crtxg; in dsl_dataset_snapshot_sync_impl()
1625 dsphys->ds_deadlist_obj = dsl_dataset_phys(ds)->ds_deadlist_obj; in dsl_dataset_snapshot_sync_impl()
1626 dsphys->ds_referenced_bytes = dsl_dataset_phys(ds)->ds_referenced_bytes; in dsl_dataset_snapshot_sync_impl()
1627 dsphys->ds_compressed_bytes = dsl_dataset_phys(ds)->ds_compressed_bytes; in dsl_dataset_snapshot_sync_impl()
1628 dsphys->ds_uncompressed_bytes = in dsl_dataset_snapshot_sync_impl()
1630 dsphys->ds_flags = dsl_dataset_phys(ds)->ds_flags; in dsl_dataset_snapshot_sync_impl()
1632 dsphys->ds_bp = dsl_dataset_phys(ds)->ds_bp; in dsl_dataset_snapshot_sync_impl()
1659 dsphys->ds_next_snap_obj, tx); in dsl_dataset_snapshot_sync_impl()