fs-local revision 7c478bd95313f5f23a4c958a745db2134aa03244
0N/A# The contents of this file are subject to the terms of the 0N/A# Common Development and Distribution License, Version 1.0 only 0N/A# (the "License"). You may not use this file except in compliance 0N/A# See the License for the specific language governing permissions 0N/A# and limitations under the License. 0N/A# When distributing Covered Code, include this CDDL HEADER in each 0N/A# If applicable, add the following below this CDDL HEADER, with the 0N/A# fields enclosed by brackets "[]" replaced with your own identifying 873N/A# information: Portions Copyright [yyyy] [name of copyright owner] 0N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 868N/A# Use is subject to license terms. 338N/A#ident "%Z%%M% %I% %E% SMI" 0N/A# Mount all local filesystems. 0N/A# get rid of transient reboot entry in GRUB menu 0N/A# If there are non-global UFS filesystems with quotas, check and enable them. 1400N/A# vlist is the non-global filesystems in vfstab requesting quotas 1400N/A if (match($7, "(^|,)(quota|rq)(,|$)") != 0 && 1113N/A # mlist is the filesystems in mnttab that are ufs, mounted rw, 0N/A # and without quotas turned on 0N/A if (match($7, "(^|,)ro(,|$)") == 0) print $1; }'` 1113N/A # qlist is the intersection of vlist and mlist 0N/A else if (mlist == 0) { vlist[$1] = 1; } 0N/A else if (vlist[$1]) { print $1; } }'` 1113N/A # Just check and enable the non-global UFS file systems with quotas 0N/A # enabled. Note that "quotacheck -a" and "quotaon -a" will try 1113N/A # to process all UFS entries with quotas rather than excluding 0N/A # the entries with the global option (the global entries are handled 0N/A # later in another script if the cluster package is installed). 338N/A echo 'Checking UFS quotas: \c'