i.mptconf revision 60fffc19b6d98cdde54f6ad4c249f6cd4560d04b
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
#
{
return
fi
cat >> $1 << EOF
#
# The mpt driver, as a pHCI driver, must specify the vHCI class it
# belongs to(scsi_vhci).
#
EOF
}
{
return
fi
cat >> $1 << EOF
#
# I/O multipathing feature (MPxIO) can be enabled or disabled using
# mpxio-disable property. Setting mpxio-disable="no" will activate
# I/O multipathing; setting mpxio-disable="yes" disables the feature.
#
# Global mpxio-disable property:
#
# To globally enable MPxIO on all mpt controllers set:
# mpxio-disable="no";
#
# To globally disable MPxIO on all mpt controllers set:
# mpxio-disable="yes";
#
# You can also enable or disable MPxIO on a per HBA basis.
# Per HBA settings override the global setting for the specified HBAs.
# To disable MPxIO on a controller whose parent is /pci@7c0/pci@0/pci@9
# and the unit-address is "0" set:
# name="mpt" parent="/pci@7c0/pci@0/pci@9" unit-address="0" mpxio-disable="yes";
#
EOF
}
{
return
fi
cat >> $1 << EOF
#
# The property tape is only used for X86
#
EOF
}
{
# replace old copyright with new one
HEADER="^#.* Copyright.*Sun Microsystems.*$"
# replace / by \/
then
fi
fi
# replace old ident with new ident
HEADER="^#.*ident.*SMI\"$"
# replace / by \/
then
fi
fi
# remove useless property flow_control and queue
# check the property named tape and that the property is
# only used on i386 platform
-e '/^flow_control="dmult" queue="qsort" tape="sctp";$/d' \
if [ $? != 0 ] ; then
echo 'tape="sctp";' >> $2
fi
fi
# check for property named ddi-vhci-class
if [ $? != 0 ] ; then
echo 'ddi-vhci-class="scsi_vhci";' >> $2
fi
# check for property named mpxio-disable
if [ $? != 0 ] ; then
echo 'mpxio-disable="yes";' >> $2
fi
}
if [ ! -f $dest ]; then
if [ "$ARCH" = "i386" ]; then
# add property tape for i386 platform
echo 'tape="sctp";' >> $dest
fi
else
# upgrading solaris
fi
fi
exit 0