/*
* 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 2010 Nexenta Systems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _ERRMSG_H
#define _ERRMSG_H
#ifdef __cplusplus
extern "C" {
#endif
" add_drv [ -m '<permission> ','<...>' ]\n"\
" [ -n ]\n"\
" [ -f ]\n"\
" [ -v ]\n"\
" [ -i '<identify_name <...>' ] \n"\
" [ -b <basedir> ]\n"\
" [ -c <class_name> ]\n"\
" [ -p <dev_policy> ]\n"\
" <driver_module>\n"\
"Example:\n"\
" add_drv -m '* 0666 bin bin' -i 'acme,sd new,sd' sd \n"\
" Add 'sd' drive with identify names: acme,sd and new,sd.\n"\
" Every minor node will have the permission 0666,\n"\
" and be owned by bin with group bin.\n"
" characters; driver name too long (%s)\n"
#define ERR_ALIAS_IN_NAM_MAJ \
"Alias (\"%s\") already in use as driver name.\n"
#define ERR_ALIAS_IN_USE \
"(\"%s\") already in use as a driver or alias.\n"
#define ERR_NOT_GLOBAL_ZONE \
#define ERR_CONFIG \
"Warning: Driver (%s) successfully added to system but failed to attach\n"
#define ERR_DEVTREE \
"Warning: Unable to check for driver configuration conflicts.\n"
#define ERR_BAD_MAJNUM \
"Warning: Major number (%d) inconsistent with /etc/name_to_major file.\n"
"larger\nthan the maximum allowed value %u.\n"
#define ERR_LOCATION \
"Warning: %s-bit version of driver found at %s.\n"
"version of this driver exists.\n"
#define ERR_NOT_LOADABLE \
"%s-bit driver (%s) not loadable on %s-bit kernel.\n"
#define ERR_CONFIG_NOLOAD \
"System configuration files modified but %s driver not loaded or attached.\n"
#define ERR_SOL_LOCATION \
"Place (%s) driver in correct location and run devfsadm -i %s.\n"
#define INFO_UPDATE_ONLY \
"System updated but %s driver not yet configured.\n"
/* update_drv messages */
#define UPD_DRV_USAGE \
"Usage:\tupdate_drv [ -f | -v ] <driver_module>\n" \
"\tupdate_drv [ -b basedir ] [ -f | -v | -n ] -a\n" \
"\t\t[-m 'permission'] [-i 'identify_name']\n" \
"\t\t[-P privilege] [-p 'policy'] <driver_module>\n" \
"\tupdate_drv [ -b basedir ] [ -f | -v | -n ] -d\n" \
"\t\t[-m 'permission'] [-i 'identify_name']\n" \
"\t\t[-P privilege] [-p 'policy'] <driver_module>\n\n"\
"NOTE: at least one of m/i/P/p must be specified with -a and -d.\n"
/* remdrv messages */
#define REM_USAGE1 \
"Usage:\n\t rem_drv [ -C ] [ -b <basedir> ] [ -n ] driver_name\n"
#define ERR_DEVFSCLEAN \
"Warning: Cannot remove entries from devfs namespace for driver : %s.\n"
#define ERR_DEVFSALCLEAN \
"Warning: Cannot remove alias entries from devfs namespace for driver : %s .\n"
#define ERR_MODUN \
"Cannot unload module: %s\nWill be unloaded upon reboot.\n"
/* drvsubr messages */
#define ERR_NO_SPACE \
"Can't have space within double quote: %s. \
Use octal escape sequence \"\\040\".\n"
#define ERR_UPDATE_PERM \
"kernel update of permissions for driver %s failed (%d)\n"
#define ERR_REMDRV_CLEANUP \
"post-rem_drv devfs cleanup for driver %s failed (%d)\n"
#define ERR_PATH_ORIENTED_ALIAS \
"no device at specified path-oriented alias \"%s\"\n"
#ifdef __cplusplus
}
#endif
#endif /* _ERRMSG_H */