Deleted Added
sdiff udiff text old ( 185029 ) new ( 209962 )
full compact
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 5 unchanged lines hidden (view full) ---

14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26#pragma ident "%Z%%M% %I% %E% SMI"
27
28#include <sys/dmu.h>
29#include <sys/dmu_objset.h>
30#include <sys/dmu_tx.h>
31#include <sys/dsl_dataset.h>
32#include <sys/dsl_dir.h>
33#include <sys/dsl_prop.h>
34#include <sys/dsl_synctask.h>
35#include <sys/spa.h>

--- 375 unchanged lines hidden (view full) ---

411 valstr = (char *)psa->buf;
412 }
413 spa_history_internal_log((psa->numints == 0) ? LOG_DS_INHERIT :
414 LOG_DS_PROPSET, ds->ds_dir->dd_pool->dp_spa, tx, cr,
415 "%s=%s dataset = %llu", psa->name, valstr, ds->ds_object);
416}
417
418void
419dsl_prop_set_uint64_sync(dsl_dir_t *dd, const char *name, uint64_t val,
420 cred_t *cr, dmu_tx_t *tx)
421{
422 objset_t *mos = dd->dd_pool->dp_meta_objset;
423 uint64_t zapobj = dd->dd_phys->dd_props_zapobj;
424
425 ASSERT(dmu_tx_is_syncing(tx));
426

--- 39 unchanged lines hidden (view full) ---

466 psa.buf = buf;
467 err = dsl_sync_task_do(ds->ds_dir->dd_pool,
468 NULL, dsl_prop_set_sync, ds, &psa, 2);
469
470 dsl_dataset_rele(ds, FTAG);
471 return (err);
472}
473
474/*
475 * Iterate over all properties for this dataset and return them in an nvlist.
476 */
477int
478dsl_prop_get_all(objset_t *os, nvlist_t **nvp, boolean_t local)
479{
480 dsl_dataset_t *ds = os->os->os_dsl_dataset;
481 dsl_dir_t *dd = ds->ds_dir;

--- 121 unchanged lines hidden ---