Lines Matching refs:Z_OK

489 	if (zonecfg_get_uuid(zone_name, uuid) == Z_OK &&  in lookup_zone_info()
514 sizeof (root))) != Z_OK) { in lookup_zone_info()
523 if ((err = zone_get_state(zent->zname, &zent->zstate_num)) != Z_OK) { in lookup_zone_info()
542 sizeof (zent->zbrand)) != Z_OK) { in lookup_zone_info()
553 return (Z_OK); in lookup_zone_info()
576 return (Z_OK); in lookup_zone_info()
584 if ((err = zonecfg_get_handle(zent->zname, handle)) != Z_OK) { in lookup_zone_info()
590 if ((err = zonecfg_get_iptype(handle, &zent->ziptype)) != Z_OK) { in lookup_zone_info()
597 return (Z_OK); in lookup_zone_info()
624 return (Z_OK); in fetch_zents()
633 return (Z_OK); in fetch_zents()
659 retv = Z_OK; in fetch_zents()
696 if (lookup_zone_info(name, zids[i], zentp) != Z_OK) { in fetch_zents()
727 if ((i = fetch_zents()) != Z_OK) { in zone_print_list()
737 return (Z_OK); in zone_print_list()
752 if (lookup_zone_info(name, ZONE_ID_UNDEFINED, &zent) != Z_OK) { in zone_print_list()
761 return (Z_OK); in zone_print_list()
772 if (fetch_zents() != Z_OK) in lookup_running_zone()
888 ze->zone_path, sizeof (ze->zone_path))) != Z_OK) { in crosscheck_zonepaths()
929 return (Z_OK); in crosscheck_zonepaths()
972 return (Z_OK); in validate_zonepath()
1015 if (crosscheck_zonepaths(rpath) != Z_OK) in validate_zonepath()
1117 if ((res = zone_get_state(target_zone, &state)) != Z_OK) { in validate_zonepath()
1172 return (err ? Z_ERR : Z_OK); in validate_zonepath()
1185 if ((err = zonecfg_get_handle(target_zone, handle)) != Z_OK) { in invoke_brand_handler()
1191 if (verify_brand(handle, cmd_num, argv) != Z_OK) { in invoke_brand_handler()
1196 return (Z_OK); in invoke_brand_handler()
1215 return (optopt == '?' ? Z_OK : Z_USAGE); in ready_func()
1226 != Z_OK) in ready_func()
1228 if (verify_details(CMD_READY, argv) != Z_OK) in ready_func()
1236 return (Z_OK); in ready_func()
1274 return (optopt == '?' ? Z_OK : Z_USAGE); in boot_func()
1302 != Z_OK) in boot_func()
1304 if (verify_details(CMD_BOOT, argv) != Z_OK) in boot_func()
1312 return (Z_OK); in boot_func()
1352 if (zonecfg_get_uuid(zeptr->zname, uuid) == Z_OK && in fake_up_local_zone()
1382 return (optopt == '?' ? Z_OK : Z_USAGE); in list_func()
1419 retv = Z_OK; in list_func()
1433 return (optopt == '?' ? Z_OK : Z_USAGE); in list_func()
1469 &zent) == Z_OK) { in list_func()
1481 if (invoke_brand_handler(CMD_LIST, argv) != Z_OK) in list_func()
1484 return (output ? Z_OK : Z_ERR); in list_func()
1561 return (Z_OK); in auth_check()
1600 return (Z_OK); in auth_check()
1716 &zent->zstate_num)) != Z_OK) { in sanity_check()
1730 if ((err = zone_get_state(zone, &state)) != Z_OK) { in sanity_check()
1815 return (Z_OK); in sanity_check()
1834 return (optopt == '?' ? Z_OK : Z_USAGE); in halt_func()
1850 != Z_OK) in halt_func()
1856 if (invoke_brand_handler(CMD_HALT, argv) != Z_OK) in halt_func()
1861 B_TRUE) == 0) ? Z_OK : Z_ERR); in halt_func()
1883 return (optopt == '?' ? Z_OK : Z_USAGE); in shutdown_func()
1914 != Z_OK) in shutdown_func()
1917 if (zonecfg_call_zoneadmd(target_zone, &zarg, locale, B_TRUE) != Z_OK) in shutdown_func()
1922 B_FALSE) != Z_OK) in shutdown_func()
1927 B_TRUE) != Z_OK) in shutdown_func()
1930 return (Z_OK); in shutdown_func()
1949 return (optopt == '?' ? Z_OK : Z_USAGE); in reboot_func()
1978 != Z_OK) in reboot_func()
1980 if (verify_details(CMD_REBOOT, argv) != Z_OK) in reboot_func()
1985 ? Z_OK : Z_ERR); in reboot_func()
2001 return (Z_OK); in get_hook()
2021 sizeof (zonepath))) != Z_OK) { in verify_brand()
2040 if (err != Z_OK) in verify_brand()
2043 return (Z_OK); in verify_brand()
2063 return ((err == ZONE_SUBPROC_OK) ? Z_OK : Z_BRAND_ERROR); in verify_brand()
2080 if (zonecfg_setrctlent(handle) != Z_OK) { in verify_rctls()
2087 while (zonecfg_getrctlent(handle, &rctltab) == Z_OK) { in verify_rctls()
2102 != Z_OK) { in verify_rctls()
2123 error = Z_OK; in verify_rctls()
2144 if (error == Z_NO_ENTRY || (error == Z_OK && strlen(poolname) == 0)) { in verify_pool()
2150 if (error != Z_OK) { in verify_pool()
2161 return (Z_OK); in verify_pool()
2172 return (Z_OK); in verify_pool()
2179 return (Z_OK); in verify_pool()
2189 return (Z_OK); in verify_pool()
2206 return (Z_OK); in verify_fs_special()
2231 return (Z_OK); in verify_fs_special()
2248 int return_code = Z_OK; in verify_filesystems()
2258 if (zonecfg_setfsent(handle) != Z_OK) { in verify_filesystems()
2263 while (zonecfg_getfsent(handle, &fstab) == Z_OK) { in verify_filesystems()
2330 if ((return_code = verify_fs_special(&fstab)) != Z_OK) in verify_filesystems()
2367 case Z_OK: in verify_limitpriv()
2414 int res = Z_OK; in get_local_netifs()
2519 if (res != Z_OK) { in get_local_netifs()
2556 if (get_local_netifs(&local_if_cnt, &local_ifs) != Z_OK) { in print_net_err()
2607 int return_code = Z_OK; in verify_handle()
2620 if ((err = zonecfg_get_iptype(handle, &iptype)) != Z_OK) { in verify_handle()
2626 if ((err = zonecfg_setnwifent(handle)) != Z_OK) { in verify_handle()
2632 while (zonecfg_getnwifent(handle, &nwiftab) == Z_OK) { in verify_handle()
2646 nwiftab.zone_nwif_address, &lifr)) != Z_OK) { in verify_handle()
2760 if (verify_filesystems(handle) != Z_OK) in verify_handle()
2762 if (!in_alt_root && verify_rctls(handle) != Z_OK) in verify_handle()
2764 if (!in_alt_root && verify_pool(handle) != Z_OK) in verify_handle()
2766 if (!in_alt_root && verify_brand(handle, cmd_num, argv) != Z_OK) in verify_handle()
2768 if (!in_alt_root && verify_datasets(handle) != Z_OK) in verify_handle()
2779 verify_limitpriv(handle) != Z_OK) in verify_handle()
2790 int return_code = Z_OK; in verify_details()
2797 if ((err = zonecfg_get_handle(target_zone, handle)) != Z_OK) { in verify_details()
2804 Z_OK) { in verify_details()
2816 sizeof (checkpath))) != Z_OK) { in verify_details()
2835 validate_zonepath(zonepath, cmd_num) != Z_OK) { in verify_details()
2841 if (verify_handle(cmd_num, handle, argv) != Z_OK) in verify_details()
2862 return (optopt == '?' ? Z_OK : Z_USAGE); in verify_func()
2873 != Z_OK) in verify_func()
2884 return (Z_OK); in addoptions()
2894 return (Z_OK); in addoptions()
2913 return (Z_OK); in addopt()
2942 sizeof (zonepath))) != Z_OK) { in install_func()
2955 target_zone, zonepath) != Z_OK) { in install_func()
2962 target_zone, zonepath) != Z_OK) { in install_func()
3013 if (addopt(cmdbuf, optopt, optarg, sizeof (cmdbuf)) != Z_OK) { in install_func()
3018 != Z_OK) { in install_func()
3025 if (addopt(cmdbuf, 0, argv[optind], sizeof (cmdbuf)) != Z_OK) { in install_func()
3031 != Z_OK) { in install_func()
3039 B_FALSE) != Z_OK) in install_func()
3041 if (verify_details(CMD_INSTALL, argv) != Z_OK) in install_func()
3044 if (zonecfg_grab_lock_file(target_zone, &lockfd) != Z_OK) { in install_func()
3050 if (err != Z_OK) { in install_func()
3074 return (Z_OK); in install_func()
3076 if ((err = zone_set_state(target_zone, ZONE_STATE_INSTALLED)) != Z_OK) { in install_func()
3105 if ((temp_err = cleanup_zonepath(zonepath, B_FALSE)) != Z_OK) { in install_func()
3110 ZONE_STATE_CONFIGURED)) != Z_OK) { in install_func()
3118 return ((err == Z_OK) ? Z_OK : Z_ERR); in install_func()
3129 if ((err = zonecfg_setdevent(t_handle)) != Z_OK) { in warn_dev_match()
3135 while (zonecfg_getdevent(t_handle, &t_devtab) == Z_OK) { in warn_dev_match()
3136 if ((err = zonecfg_setdevent(s_handle)) != Z_OK) { in warn_dev_match()
3144 while (zonecfg_getdevent(s_handle, &s_devtab) == Z_OK) { in warn_dev_match()
3251 if ((err = zonecfg_setfsent(t_handle)) != Z_OK) { in warn_fs_match()
3258 while (zonecfg_getfsent(t_handle, &t_fstab) == Z_OK) { in warn_fs_match()
3259 if ((err = zonecfg_setfsent(s_handle)) != Z_OK) { in warn_fs_match()
3267 while (zonecfg_getfsent(s_handle, &s_fstab) == Z_OK) { in warn_fs_match()
3295 if ((err = zonecfg_setnwifent(t_handle)) != Z_OK) { in warn_ip_match()
3302 while (zonecfg_getnwifent(t_handle, &t_nwiftab) == Z_OK) { in warn_ip_match()
3309 if ((err = zonecfg_setnwifent(s_handle)) != Z_OK) { in warn_ip_match()
3317 while (zonecfg_getnwifent(s_handle, &s_nwiftab) == Z_OK) { in warn_ip_match()
3350 if ((err = zonecfg_setdsent(t_handle)) != Z_OK) { in warn_dataset_match()
3356 while (zonecfg_getdsent(t_handle, &t_dstab) == Z_OK) { in warn_dataset_match()
3357 if ((err = zonecfg_setdsent(s_handle)) != Z_OK) { in warn_dataset_match()
3365 while (zonecfg_getdsent(s_handle, &s_dstab) == Z_OK) { in warn_dataset_match()
3391 sizeof (source_brand))) != Z_OK) { in valid_brand_clone()
3409 return (Z_OK); in valid_brand_clone()
3415 int err = Z_OK; in validate_clone()
3423 if ((err = zonecfg_get_handle(target_zone, t_handle)) != Z_OK) { in validate_clone()
3435 if ((err = zonecfg_get_handle(source_zone, s_handle)) != Z_OK) { in validate_clone()
3443 if (err != Z_OK) in validate_clone()
3462 return ((err == Z_OK) ? Z_OK : Z_ERR); in validate_clone()
3503 return (Z_OK); in copy_zone()
3602 B_FALSE) != Z_OK) in clone_func()
3604 if (verify_details(CMD_CLONE, argv) != Z_OK) in clone_func()
3633 &zent->zstate_num)) != Z_OK) { in clone_func()
3648 if ((err = zone_get_state(source_zone, &state)) != Z_OK) { in clone_func()
3665 if (validate_clone(source_zone, target_zone) != Z_OK) in clone_func()
3668 if (zonecfg_grab_lock_file(target_zone, &lockfd) != Z_OK) { in clone_func()
3676 sizeof (source_zonepath))) != Z_OK) { in clone_func()
3683 != Z_OK) { in clone_func()
3699 zonepath) != Z_OK) { in clone_func()
3707 target_zone, zonepath) != Z_OK) { in clone_func()
3716 source_zone, source_zonepath) != Z_OK) { in clone_func()
3725 source_zone, source_zonepath) != Z_OK) { in clone_func()
3734 brand_get_validatesnap, target_zone, zonepath) != Z_OK) { in clone_func()
3744 if (addoptions(cmdbuf, argv, sizeof (cmdbuf)) != Z_OK) { in clone_func()
3750 if (addoptions(postcmdbuf, argv, sizeof (postcmdbuf)) != Z_OK) { in clone_func()
3757 != Z_OK) { in clone_func()
3780 return (Z_OK); in clone_func()
3785 return (Z_OK); in clone_func()
3810 if (err != Z_OK) in clone_func()
3815 if (err == Z_OK && postcmdbuf[0] != '\0') { in clone_func()
3828 if (err == Z_OK) { in clone_func()
3830 if (err != Z_OK) { in clone_func()
3837 return ((err == Z_OK) ? Z_OK : Z_ERR); in clone_func()
3885 return (Z_OK); in cleanup_zonepath()
3938 ZONE_SUBPROC_OK) ? Z_OK : Z_ERR); in cleanup_zonepath()
3950 if (destroy_zfs(zonepath) == Z_OK) in cleanup_zonepath()
3951 return (Z_OK); in cleanup_zonepath()
3956 ZONE_SUBPROC_OK) ? Z_OK : Z_ERR); in cleanup_zonepath()
3964 ? Z_OK : Z_ERR); in cleanup_zonepath()
3996 return (optopt == '?' ? Z_OK : Z_USAGE); in move_func()
4008 != Z_OK) in move_func()
4010 if (verify_details(CMD_MOVE, argv) != Z_OK) in move_func()
4018 if (validate_zonepath(new_zonepath, CMD_MOVE) != Z_OK) in move_func()
4022 != Z_OK) { in move_func()
4087 if ((err = zonecfg_get_handle(target_zone, handle)) != Z_OK) { in move_func()
4093 if (zonecfg_grab_lock_file(target_zone, &lockfd) != Z_OK) { in move_func()
4159 if (err != Z_OK) in move_func()
4173 if ((err = zonecfg_set_zonepath(handle, new_zonepath)) != Z_OK) { in move_func()
4179 if ((err = zonecfg_save(handle)) != Z_OK) { in move_func()
4244 if (err != Z_OK) { in move_func()
4268 if (err != Z_OK) { in move_func()
4277 return ((err == Z_OK) ? Z_OK : Z_ERR); in move_func()
4333 B_FALSE) != Z_OK) in detach_func()
4335 if (verify_details(CMD_DETACH, argv) != Z_OK) in detach_func()
4355 != Z_OK) { in detach_func()
4368 zonepath) != Z_OK) { in detach_func()
4375 target_zone, zonepath) != Z_OK) { in detach_func()
4384 if (addoptions(precmdbuf, argv, sizeof (precmdbuf)) != Z_OK) in detach_func()
4388 if (addoptions(cmdbuf, argv, sizeof (cmdbuf)) != Z_OK) in detach_func()
4391 if (execute && zonecfg_grab_lock_file(target_zone, &lockfd) != Z_OK) { in detach_func()
4438 return (Z_OK); in detach_func()
4461 if ((err = zonecfg_get_handle(target_zone, handle)) != Z_OK) { in detach_func()
4466 (execute ? 0 : ZONE_DRY_RUN))) != Z_OK) { in detach_func()
4473 if (err != Z_OK) in detach_func()
4482 ZONE_STATE_CONFIGURED)) != Z_OK) { in detach_func()
4495 return ((err == Z_OK) ? Z_OK : Z_ERR); in detach_func()
4514 int res = Z_OK; in dryrun_get_brand()
4577 != Z_OK) { in dryrun_get_brand()
4613 != Z_OK) { in dryrun_get_brand()
4623 return ((res == Z_OK) ? Z_OK : Z_ERR); in dryrun_get_brand()
4714 B_TRUE, forced_update) != Z_OK) in attach_func()
4716 if (verify_details(CMD_ATTACH, argv) != Z_OK) in attach_func()
4721 sizeof (zonepath))) != Z_OK) { in attach_func()
4729 sizeof (tmpmanifest)) != Z_OK) in attach_func()
4737 if (verify_brand(NULL, CMD_ATTACH, argv) != Z_OK) in attach_func()
4750 zonepath) != Z_OK) { in attach_func()
4757 target_zone, zonepath) != Z_OK) { in attach_func()
4766 if (addoptions(cmdbuf, argv, sizeof (cmdbuf)) != Z_OK) in attach_func()
4770 if (addoptions(postcmdbuf, argv, sizeof (postcmdbuf)) != Z_OK) in attach_func()
4774 if (zonecfg_grab_lock_file(target_zone, &lockfd) != Z_OK) { in attach_func()
4815 return (Z_OK); in attach_func()
4820 if (validate_zonepath(zonepath, CMD_ATTACH) != Z_OK) { in attach_func()
4832 } else if ((err = zonecfg_get_handle(target_zone, handle)) != Z_OK) { in attach_func()
4841 if (err == Z_OK && in attach_func()
4842 (err = zone_set_state(target_zone, ZONE_STATE_INSTALLED)) != Z_OK) { in attach_func()
4852 if (err == Z_OK && !force && postcmdbuf[0] != '\0') { in attach_func()
4857 ZONE_STATE_CONFIGURED)) != Z_OK) { in attach_func()
4866 return ((err == Z_OK) ? Z_OK : Z_ERR); in attach_func()
4937 B_FALSE) != Z_OK) in uninstall_func()
4943 if (invoke_brand_handler(CMD_UNINSTALL, argv) != Z_OK) in uninstall_func()
4951 return (Z_OK); in uninstall_func()
4962 sizeof (zonepath))) != Z_OK) { in uninstall_func()
4978 target_zone, zonepath) != Z_OK) { in uninstall_func()
4986 target_zone, zonepath) != Z_OK) { in uninstall_func()
4995 if (addoptions(precmdbuf, argv, sizeof (precmdbuf)) != Z_OK) in uninstall_func()
4999 if (addoptions(cmdbuf, argv, sizeof (cmdbuf)) != Z_OK) in uninstall_func()
5004 sizeof (rootpath))) != Z_OK) { in uninstall_func()
5016 if (zonecfg_ping_zoneadmd(target_zone) == Z_OK) { in uninstall_func()
5024 if (zonecfg_grab_lock_file(target_zone, &lockfd) != Z_OK) { in uninstall_func()
5053 if (err != Z_OK) { in uninstall_func()
5077 return (Z_OK); in uninstall_func()
5081 return (Z_OK); in uninstall_func()
5084 if ((err = cleanup_zonepath(zonepath, B_FALSE)) != Z_OK) { in uninstall_func()
5093 if (err != Z_OK) { in uninstall_func()
5128 != Z_OK) in mount_func()
5130 if (verify_details(CMD_MOUNT, argv) != Z_OK) in mount_func()
5139 return (Z_OK); in mount_func()
5151 != Z_OK) in unmount_func()
5159 return (Z_OK); in unmount_func()
5198 != Z_OK) in mark_func()
5204 if (invoke_brand_handler(CMD_MARK, argv) != Z_OK) in mark_func()
5207 if (zonecfg_grab_lock_file(target_zone, &lockfd) != Z_OK) { in mark_func()
5214 if (err != Z_OK) { in mark_func()
5233 sizeof (class_name)) != Z_OK) { in check_sched_fss()
5245 return (Z_OK); in check_sched_fss()
5252 int res = Z_OK; in check_cpu_shares_sched()
5255 if ((err = zonecfg_setrctlent(handle)) != Z_OK) { in check_cpu_shares_sched()
5261 while (zonecfg_getrctlent(handle, &rctl) == Z_OK) { in check_cpu_shares_sched()
5263 if (check_sched_fss(handle) != Z_OK) in check_cpu_shares_sched()
5350 (err2 == Z_NO_ENTRY || (err2 == Z_OK && strlen(poolname) == 0))) in pool_configured()
5372 int res = Z_OK; in apply_func()
5408 if ((err = zonecfg_get_handle(target_zone, handle)) != Z_OK) { in apply_func()
5416 if ((err = zonecfg_apply_rctls(target_zone, handle)) != Z_OK) { in apply_func()
5422 if ((err = check_cpu_shares_sched(handle)) != Z_OK) in apply_func()
5443 pool_err, sizeof (pool_err))) != Z_OK) { in apply_func()
5456 sizeof (pool_err))) != Z_OK) { in apply_func()
5470 if (zonecfg_getmcapent(handle, &mcap) == Z_OK) { in apply_func()
5480 if (zonecfg_enable_rcapd(smf_err, sizeof (smf_err)) != Z_OK) { in apply_func()
5513 Z_OK) in sysboot_func()
5523 if ((err = zonecfg_get_handle(target_zone, zone_handle)) != Z_OK) { in sysboot_func()
5530 sizeof (zonepath))) != Z_OK) { in sysboot_func()
5546 if (err != Z_OK) { in sysboot_func()
5558 do_subproc(cmdbuf), B_FALSE) == ZONE_SUBPROC_OK) ? Z_OK : in sysboot_func()
5560 return (Z_OK); in sysboot_func()
5570 return (Z_OK); in help_func()
5577 return (optopt == '?' ? Z_OK : Z_USAGE); in help_func()
5593 return (Z_OK); in help_func()
5698 if (init_zfs() != Z_OK) in main()
5740 sizeof (newtarget)) == Z_OK) in main()
5759 sizeof (default_brand)) != Z_OK) { in main()
5771 sizeof (target_brand)) != Z_OK) { in main()