xref: /onnv-gate/usr/src/lib/libgrubmgmt/common/libgrub_errno.def (revision 9444:ea6878d0d074)
19160SSherry.Moore@Sun.COM/*
29160SSherry.Moore@Sun.COM * CDDL HEADER START
39160SSherry.Moore@Sun.COM *
49160SSherry.Moore@Sun.COM * The contents of this file are subject to the terms of the
59160SSherry.Moore@Sun.COM * Common Development and Distribution License (the "License").
69160SSherry.Moore@Sun.COM * You may not use this file except in compliance with the License.
79160SSherry.Moore@Sun.COM *
89160SSherry.Moore@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99160SSherry.Moore@Sun.COM * or http://www.opensolaris.org/os/licensing.
109160SSherry.Moore@Sun.COM * See the License for the specific language governing permissions
119160SSherry.Moore@Sun.COM * and limitations under the License.
129160SSherry.Moore@Sun.COM *
139160SSherry.Moore@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each
149160SSherry.Moore@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159160SSherry.Moore@Sun.COM * If applicable, add the following below this CDDL HEADER, with the
169160SSherry.Moore@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying
179160SSherry.Moore@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner]
189160SSherry.Moore@Sun.COM *
199160SSherry.Moore@Sun.COM * CDDL HEADER END
209160SSherry.Moore@Sun.COM */
219160SSherry.Moore@Sun.COM
229160SSherry.Moore@Sun.COM/*
239160SSherry.Moore@Sun.COM * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
249160SSherry.Moore@Sun.COM * Use is subject to license terms.
259160SSherry.Moore@Sun.COM */
269160SSherry.Moore@Sun.COM
279160SSherry.Moore@Sun.COM#ifndef	grub_errno_start
289160SSherry.Moore@Sun.COM#define	grub_errno_start(num)
299160SSherry.Moore@Sun.COM#endif	/* grub_errno_start */
309160SSherry.Moore@Sun.COM
319160SSherry.Moore@Sun.COM#ifndef	grub_errno_def
329160SSherry.Moore@Sun.COM#define	grub_errno_def(num, desc)
339160SSherry.Moore@Sun.COM#endif	/* grub_errno_def */
349160SSherry.Moore@Sun.COM
359160SSherry.Moore@Sun.COM#ifndef	grub_errno_end
369160SSherry.Moore@Sun.COM#define	grub_errno_end(num)
379160SSherry.Moore@Sun.COM#endif	/* grub_errno_end */
389160SSherry.Moore@Sun.COM
399160SSherry.Moore@Sun.COM/*
409160SSherry.Moore@Sun.COM * !!! Should ALWAYS be the first one
419160SSherry.Moore@Sun.COM */
429160SSherry.Moore@Sun.COMgrub_errno_start(EG_START = -10000)
439160SSherry.Moore@Sun.COM
449160SSherry.Moore@Sun.COMgrub_errno_def(EG_INVALIDCMD,	"Invalid GRUB command")
459160SSherry.Moore@Sun.COMgrub_errno_def(EG_INVALIDMENU,	"Invalid GRUB menu")
469160SSherry.Moore@Sun.COMgrub_errno_def(EG_INVALIDENT,	"Invalid GRUB entry")
479160SSherry.Moore@Sun.COMgrub_errno_def(EG_INVALIDLINE,	"Invalid GRUB line")
489160SSherry.Moore@Sun.COMgrub_errno_def(EG_INVALIDBARG,	"Invalid GRUB boot arguments")
499160SSherry.Moore@Sun.COMgrub_errno_def(EG_FINDROOTFMT,	"Invalid format for findroot")
509160SSherry.Moore@Sun.COMgrub_errno_def(EG_FINDROOTPRT,	"Invalid partition number for findroot")
519160SSherry.Moore@Sun.COMgrub_errno_def(EG_FINDROOTSLC,	"Invalid slice number for findroot")
529160SSherry.Moore@Sun.COMgrub_errno_def(EG_UNKNOWNFS,	"Unknown file system")
539160SSherry.Moore@Sun.COMgrub_errno_def(EG_NOTZFS,	"File system is not ZFS")
549160SSherry.Moore@Sun.COMgrub_errno_def(EG_OPENZFS,	"Failed to open ZFS file system")
559160SSherry.Moore@Sun.COMgrub_errno_def(EG_INITFS,	"Initialize file system")
569160SSherry.Moore@Sun.COMgrub_errno_def(EG_MOUNTFS,	"Failed to mount file system")
579160SSherry.Moore@Sun.COMgrub_errno_def(EG_OPENFILE,	"Failed to open file")
589160SSherry.Moore@Sun.COMgrub_errno_def(EG_NOTUNIX,	"Kernel file is not unix")
599160SSherry.Moore@Sun.COMgrub_errno_def(EG_NOTABSPATH,	"Kernel path is not absolute")
609160SSherry.Moore@Sun.COMgrub_errno_def(EG_OPENKERNFILE,	"Failed to open kernel file")
619160SSherry.Moore@Sun.COMgrub_errno_def(EG_OPENMNTTAB,	"Failed to open mnttab")
629160SSherry.Moore@Sun.COMgrub_errno_def(EG_GETMNTTAB,	"Failed to get mnttab")
639160SSherry.Moore@Sun.COMgrub_errno_def(EG_CURROOT,	"Failed to get current root info")
649160SSherry.Moore@Sun.COMgrub_errno_def(EG_NUMTOOBIG,	"Requested entry number is too big")
659160SSherry.Moore@Sun.COMgrub_errno_def(EG_NOENTRY,	"No such entry found")
669160SSherry.Moore@Sun.COMgrub_errno_def(EG_XVMNOTSUP,	"xVM is not supported")
679160SSherry.Moore@Sun.COMgrub_errno_def(EG_BOOTSIGN,	"Bootsign not found")
689160SSherry.Moore@Sun.COMgrub_errno_def(EG_UNKBOOTFS,	"Unknown bootfs filesystem")
69*9444SKonstantin.Ananyev@Sun.COMgrub_errno_def(EG_ROOTNOTSUPP,	"Selected GRUB menu entry contains "\
70*9444SKonstantin.Ananyev@Sun.COM	"unsupported \"root\" command")
719160SSherry.Moore@Sun.COM
729160SSherry.Moore@Sun.COM/*
739160SSherry.Moore@Sun.COM * !!! Should ALWAYS be the last one
749160SSherry.Moore@Sun.COM */
759160SSherry.Moore@Sun.COMgrub_errno_end(EG_END)
769160SSherry.Moore@Sun.COM
779160SSherry.Moore@Sun.COM#undef	grub_errno_start
789160SSherry.Moore@Sun.COM#undef	grub_errno_def
799160SSherry.Moore@Sun.COM#undef	grub_errno_end
80