Merge branch 'master' of git://github.com/illumos/illumos-gate
[unleashed.git] / usr / src / lib / libgrubmgmt / common / libgrub_errno.def
blobd3e01c5efa472c961c3f7c4a2a75ffcf80200f5a
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef grub_errno_start
28 #define grub_errno_start(num)
29 #endif /* grub_errno_start */
31 #ifndef grub_errno_def
32 #define grub_errno_def(num, desc)
33 #endif /* grub_errno_def */
35 #ifndef grub_errno_end
36 #define grub_errno_end(num)
37 #endif /* grub_errno_end */
40 * !!! Should ALWAYS be the first one
42 grub_errno_start(EG_START = -10000)
44 grub_errno_def(EG_INVALIDCMD, "Invalid GRUB command")
45 grub_errno_def(EG_INVALIDMENU, "Invalid GRUB menu")
46 grub_errno_def(EG_INVALIDENT, "Invalid GRUB entry")
47 grub_errno_def(EG_INVALIDLINE, "Invalid GRUB line")
48 grub_errno_def(EG_INVALIDBARG, "Invalid GRUB boot arguments")
49 grub_errno_def(EG_FINDROOTFMT, "Invalid format for findroot")
50 grub_errno_def(EG_FINDROOTPRT, "Invalid partition number for findroot")
51 grub_errno_def(EG_FINDROOTSLC, "Invalid slice number for findroot")
52 grub_errno_def(EG_UNKNOWNFS, "Unknown file system")
53 grub_errno_def(EG_NOTZFS, "File system is not ZFS")
54 grub_errno_def(EG_OPENZFS, "Failed to open ZFS file system")
55 grub_errno_def(EG_INITFS, "Initialize file system")
56 grub_errno_def(EG_MOUNTFS, "Failed to mount file system")
57 grub_errno_def(EG_OPENFILE, "Failed to open file")
58 grub_errno_def(EG_NOTUNIX, "Kernel file is not unix")
59 grub_errno_def(EG_NOTABSPATH, "Kernel path is not absolute")
60 grub_errno_def(EG_OPENKERNFILE, "Failed to open kernel file")
61 grub_errno_def(EG_OPENMNTTAB, "Failed to open mnttab")
62 grub_errno_def(EG_GETMNTTAB, "Failed to get mnttab")
63 grub_errno_def(EG_CURROOT, "Failed to get current root info")
64 grub_errno_def(EG_NUMTOOBIG, "Requested entry number is too big")
65 grub_errno_def(EG_NOENTRY, "No such entry found")
66 grub_errno_def(EG_XVMNOTSUP, "xVM is not supported")
67 grub_errno_def(EG_BOOTSIGN, "Bootsign not found")
68 grub_errno_def(EG_UNKBOOTFS, "Unknown bootfs filesystem")
69 grub_errno_def(EG_ROOTNOTSUPP, "Selected GRUB menu entry contains "\
70 "unsupported \"root\" command")
73 * !!! Should ALWAYS be the last one
75 grub_errno_end(EG_END)
77 #undef grub_errno_start
78 #undef grub_errno_def
79 #undef grub_errno_end