Lines Matching refs:os

9  * or http://www.opensolaris.org/os/licensing.
328 objset_t *os;
330 if (dmu_objset_hold(name, FTAG, &os) == 0) {
332 ret = (dmu_objset_id(os) == spa_bootfs(dmu_objset_spa(os)));
333 dmu_objset_rele(os, FTAG);
363 objset_t *os;
366 if (dmu_objset_hold(name, FTAG, &os) == 0) {
369 if (dmu_objset_type(os) != DMU_OST_ZFS) {
370 dmu_objset_rele(os, FTAG);
374 if (zfs_get_zplprop(os, ZFS_PROP_VERSION, &zplversion) == 0)
376 dmu_objset_rele(os, FTAG);
579 objset_t *os;
587 setsl_tag, &os);
591 dmu_objset_disown(os, setsl_tag);
1430 objset_t *os;
1433 error = dmu_objset_hold(dsname, FTAG, &os);
1436 if (dmu_objset_type(os) != DMU_OST_ZFS) {
1437 dmu_objset_rele(os, FTAG);
1441 mutex_enter(&os->os_user_ptr_lock);
1442 *zfvp = dmu_objset_get_user(os);
1448 mutex_exit(&os->os_user_ptr_lock);
1449 dmu_objset_rele(os, FTAG);
1824 objset_t *os;
1828 if ((error = dmu_objset_hold(zc->zc_name, FTAG, &os)) != 0)
1830 if (dmu_objset_type(os) != DMU_OST_ZFS) {
1831 dmu_objset_rele(os, FTAG);
1834 error = zfs_obj_to_path(os, zc->zc_obj, zc->zc_value,
1836 dmu_objset_rele(os, FTAG);
1853 objset_t *os;
1857 if ((error = dmu_objset_hold(zc->zc_name, FTAG, &os)) != 0)
1859 if (dmu_objset_type(os) != DMU_OST_ZFS) {
1860 dmu_objset_rele(os, FTAG);
1863 error = zfs_obj_to_stats(os, zc->zc_obj, &zc->zc_stat, zc->zc_value,
1865 dmu_objset_rele(os, FTAG);
2084 zfs_ioc_objset_stats_impl(zfs_cmd_t *zc, objset_t *os)
2089 dmu_objset_fast_stat(os, &zc->zc_objset_stats);
2092 (error = dsl_prop_get_all(os, &nv)) == 0) {
2093 dmu_objset_stats(os, nv);
2102 dmu_objset_type(os) == DMU_OST_ZVOL) {
2103 error = zvol_get_stats(os, nv);
2128 objset_t *os;
2131 error = dmu_objset_hold(zc->zc_name, FTAG, &os);
2133 error = zfs_ioc_objset_stats_impl(zc, os);
2134 dmu_objset_rele(os, FTAG);
2179 nvl_add_zplprop(objset_t *os, nvlist_t *props, zfs_prop_t prop)
2188 if ((error = zfs_get_zplprop(os, prop, &value)) != 0)
2206 objset_t *os;
2210 if (err = dmu_objset_hold(zc->zc_name, FTAG, &os))
2213 dmu_objset_fast_stat(os, &zc->zc_objset_stats);
2222 dmu_objset_type(os) == DMU_OST_ZFS) {
2226 if ((err = nvl_add_zplprop(os, nv, ZFS_PROP_VERSION)) == 0 &&
2227 (err = nvl_add_zplprop(os, nv, ZFS_PROP_NORMALIZE)) == 0 &&
2228 (err = nvl_add_zplprop(os, nv, ZFS_PROP_UTF8ONLY)) == 0 &&
2229 (err = nvl_add_zplprop(os, nv, ZFS_PROP_CASE)) == 0)
2235 dmu_objset_rele(os, FTAG);
2272 objset_t *os;
2278 if (error = dmu_objset_hold(zc->zc_name, FTAG, &os)) {
2290 error = dmu_dir_list_next(os,
2296 dmu_objset_rele(os, FTAG);
2329 objset_t *os;
2332 error = dmu_objset_hold(zc->zc_name, FTAG, &os);
2342 dmu_objset_rele(os, FTAG);
2346 error = dmu_snapshot_list_next(os,
2353 dsl_pool_t *dp = os->os_dsl_dataset->ds_dir->dd_pool;
2368 dmu_objset_rele(os, FTAG);
3062 zfs_create_cb(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx)
3066 zfs_create_fs(os, cr, zct->zct_zplprops, tx);
3073 * os parent objset pointer (NULL if root fs)
3092 zfs_fill_zplprops_impl(objset_t *os, uint64_t zplver,
3143 VERIFY(zfs_get_zplprop(os, ZFS_PROP_NORMALIZE, &norm) == 0);
3153 VERIFY(zfs_get_zplprop(os, ZFS_PROP_UTF8ONLY, &u8) == 0);
3158 VERIFY(zfs_get_zplprop(os, ZFS_PROP_CASE, &sense) == 0);
3174 objset_t *os = NULL;
3199 if ((error = dmu_objset_hold(parentname, FTAG, &os)) != 0)
3202 error = zfs_fill_zplprops_impl(os, zplver, fuids_ok, sa_ok, createprops,
3204 dmu_objset_rele(os, FTAG);
3240 void (*cbfunc)(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx);
3543 objset_t *os;
3546 error = dmu_objset_hold(fsname, FTAG, &os);
3549 ds = dmu_objset_ds(os);
3553 dmu_objset_rele(os, FTAG);
3556 dmu_objset_rele(os, FTAG);
4758 objset_t *os;
4781 error = dmu_objset_hold(zc->zc_name, FTAG, &os);
4785 error = dmu_objset_userspace_upgrade(os);
4786 dmu_objset_rele(os, FTAG);
4949 objset_t *os = NULL;
4952 error = dmu_objset_hold(zc->zc_name, FTAG, &os);
4956 error = dmu_object_next(os, &zc->zc_obj, B_FALSE,
4957 os->os_dsl_dataset->ds_phys->ds_prev_snap_txg);
4959 dmu_objset_rele(os, FTAG);