2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A * This file contains high level functions used by multiple utilities. 2N/A * Check whether the platform is on the fastreboot_blacklist. 2N/A * Return 1 if the platform has been blacklisted, 0 otherwise. 2N/A * If there's no SMBIOS, assume it's blacklisted. 2N/A * If we can't read system info, assume it's blacklisted. 2N/A * If we can't read the "platforms" property from property group 2N/A * BOOT_CONFIG_PG_FBBLACKLIST, assume no platforms have 2N/A * Add or get a property group given an FMRI. 2N/A * Return SCF_SUCCESS on success, SCF_FAILED on failure. 2N/A * If the property group already exists, return SCF_SUCCESS. 2N/A * It prints errors with uu_warn(). 2N/A * Property vector for BOOT_CONFIG_PG_PARAMS property group. 2N/A * Unset both flags if the platform has been 2N/A#
endif /* FASTREBOOT_DEBUG */ 2N/A * Get or set properties in non-persistent "config_ovr" property group 2N/A * It prints errors with uu_warn(). 2N/A * Property vector for BOOT_CONFIG_PG_OVR property group. 2N/A "property group '%s'\n",
2N/A#
endif /* FASTREBOOT_DEBUG */ 2N/A "property '%s': %s\n",
set ?
"set" :
"get",
2N/A#
endif /* FASTREBOOT_DEBUG */ 2N/A * Get values of properties in non-persistent "config_ovr" property group. 2N/A * Check whether Fast Reboot is the default operating mode. 2N/A * 1. the platform is xVM 2N/A * 5. the platform has been blacklisted. 2N/A * Return non-zero otherwise. 2N/A * If we are on xVM, do not fast reboot by default. 2N/A * Get property values from "config" property group 2N/A * Get property values from non-persistent "config_ovr" property group