svc-volfs revision 6927f468b0af7710df000f6b16f6ee413e1e3007
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# CDDL HEADER START
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# The contents of this file are subject to the terms of the
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# Common Development and Distribution License (the "License").
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# You may not use this file except in compliance with the License.
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# or http://www.opensolaris.org/os/licensing.
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# See the License for the specific language governing permissions
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# and limitations under the License.
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# When distributing Covered Code, include this CDDL HEADER in each
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# If applicable, add the following below this CDDL HEADER, with the
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# fields enclosed by brackets "[]" replaced with your own identifying
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# information: Portions Copyright [yyyy] [name of copyright owner]
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# CDDL HEADER END
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# Use is subject to license terms.
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# ident "%Z%%M% %I% %E% SMI"
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von SchroederFMRI=svc:/system/filesystem/volfs:default
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# For modifying parameters passed to vold, do not edit
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# this script. Instead use svccfg(1m) to modify the SMF
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# repository. For example:
af313f59287bea73d6e453a1bdb397c3f68c3160Jonathan von Schroeder# svc:> select system/filesystem/volfs
# svc:/system/filesystem/volfs> setprop vold/never_writeback_label= "true"
# svc:/system/filesystem/volfs> exit
if [ ! -f $config_file ]; then
echo "\"$config_file\" does not exist"
exit $SMF_EXIT_ERR_CONFIG
if smf_is_nonglobalzone; then
exit $SMF_EXIT_OK
exit $SMF_EXIT_ERR_CONFIG
exit $SMF_EXIT_ERR_FATAL
exit $SMF_EXIT_OK