Lines Matching defs:os

9  * or http://www.opensolaris.org/os/licensing.
321 objset_t *os;
323 if (dmu_objset_hold(name, FTAG, &os) == 0) {
325 ret = (dmu_objset_id(os) == spa_bootfs(dmu_objset_spa(os)));
326 dmu_objset_rele(os, FTAG);
356 objset_t *os;
359 if (dmu_objset_hold(name, FTAG, &os) == 0) {
362 if (dmu_objset_type(os) != DMU_OST_ZFS) {
363 dmu_objset_rele(os, FTAG);
367 if (zfs_get_zplprop(os, ZFS_PROP_VERSION, &zplversion) == 0)
369 dmu_objset_rele(os, FTAG);
579 objset_t *os;
587 setsl_tag, &os);
591 dmu_objset_disown(os, setsl_tag);
1398 objset_t *os;
1401 error = dmu_objset_hold(dsname, FTAG, &os);
1404 if (dmu_objset_type(os) != DMU_OST_ZFS) {
1405 dmu_objset_rele(os, FTAG);
1409 mutex_enter(&os->os_user_ptr_lock);
1410 *zfvp = dmu_objset_get_user(os);
1416 mutex_exit(&os->os_user_ptr_lock);
1417 dmu_objset_rele(os, FTAG);
1791 objset_t *os;
1795 if ((error = dmu_objset_hold(zc->zc_name, FTAG, &os)) != 0)
1797 if (dmu_objset_type(os) != DMU_OST_ZFS) {
1798 dmu_objset_rele(os, FTAG);
1801 error = zfs_obj_to_path(os, zc->zc_obj, zc->zc_value,
1803 dmu_objset_rele(os, FTAG);
1820 objset_t *os;
1824 if ((error = dmu_objset_hold(zc->zc_name, FTAG, &os)) != 0)
1826 if (dmu_objset_type(os) != DMU_OST_ZFS) {
1827 dmu_objset_rele(os, FTAG);
1830 error = zfs_obj_to_stats(os, zc->zc_obj, &zc->zc_stat, zc->zc_value,
1832 dmu_objset_rele(os, FTAG);
2049 zfs_ioc_objset_stats_impl(zfs_cmd_t *zc, objset_t *os)
2054 dmu_objset_fast_stat(os, &zc->zc_objset_stats);
2057 (error = dsl_prop_get_all(os, &nv)) == 0) {
2058 dmu_objset_stats(os, nv);
2067 dmu_objset_type(os) == DMU_OST_ZVOL) {
2068 error = zvol_get_stats(os, nv);
2093 objset_t *os;
2096 error = dmu_objset_hold(zc->zc_name, FTAG, &os);
2098 error = zfs_ioc_objset_stats_impl(zc, os);
2099 dmu_objset_rele(os, FTAG);
2142 nvl_add_zplprop(objset_t *os, nvlist_t *props, zfs_prop_t prop)
2151 if ((error = zfs_get_zplprop(os, prop, &value)) != 0)
2169 objset_t *os;
2173 if (err = dmu_objset_hold(zc->zc_name, FTAG, &os))
2176 dmu_objset_fast_stat(os, &zc->zc_objset_stats);
2185 dmu_objset_type(os) == DMU_OST_ZFS) {
2189 if ((err = nvl_add_zplprop(os, nv, ZFS_PROP_VERSION)) == 0 &&
2190 (err = nvl_add_zplprop(os, nv, ZFS_PROP_NORMALIZE)) == 0 &&
2191 (err = nvl_add_zplprop(os, nv, ZFS_PROP_UTF8ONLY)) == 0 &&
2192 (err = nvl_add_zplprop(os, nv, ZFS_PROP_CASE)) == 0)
2198 dmu_objset_rele(os, FTAG);
2235 objset_t *os;
2241 if (error = dmu_objset_hold(zc->zc_name, FTAG, &os)) {
2253 error = dmu_dir_list_next(os,
2259 dmu_objset_rele(os, FTAG);
2292 objset_t *os;
2295 error = dmu_objset_hold(zc->zc_name, FTAG, &os);
2306 dmu_objset_rele(os, FTAG);
2310 error = dmu_snapshot_list_next(os,
2317 dsl_pool_t *dp = os->os_dsl_dataset->ds_dir->dd_pool;
2332 dmu_objset_rele(os, FTAG);
2998 zfs_create_cb(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx)
3002 zfs_create_fs(os, cr, zct->zct_zplprops, tx);
3009 * os parent objset pointer (NULL if root fs)
3028 zfs_fill_zplprops_impl(objset_t *os, uint64_t zplver,
3079 VERIFY(zfs_get_zplprop(os, ZFS_PROP_NORMALIZE, &norm) == 0);
3089 VERIFY(zfs_get_zplprop(os, ZFS_PROP_UTF8ONLY, &u8) == 0);
3094 VERIFY(zfs_get_zplprop(os, ZFS_PROP_CASE, &sense) == 0);
3110 objset_t *os = NULL;
3135 if ((error = dmu_objset_hold(parentname, FTAG, &os)) != 0)
3138 error = zfs_fill_zplprops_impl(os, zplver, fuids_ok, sa_ok, createprops,
3140 dmu_objset_rele(os, FTAG);
3176 void (*cbfunc)(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx);
3464 objset_t *os;
3467 error = dmu_objset_hold(fsname, FTAG, &os);
3470 ds = dmu_objset_ds(os);
3474 dmu_objset_rele(os, FTAG);
3477 dmu_objset_rele(os, FTAG);
4806 objset_t *os;
4832 error = dmu_objset_hold(zc->zc_name, FTAG, &os);
4836 error = dmu_objset_userspace_upgrade(os);
4837 dmu_objset_rele(os, FTAG);
4992 objset_t *os = NULL;
4995 error = dmu_objset_hold(zc->zc_name, FTAG, &os);
4999 error = dmu_object_next(os, &zc->zc_obj, B_FALSE,
5000 dsl_dataset_phys(os->os_dsl_dataset)->ds_prev_snap_txg);
5002 dmu_objset_rele(os, FTAG);