Lines Matching refs:mos

161 	objset_t *mos = dp->dp_meta_objset;  in dsl_deleg_set_sync()  local
170 zapobj = dsl_dir_phys(dd)->dd_deleg_zapobj = zap_create(mos, in dsl_deleg_set_sync()
182 if (zap_lookup(mos, zapobj, whokey, 8, 1, &jumpobj) != 0) { in dsl_deleg_set_sync()
183 jumpobj = zap_create_link(mos, DMU_OT_DSL_PERMS, in dsl_deleg_set_sync()
191 VERIFY(zap_update(mos, jumpobj, in dsl_deleg_set_sync()
206 objset_t *mos = dp->dp_meta_objset; in dsl_deleg_unset_sync() local
224 if (zap_lookup(mos, zapobj, whokey, 8, in dsl_deleg_unset_sync()
226 (void) zap_remove(mos, zapobj, whokey, tx); in dsl_deleg_unset_sync()
227 VERIFY(0 == zap_destroy(mos, jumpobj, tx)); in dsl_deleg_unset_sync()
234 if (zap_lookup(mos, zapobj, whokey, 8, 1, &jumpobj) != 0) in dsl_deleg_unset_sync()
241 (void) zap_remove(mos, jumpobj, perm, tx); in dsl_deleg_unset_sync()
242 if (zap_count(mos, jumpobj, &n) == 0 && n == 0) { in dsl_deleg_unset_sync()
243 (void) zap_remove(mos, zapobj, in dsl_deleg_unset_sync()
245 VERIFY(0 == zap_destroy(mos, in dsl_deleg_unset_sync()
311 objset_t *mos; in dsl_deleg_get() local
327 mos = dp->dp_meta_objset; in dsl_deleg_get()
341 zap_count(mos, in dsl_deleg_get()
346 for (zap_cursor_init(basezc, mos, in dsl_deleg_get()
356 for (zap_cursor_init(zc, mos, baseza->za_first_integer); in dsl_deleg_get()
416 dsl_check_access(objset_t *mos, uint64_t zapobj, in dsl_check_access() argument
424 error = zap_lookup(mos, zapobj, whokey, 8, 1, &jumpobj); in dsl_check_access()
426 error = zap_lookup(mos, jumpobj, perm, 8, 1, &zero); in dsl_check_access()
437 dsl_check_user_access(objset_t *mos, uint64_t zapobj, const char *perm, in dsl_check_user_access() argument
447 if (dsl_check_access(mos, zapobj, in dsl_check_user_access()
453 if (dsl_check_access(mos, zapobj, in dsl_check_user_access()
459 if (dsl_check_access(mos, zapobj, in dsl_check_user_access()
468 if (dsl_check_access(mos, zapobj, in dsl_check_user_access()
481 dsl_load_sets(objset_t *mos, uint64_t zapobj, in dsl_load_sets() argument
494 error = zap_lookup(mos, zapobj, whokey, 8, 1, &jumpobj); in dsl_load_sets()
499 for (zap_cursor_init(&zc, mos, jumpobj); in dsl_load_sets()
522 dsl_load_user_sets(objset_t *mos, uint64_t zapobj, avl_tree_t *avl, in dsl_load_user_sets() argument
530 (void) dsl_load_sets(mos, zapobj, in dsl_load_user_sets()
534 (void) dsl_load_sets(mos, zapobj, in dsl_load_user_sets()
537 (void) dsl_load_sets(mos, zapobj, in dsl_load_user_sets()
544 (void) dsl_load_sets(mos, zapobj, in dsl_load_user_sets()
560 objset_t *mos; in dsl_deleg_access_impl() local
565 mos = dp->dp_meta_objset; in dsl_deleg_access_impl()
567 if (dsl_delegation_on(mos) == B_FALSE) in dsl_deleg_access_impl()
612 dsl_load_user_sets(mos, zapobj, &permsets, checkflag, cr); in dsl_deleg_access_impl()
621 error = dsl_check_access(mos, zapobj, in dsl_deleg_access_impl()
629 error = dsl_load_sets(mos, zapobj, in dsl_deleg_access_impl()
642 error = dsl_check_user_access(mos, zapobj, perm, checkflag, cr); in dsl_deleg_access_impl()
684 objset_t *mos = dd->dd_pool->dp_meta_objset; in copy_create_perms() local
694 if (zap_lookup(mos, pzapobj, whokey, 8, 1, &pjumpobj) != 0) in copy_create_perms()
699 zapobj = dsl_dir_phys(dd)->dd_deleg_zapobj = zap_create(mos, in copy_create_perms()
706 if (zap_lookup(mos, zapobj, whokey, 8, 1, &jumpobj) == ENOENT) { in copy_create_perms()
707 jumpobj = zap_create(mos, DMU_OT_DSL_PERMS, DMU_OT_NONE, 0, tx); in copy_create_perms()
708 VERIFY(zap_add(mos, zapobj, whokey, 8, 1, &jumpobj, tx) == 0); in copy_create_perms()
712 for (zap_cursor_init(&zc, mos, pjumpobj); in copy_create_perms()
718 VERIFY(zap_update(mos, jumpobj, za->za_name, in copy_create_perms()
750 dsl_deleg_destroy(objset_t *mos, uint64_t zapobj, dmu_tx_t *tx) in dsl_deleg_destroy() argument
759 for (zap_cursor_init(&zc, mos, zapobj); in dsl_deleg_destroy()
763 VERIFY(0 == zap_destroy(mos, za->za_first_integer, tx)); in dsl_deleg_destroy()
766 VERIFY(0 == zap_destroy(mos, zapobj, tx)); in dsl_deleg_destroy()