xref: /titanic_44/usr/src/cmd/boot/bootadm/message.h (revision bda1f129971950880940a17bab0bf096d5744b0c)
1 /*
2  * CDDL HEADER START
3  *
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.
7  *
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.
12  *
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]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef	_MESSAGE_H
27 #define	_MESSAGE_H
28 
29 #ifdef	__cplusplus
30 extern "C" {
31 #endif
32 
33 #include <libintl.h>
34 
35 #define	FILE_MISS gettext("file not found: %s\n")
36 
37 #define	ARCH_EXEC_MISS gettext("archive creation file not found: %s: %s\n")
38 
39 #define	PATH_EXEC_OWNER gettext("%s is not owned by %d, skipping\n")
40 
41 #define	PATH_EXEC_LINK gettext("%s is not a regular file, skipping\n")
42 
43 #define	PATH_EXEC_PERMS gettext("%s is others or group writable, skipping\n")
44 
45 #define	UPDATE_CACHE_OLD gettext("archive cache is out of sync. Rebuilding.\n")
46 
47 #define	MUST_BE_ROOT gettext("you must be root to run this command\n")
48 
49 #define	NOT_ARCHIVE_BOOT \
50 	gettext("%s: not a boot archive based Solaris instance\n")
51 
52 #define	MULT_CMDS gettext("multiple commands specified: -%c\n")
53 
54 #define	INVALID_SUBCMD gettext("invalid sub-command specified: %s\n")
55 
56 #define	NEED_SUBCMD gettext("this command requires a sub-command\n")
57 
58 #define	NEED_CMD gettext("a command option must be specified\n")
59 
60 #define	DUP_OPT gettext("duplicate options specified: -%c\n")
61 
62 #define	BAD_OPT gettext("invalid option or missing option argument: -%c\n")
63 
64 #define	NO_OPT_REQ gettext("this sub-command (%s) does not take options\n")
65 
66 #define	MISS_OPT gettext("an option is required for this sub-command: %s\n")
67 
68 #define	ABS_PATH_REQ gettext("path is not absolute: %s\n")
69 
70 #define	PATH_TOO_LONG \
71 	gettext("unable to create path on mountpoint %s, path too long\n")
72 
73 #define	TOO_LONG gettext("the following line is too long (> %d chars)\n\t%s\n")
74 
75 #define	NOT_GRUB_BOOT \
76 	gettext("not a GRUB based Solaris instance. Operation not supported\n")
77 
78 #define	NOT_GRUB_ROOT gettext("missing /boot/grub on root: %s\n")
79 
80 #define	ALT_ROOT_INVALID \
81     gettext("an alternate root (%s) cannot be used with this sub-command\n")
82 
83 #define	NO_ENTRY gettext("no %s entry found\n")
84 
85 #define	NO_MATCH_ENTRY gettext("no matching entry found\n")
86 
87 #define	NO_BOOTADM_MATCH gettext("no matching bootadm entry found\n")
88 
89 #define	NO_MEM gettext("could not allocate memory: size = %u\n")
90 
91 #define	CANNOT_LOCATE_GRUB_MENU gettext("cannot find GRUB menu\n")
92 
93 #define	GRUB_MENU_PATH gettext("the location for the active GRUB menu is: %s\n")
94 
95 #define	STUBBOOT_DIR_NOT_FOUND gettext("cannot find stubboot directory\n")
96 
97 #define	NO_CMD gettext("no command at line %d\n")
98 
99 #define	DUP_CMD \
100     gettext("duplicate command %s at line %d of %sboot/grub/menu.lst\n")
101 
102 #define	NO_MENU gettext("menu file not found: %s\n")
103 
104 #define	GLOBAL_CMD gettext("%s %s\n")
105 
106 #define	INVALID_ENTRY gettext("invalid boot entry number: %s\n")
107 
108 #define	INVALID_OPTION gettext("invalid option: %s\n")
109 
110 #define	SUBOPT_MISS gettext("missing suboption: %s\n")
111 
112 #define	NO_KERNEL gettext("no kernel line found in entry %d\n")
113 
114 #define	EMPTY_MENU gettext("the GRUB menu is empty\n")
115 
116 #define	UNLINK_EMPTY gettext("file is empty, deleting file: %s\n")
117 
118 #define	UNLINK_FAIL gettext("failed to unlink file: %s: %s\n")
119 
120 #define	NO_MATCH gettext("no matching entry found: %s\n")
121 
122 #define	INVALID_OPT gettext("invalid option: %s\n")
123 
124 #define	FAILED_SIG gettext("cannot set SIGCHLD disposition: %s\n")
125 
126 #define	CANT_UNBLOCK_SIGCHLD gettext("cannot unblock SIGCHLD: %s\n")
127 
128 #define	NO3264ELF \
129     gettext("WARNING: file %s is neither a 32-bit nor a 64-bit ELF\n")
130 
131 #define	BLOCKED_SIG gettext("SIGCHLD signal blocked. Cannot exec: %s\n")
132 
133 #define	POPEN_FAIL gettext("popen failed: %s\n")
134 
135 #define	PCLOSE_FAIL gettext("pclose failed: %s\n")
136 
137 #define	EXEC_FAIL gettext("command terminated abnormally: %s: %d\n")
138 
139 #define	OPEN_FAIL gettext("failed to open file: %s: %s\n")
140 
141 #define	LOCK_FAIL gettext("failed to lock file: %s: %s\n")
142 
143 #define	UNLOCK_FAIL gettext("failed to unlock file: %s: %s\n")
144 
145 #define	TIMESTAMP_FAIL gettext("failed to update the timestamp file, next\
146     archive update may experience reduced performance\n")
147 
148 #define	MMAP_FAIL gettext("failed to mmap file: %s: %s\n")
149 
150 #define	FILE_LOCKED gettext("another instance of bootadm (pid %u) is running\n")
151 
152 #define	NO_FLIST gettext("archive filelist is empty\n")
153 
154 #define	CLOSE_FAIL gettext("failed to close file: %s: %s\n")
155 
156 #define	RENAME_FAIL gettext("rename to file failed: %s: %s\n")
157 
158 #define	NOT_IN_MNTTAB gettext("alternate root %s not in mnttab\n")
159 
160 #define	CANT_RESOLVE gettext("cannot resolve path %s: %s\n")
161 
162 #define	ROOT_ABS gettext("this sub-command doesn't take root arguments: %s\n")
163 
164 #define	ARCHIVE_FAIL gettext("boot-archive creation FAILED, command: '%s'\n")
165 
166 #define	MULTI_FAIL \
167     gettext("Command '%s' failed while generating multisession archive\n")
168 
169 #define	INFILE_FAIL gettext("unable to read from %s: %s\n")
170 
171 #define	ARCHIVE_BAD gettext("archive file %s not generated correctly\n")
172 
173 #define	CACHE_FAIL	\
174     gettext("Failed to gather cache files, archives generation aborted\n")
175 
176 #define	BOOTBLK_FAIL gettext("unable to access bootblk file : %s\n")
177 
178 #define	WRITE_FAIL gettext("write to file failed: %s: %s\n")
179 
180 #define	GZ_WRITE_FAIL gettext("failed to write to %s\n")
181 
182 #define	STAT_FAIL gettext("stat of file failed: %s: %s\n")
183 
184 #define	PACK_FAIL gettext("failed to pack stat data: %s\n")
185 
186 #define	NVALLOC_FAIL gettext("failed to create stat data: %s\n")
187 
188 #define	NVADD_FAIL gettext("failed to update stat data for: %s: %s\n")
189 
190 #define	DISKMAP_FAIL \
191     gettext("create_diskmap command failed for OS root: %s.\n")
192 
193 #define	BIOSDEV_SKIP \
194     gettext("not using biosdev command for disk: %s.\n")
195 
196 #define	CHECK_NOT_SUPPORTED \
197 	gettext("the check option is not supported with subcmd: %s\n")
198 
199 #define	PARSEABLE_NEW_FILE	gettext("    new     %s\n")
200 
201 #define	PARSEABLE_OUT_DATE	gettext("    changed %s\n")
202 
203 #define	PARSEABLE_STALE_FILE	gettext("    stale %s\n")
204 
205 #define	UPDATE_FORCE gettext("forced update of archive requested\n")
206 
207 #define	NO_NEW_STAT gettext("cannot create new stat data\n")
208 
209 #define	UPDATE_ARCH_MISS gettext("archive not found: %s\n")
210 
211 #define	UPDATE_CDIR_MISS gettext("archive cache directory not found: %s\n")
212 
213 #define	MULTI_SIZE \
214     gettext("archive %s is bigger than %d bytes and will be rebuilt\n")
215 
216 #define	READ_FAIL gettext("read failed for file: %s: %s\n")
217 
218 #define	UNPACK_FAIL gettext("failed to unpack stat data: %s: %s\n")
219 
220 #define	NFTW_FAIL gettext("cannot find: %s: %s\n")
221 
222 #define	SIGN_FAIL gettext("iso descriptor signature for %s is invalid\n")
223 
224 #define	STATVFS_FAIL gettext("statvfs failed for %s: %s\n")
225 
226 #define	IS_RAMDISK gettext("%s is on a ramdisk device\n")
227 
228 #define	PRINT gettext("%s\n")
229 
230 #define	PRINT_TITLE gettext("%d %s\n")
231 
232 #define	INT_ERROR gettext("Internal error: %s\n")
233 
234 #define	CANT_FIND_USER \
235 	gettext("getpwnam: uid for %s failed, defaulting to %d\n")
236 
237 #define	CANT_FIND_GROUP \
238 	gettext("getgrnam: gid for %s failed, defaulting to %d\n")
239 
240 #define	CHMOD_FAIL gettext("chmod operation on %s failed - %s\n")
241 
242 #define	CHOWN_FAIL gettext("chgrp operation on %s failed - %s\n")
243 
244 #define	MISSING_SLICE_FILE gettext("GRUB slice file %s missing: %s\n")
245 
246 #define	MKDIR_FAILED gettext("mkdir of %s failed: %s\n")
247 
248 #define	MOUNT_FAILED gettext("mount of %s (fstype %s) failed\n")
249 
250 #define	MOUNT_MNTPT_FAILED gettext("mount at %s failed\n")
251 
252 #define	UMOUNT_FAILED gettext("umount of %s failed\n")
253 
254 #define	CANNOT_RESTORE_GRUB_SLICE gettext("cannot restore GRUB slice\n")
255 
256 #define	RESTORE_GRUB_FAILED gettext("cannot restore GRUB loader\n")
257 
258 #define	MISSING_BACKUP_MENU gettext("no backup menu %s: %s\n")
259 
260 #define	RESTORE_MENU_FAILED gettext("cannot restore menu %s\n")
261 
262 #define	MISSING_ROOT_FILE gettext("file missing: %s: %s\n")
263 
264 #define	BAD_ROOT_FILE gettext("file is invalid: %s\n")
265 
266 #define	TRAILING_ARGS gettext("invalid trailing arguments\n")
267 
268 #define	RESTORING_GRUB \
269 	gettext("No GRUB installation found. Restoring GRUB from backup\n")
270 
271 #define	REBOOT_WITH_ARGS_ADD_ENTRY_FAILED \
272 	gettext("Cannot update menu. Cannot reboot with requested arguments\n")
273 
274 #define	FDISK_FILES_FOUND \
275 	gettext("Deferred FDISK update file(s) found: %s, %s. Not supported.\n")
276 
277 #define	UNKNOWN_KERNEL	gettext("unable to expand %s to a full file path.\n")
278 
279 #define	UNKNOWN_KERNEL_REBOOT	\
280 	gettext("Rebooting with default kernel and options.\n")
281 
282 #define	NOT_DBOOT \
283 	gettext("bootadm set-menu %s may only be run on directboot kernels.\n")
284 
285 #define	DEFAULT_NOT_BAM	gettext(	\
286 "Default /boot/grub/menu.lst entry is not controlled by bootadm.  Exiting\n")
287 
288 #define	UNKNOWN_KERNEL_LINE	\
289 gettext("kernel command on line %d not recognized.\n")
290 
291 #define	UNKNOWN_MODULE_LINE	\
292 gettext("module command on line %d not recognized.\n")
293 
294 #define	NOT_ELF_FILE gettext("%s is not an ELF file.\n")
295 
296 #define	WRONG_ELF_CLASS gettext("%s is wrong ELF class 0x%x\n")
297 
298 #define	FAILSAFE_MISSING \
299 gettext("bootadm -m upgrade run, but the failsafe archives have not been\n\
300 updated.  Not updating line %d\n")
301 
302 #define	INVALID_PLAT	\
303 	gettext("invalid platform %s - must be one of sun4u, sun4v or i86pc\n")
304 
305 #define	FDISKPART_FAIL gettext("failed to determine fdisk partition: %s\n")
306 
307 #define	INVALID_MHASH_KEY gettext("invalid key for mnttab hash: %s\n")
308 
309 #define	INVALID_UFS_SIGNATURE gettext("invalid UFS boot signature: %s\n")
310 
311 #define	SIGN_LIST_FPUTS_ERR \
312 	gettext("failed to write signature %s to signature list: %s\n")
313 
314 #define	SIGNATURE_LIST_EXISTS gettext("	- signature list %s exists\n")
315 
316 #define	OPENDIR_FAILED gettext("opendir of %s failed: %s\n")
317 
318 #define	GRUBSIGN_SORT_FAILED gettext("error sorting GRUB UFS boot signatures\n")
319 
320 #define	SEARCHING_UFS_SIGN gettext("	- searching for UFS boot signatures\n")
321 
322 #define	ERR_FIND_UFS_SIGN gettext("search for UFS boot signatures failed\n")
323 
324 #define	UFS_SIGNATURE_LIST_MISS gettext("missing UFS signature list file: %s\n")
325 
326 #define	UFS_SIGNATURE_LIST_OPENERR \
327 	gettext("error opening UFS boot signature list file %s: %s\n")
328 
329 #define	UFS_BADSIGN gettext("bad UFS boot signature: %s\n")
330 
331 #define	GRUBSIGN_BACKUP_OPENERR \
332 	gettext("error opening boot signature backup file %s: %s\n")
333 
334 #define	GRUBSIGN_BACKUP_WRITEERR \
335 	gettext("error writing boot signature backup file %s: %s\n")
336 
337 #define	GRUBSIGN_BACKUP_UPDATED \
338 	gettext("updated boot signature backup file %s\n")
339 
340 #define	GRUBSIGN_PRIMARY_CREATERR \
341 	gettext("error creating primary boot signature %s: %s\n")
342 
343 #define	GRUBSIGN_PRIMARY_SYNCERR \
344 	gettext("error syncing primary boot signature %s: %s\n")
345 
346 #define	GRUBSIGN_CREATED_PRIMARY \
347 	gettext("created primary GRUB boot signature: %s\n")
348 
349 #define	GRUBSIGN_CREATE_FAIL \
350 	gettext("failed to create GRUB boot signature for device: %s\n")
351 
352 #define	GRUBSIGN_WRITE_FAIL \
353 	gettext("failed to write GRUB boot signature for device: %s\n")
354 
355 #define	GRUBSIGN_UFS_NONE gettext("	- no existing UFS boot signatures\n")
356 
357 #define	GRUBSIGN_NOTSUP gettext("boot signature not supported for fstype: %s\n")
358 
359 #define	GRUBSIGN_MKDIR_ERR \
360 	gettext("error creating boot signature directory %s: %s\n")
361 
362 #define	NOT_UFS_SLICE gettext("%s is not a ufs slice: %s\n")
363 
364 #define	FSTYP_FAILED gettext("fstyp failed for slice: %s\n")
365 
366 #define	FSTYP_BAD gettext("bad output from fstyp for slice: %s\n")
367 
368 #define	ZFS_MOUNT_FAILED gettext("mount of ZFS pool %s failed\n")
369 
370 #define	ZFS_MNTPT_FAILED \
371 	gettext("failed to determine mount point of ZFS pool %s\n")
372 
373 #define	NULL_ZFS_MNTPT gettext("ZFS pool %s has no mount-point\n")
374 
375 #define	BAD_ZFS_MNTPT gettext("ZFS pool %s has bad mount-point %s\n")
376 
377 #define	NULL_ZFS_MNTPT gettext("ZFS pool %s has no mount-point\n")
378 
379 #define	BAD_ZFS_MNTED gettext("ZFS pool %s has bad mount status\n")
380 
381 #define	ZFS_MNTED_FAILED \
382 	gettext("failed to determine mount status of ZFS pool %s\n")
383 
384 #define	INT_BAD_MNTSTATE \
385 	gettext("Internal error: bad saved mount state for pool %s\n")
386 
387 #define	FSTYP_A_FAILED gettext("fstyp -a on device %s failed\n")
388 
389 #define	NULL_FSTYP_A gettext("NULL fstyp -a output for device %s\n")
390 
391 #define	BAD_FSTYP_A gettext("bad fstyp -a output for device %s\n")
392 
393 #define	INVALID_UFS_SIGN gettext("invalid UFS boot signature %s\n")
394 
395 #define	CANT_FIND_SPECIAL gettext("cant find special file for mount-point %s\n")
396 
397 #define	CANT_FIND_POOL gettext("cant find pool for mount-point %s\n")
398 
399 #define	NULL_FINDROOT gettext("can't find argument for findroot command\n")
400 
401 #define	INVALID_DEV_DSK gettext("not a /dev/[r]dsk name: %s\n")
402 
403 #define	CVT_FINDROOT gettext("converting entries to findroot...\n")
404 
405 #define	CVT_HV gettext("adding xVM entries...\n")
406 
407 #define	CVT_DBOOT gettext("converting entries to dboot...\n")
408 
409 #define	DOWNGRADE_NOTSUP \
410 gettext("automated downgrade of GRUB menu to older version not supported.\n")
411 
412 #define	CANT_FIND_GRUBSIGN gettext("cannot find GRUB signature for %s\n")
413 
414 #define	CVT_TODO	\
415 gettext("one or more GRUB menu entries were not automatically upgraded\n\
416 For details on manually updating entries, see %s\n")
417 
418 #define	CVT_ABORT	\
419 gettext("error upgrading GRUB menu entries on %s. Aborting.\n\
420 For details on manually updating entries, see %s\n")
421 
422 #define	HAND_ADDED_ENTRIES	\
423 gettext("bootadm(1M) will only upgrade GRUB menu entries added by \n\
424 bootadm(1M) or lu(1M). The following entries on %s will not be upgraded.\n\
425 For details on manually updating entries, see %s\n")
426 
427 #define	SIGN_FSTYPE_MISMATCH	\
428 gettext("found mismatched boot signature %s for filesystem type: %s.\n")
429 
430 #define	REBOOT_FSTYPE_FAILED	\
431 gettext("failed to determine filesystem type for \"/\". Reboot with \n\
432 arguments failed.\n")
433 
434 #define	REBOOT_SPECIAL_FAILED	\
435 gettext("failed to find device special file for \"/\". Reboot with \n\
436 arguments failed.\n")
437 
438 #define	REBOOT_SIGN_FAILED	\
439 gettext("failed to find boot signature. Reboot with arguments failed.\n")
440 
441 #define	REBOOT_DIRECT_FAILED	\
442 gettext("the root filesystem is not a dboot Solaris instance. \n\
443 This version of bootadm is not supported on this version of Solaris.\n")
444 
445 #define	BOOTENV_FSTYPE_FAILED	\
446 gettext("cannot determine filesystem type for \"/\".\n\
447 Cannot generate GRUB menu entry with EEPROM arguments.\n")
448 
449 #define	BOOTENV_SPECIAL_FAILED	\
450 gettext("cannot determine device special file for \"/\".\n\
451 Cannot generate GRUB menu entry with EEPROM arguments.\n")
452 
453 #define	BOOTENV_SIGN_FAILED	\
454 gettext("cannot determine boot signature for \"/\".\n\
455 Cannot generate GRUB menu entry with EEPROM arguments.\n")
456 
457 #define	GRUB_SLICE_FILE_EXISTS \
458 	gettext("unsupported GRUB slice file (%s) exists - ignoring.\n")
459 
460 #define	GRUBSIGN_FOUND_OR_CREATED \
461 gettext("found or created GRUB signature %s for %s\n")
462 
463 #define	GET_FSTYPE_ARGS gettext("no OS mountpoint. Cannot determine fstype\n")
464 
465 #define	MNTTAB_MNTPT_NOT_FOUND \
466 	gettext("failed to find OS mountpoint %s in %s\n")
467 
468 #define	MNTTAB_FSTYPE_NULL gettext("NULL fstype found for OS root %s\n")
469 
470 #define	MISSING_ARG gettext("missing argument for sub-command\n")
471 
472 #define	INVALID_BINARY gettext("invalid or corrupted binary: %s\n")
473 
474 #define	PCFS_ROOT_NOTSUP gettext("root <%s> on PCFS is not supported\n")
475 
476 #define	NO_O_OSROOT gettext("OS root not specified with -o option: %s\n")
477 
478 #define	RDONLY_FS \
479 	gettext("%s filesystem is read-only, skipping archives update\n")
480 
481 #define	RDONLY_TEST_ERROR gettext("error during read-only test on %s: %s\n")
482 
483 #define	CANNOT_GRUBROOT_BOOTDISK \
484 	gettext("cannot get (hd?,?,?) for menu. menu not on bootdisk: %s\n")
485 
486 #define	NO_GRUBROOT_FOR_DISK \
487 	gettext("cannot determine BIOS disk ID 'hd?' for disk: %s\n")
488 
489 #define	CACHE_MNTTAB_FAIL gettext("%s: failed to cache /etc/mnttab\n")
490 
491 #define	FAILED_ADD_SIGNLIST gettext("failed to add sign %s to signlist.\n")
492 
493 #define	GRUBSIGN_BACKUP_MKDIRERR gettext("mkdirp() of backup dir failed: %s\n")
494 
495 #define	GET_POOL_FAILED gettext("failed to get pool name from %s\n")
496 
497 #define	FAIL_MNT_TOP_DATASET gettext("failed to mount top dataset for %s\n")
498 
499 #define	PRIMARY_SIGN_EXISTS gettext("primary sign %s exists\n")
500 
501 #define	SET_BACKUP_FAILED gettext("failed to set backup sign (%s) for %s: %s\n")
502 
503 #define	SET_PRIMARY_FAILED \
504 gettext("failed to set primary sign (%s) for %s: %s\n")
505 
506 #define	GET_FSTYPE_FAILED gettext("failed to get fstype for %s\n")
507 
508 #define	GET_SPECIAL_NULL_MNTPT \
509 	gettext("cannot get special file: NULL mount-point\n")
510 
511 #define	GET_SPECIAL_NULL \
512 	gettext("cannot get special file for mount-point: %s\n")
513 
514 #define	GET_PHYSICAL_MENU_NULL \
515 	gettext("cannot get physical device special file for menu root: %s\n")
516 
517 #define	GET_GRUBSIGN_ERROR \
518 	gettext("failed to get grubsign for root: %s, device %s\n")
519 
520 #define	FAILED_TO_ADD_BOOT_ENTRY \
521 	gettext("failed to add boot entry with title=%s, grub signature=%s\n")
522 
523 #define	SET_DEFAULT_FAILED gettext("failed to set GRUB menu default to %d\n")
524 
525 #define	REBOOT_GET_KERNEL_FAILED \
526 gettext("reboot with arguments: error querying current boot-file settings\n")
527 
528 #define	REBOOT_GET_ARGS_FAILED \
529 gettext("reboot with arguments: error querying current boot-args settings\n")
530 
531 #define	REBOOT_SET_DEFAULT_FAILED \
532 gettext("reboot with arguments: setting GRUB menu default to %d failed\n")
533 
534 #define	GET_SET_KERNEL_ADD_BOOT_ENTRY gettext("failed to add boot entry: %s\n")
535 
536 #define	GET_SET_KERNEL_SET_GLOBAL gettext("failed to set default to: %d\n")
537 
538 #define	NO_OPTION_ARG gettext("option has no argument: %s\n")
539 
540 #define	CANT_MOUNT_POOL_DATASET \
541 	gettext("cannot mount pool dataset for pool: %s\n")
542 
543 #define	ZFS_GET_POOL_FAILED gettext("failed to get pool for device: %s\n")
544 
545 #define	ZFS_MOUNT_TOP_DATASET_FAILED \
546 	gettext("failed to mount top dataset for pool: %s\n")
547 
548 #define	GET_POOL_OSDEV_NULL gettext("NULL device: cannot determine pool name\n")
549 
550 #define	GET_POOL_BAD_OSDEV \
551 gettext("invalid device %s: cannot determine pool name\n")
552 
553 #define	POOL_SIGN_INCOMPAT \
554 gettext("pool name %s not present in signature %s\n")
555 
556 #define	INVALID_ZFS_SPECIAL \
557 gettext("invalid device for ZFS filesystem: %s\n")
558 
559 #define	CANT_FIND_POOL_FROM_SPECIAL \
560 gettext("cannot derive ZFS pool from special: %s\n")
561 
562 #define	ZFS_GET_POOL_STATUS \
563 gettext("cannot get zpool status for pool: %s\n")
564 
565 #define	BAD_ZPOOL_STATUS \
566 gettext("bad zpool status for pool=%s\n")
567 
568 #define	NO_POOL_IN_ZPOOL_STATUS \
569 gettext("no pool name %s in zpool status\n")
570 
571 #define	NO_PHYS_IN_ZPOOL_STATUS \
572 gettext("no physical device in zpool status for pool=%s\n")
573 
574 #define	UFS_GET_PHYS_NOT_SVM \
575 gettext("not a SVM metadevice: %s. Cannot derive physical device\n")
576 
577 #define	UFS_GET_PHYS_INVALID_SVM \
578 gettext("invalid SVM metadevice name: %s. Cannot derive physical device\n")
579 
580 #define	UFS_SVM_METASTAT_ERR \
581 gettext("metastat command failed on SVM metadevice: %s\n")
582 
583 #define	UFS_SVM_METASTAT_SVC_ERR \
584 gettext("failed to start service %s for metastat command\n")
585 
586 #define	BAD_UFS_SVM_METASTAT \
587 gettext("bad output from metastat command on SVM metadevice: %s\n")
588 
589 #define	INVALID_UFS_SVM_METASTAT \
590 gettext("invalid fields in metastat output for SVM metadevice: %s\n")
591 
592 #define	CANNOT_PARSE_UFS_SVM_METASTAT \
593 gettext("cannot parse output of metastat command for metadevice: %s\n")
594 
595 #define	CANNOT_PARSE_UFS_SVM_SUBMIRROR \
596 gettext("cannot parse submirror line in metastat output for metadevice: %s\n")
597 
598 #define	GET_PHYSICAL_NOTSUP_FSTYPE \
599 gettext("cannot derive physical device for %s (%s), unsupported filesystem\n")
600 
601 #define	ERROR_PARSE_UFS_SVM_METASTAT \
602 gettext("error parsing metastat output for SVM metadevice: %s\n")
603 
604 #define	GET_OSROOT_SPECIAL_ERR \
605 gettext("failed to get special file for osroot: %s\n")
606 
607 #define	GET_MENU_ROOT_SPECIAL_ERR \
608 gettext("failed to get special file for menu_root: %s\n")
609 
610 #define	GET_SVC_STATE_ERR gettext("failed to determine state of service: %s\n")
611 
612 #define	SVC_IS_ONLINE_FAILED \
613 	gettext("failed to determine if service is online: %s\n")
614 
615 #define	ENABLE_SVC_FAILED gettext("failed to online service: %s\n")
616 
617 #define	ERR_SVC_GET_ONLINE \
618 	gettext("failed to get online status for service: %s\n")
619 
620 #define	TIMEOUT_ENABLE_SVC \
621 	gettext("timed out waiting for service to online: %s\n")
622 
623 #define	CANNOT_READ_LU_CKSUM \
624 	gettext("failed to read GRUB menu checksum file: %s\n")
625 
626 #define	MULTIPLE_LU_CKSUM \
627 	gettext("multiple checksums for GRUB menu in checksum file: %s\n")
628 
629 #define	CANNOT_PARSE_LU_CKSUM \
630 	gettext("error parsing GRUB menu checksum file: %s\n")
631 
632 #define	MENU_CKSUM_FAIL \
633 	gettext("error generating checksum of GRUB menu\n")
634 
635 #define	BAD_CKSUM \
636 	gettext("bad checksum generated for GRUB menu\n")
637 
638 #define	BAD_CKSUM_PARSE \
639 	gettext("error parsing checksum generated for GRUB menu\n")
640 
641 #define	MENU_PROP_FAIL \
642 	gettext("error propagating updated GRUB menu\n")
643 
644 #define	MENU_BACKUP_FAIL \
645 	gettext("failed to create backup for GRUB menu: %s\n")
646 
647 #define	BACKUP_PROP_FAIL \
648 	gettext("error propagating backup GRUB menu: %s\n")
649 
650 #define	MENU_CKSUM_WRITE_FAIL \
651 	gettext("failed to write GRUB menu checksum file: %s\n")
652 
653 #define	MENU_CKSUM_PROP_FAIL \
654 	gettext("error propagating GRUB menu checksum file: %s\n")
655 
656 #define	BOOTADM_PROP_FAIL \
657 	gettext("error propagating bootadm: %s\n")
658 
659 #define	PROP_GRUB_MENU \
660 	gettext("propagating updated GRUB menu\n")
661 
662 #define	NEED_DIRPATH	gettext("need to create directory path for %s\n")
663 
664 #define	UPDT_CACHE_FAIL	gettext("directory cache update failed for %s\n")
665 
666 /*
667  * NOTE: The following are debug messages and not I18Ned
668  */
669 
670 #define	D_MATCHED_TITLE "%s: matched title: %s\n"
671 
672 #define	D_NOMATCH_TITLE "%s: no match title: %s, %s\n"
673 
674 #define	D_MATCHED_FINDROOT "%s: matched findroot: %s\n"
675 
676 #define	D_NOMATCH_FINDROOT "%s: no match findroot: %s, %s\n"
677 
678 #define	D_NOMATCH_FINDROOT_NULL "%s: no match line has findroot, we don't: %s\n"
679 
680 #define	D_MATCHED_ROOT "%s: matched root: %s\n"
681 
682 #define	D_NOMATCH_ROOT "%s: no match root: %s, %s\n"
683 
684 #define	D_NOMATCH_ROOT_NULL "%s: no match, line has root, we don't: %s\n"
685 
686 #define	D_NO_ROOT_OPT "%s: root NOT optional\n"
687 
688 #define	D_ROOT_OPT "%s: root IS optional\n"
689 
690 #define	D_KERNEL_MATCH "%s: kernel match: %s, %s\n"
691 
692 #define	D_MODULE_MATCH "%s: module match: %s, %s\n"
693 
694 #define	D_UPGRADE_FROM_MULTIBOOT \
695 	"%s: upgrading entry from dboot to multiboot: root = %s\n"
696 
697 #define	D_ENTRY_NOT_FOUND_CREATING \
698 	"%s: boot entry not found in menu. Creating new entry, findroot = %s\n"
699 
700 #define	D_CHANGING_TITLE "%s: changing title to: %s\n"
701 
702 #define	D_ADDING_FINDROOT_LINE "%s: adding findroot line: %s\n"
703 
704 #define	D_ADDING_KERNEL_DOLLAR "%s: adding new kernel$ line: %s\n"
705 
706 #define	D_ADDING_MODULE_DOLLAR "%s: adding new module$ line: %s\n"
707 
708 #define	D_GET_GRUBROOT_SUCCESS \
709 	"%s: get_grubroot success. osroot=%s, osdev=%s, menu_root=%s\n"
710 
711 #define	D_GET_GRUBROOT_FAILURE \
712 	"%s: get_grubroot failed. osroot=%s, osdev=%s, menu_root=%s\n"
713 
714 #define	D_UPDATED_BOOT_ENTRY \
715 	"%s: updated boot entry bam_zfs=%d, grubsign = %s\n"
716 
717 #define	D_UPDATED_HV_ENTRY \
718 	"%s: updated HV entry bam_zfs=%d, grubsign = %s\n"
719 
720 #define	D_UPDATED_MULTIBOOT_ENTRY \
721 	"%s: updated MULTIBOOT entry grubsign = %s\n"
722 
723 #define	D_UPDATED_FAILSAFE_ENTRY \
724 	"%s: updated FAILSAFE entry failsafe_kernel = %s\n"
725 
726 #define	D_GET_GRUBSIGN_SUCCESS "%s: successfully created grubsign %s\n"
727 
728 #define	D_ADD_LINE_PREV_NEXT "%s: previous next exists\n"
729 
730 #define	D_ADD_LINE_NOT_PREV_NEXT "%s: previous next does not exist\n"
731 
732 #define	D_ADD_LINE_LAST_LINE_IN_ENTRY "%s: last line in entry\n"
733 
734 #define	D_ADD_LINE_LAST_LINE_IN_MENU "%s: last line in menu\n"
735 
736 #define	D_FOUND_FINDROOT "%s: found entry with matching findroot: %s\n"
737 
738 #define	D_SAVING_DEFAULT_TO "%s: saving default to: %s\n"
739 
740 #define	D_SAVED_DEFAULT_TO "%s: saved default to lineNum=%d, entryNum=%d\n"
741 
742 #define	D_RESTORE_DEFAULT_NULL "%s: NULL saved default\n"
743 
744 #define	D_RESTORE_DEFAULT_STR "%s: saved default string: %s\n"
745 
746 #define	D_RESTORED_DEFAULT_TO "%s: restored default to entryNum: %d\n"
747 
748 #define	D_FUNC_ENTRY0 "%s: entered. No args\n"
749 
750 #define	D_FUNC_ENTRY1 "%s: entered. arg: %s\n"
751 
752 #define	D_FUNC_ENTRY2 "%s: entered. args: %s %s\n"
753 
754 #define	D_FUNC_ENTRY3 "%s: entered. args: %s %s %s\n"
755 
756 #define	D_FUNC_ENTRY4 "%s: entered. args: %s %s %s %s\n"
757 
758 #define	D_OPT_NULL "%s: opt is NULL\n"
759 
760 #define	D_TRANSIENT_NOTFOUND "%s: transient entry not found\n"
761 
762 #define	D_RESTORED_DEFAULT "%s: restored old default\n"
763 
764 #define	D_ENTRY_EQUALS "%s: opt has entry=: %s\n"
765 
766 #define	D_ENTRY_SET_IS "%s: default set to %d, set_default ret=%d\n"
767 
768 #define	D_REBOOT_RESOLVED_PARTIAL "%s: resolved partial path: %s\n"
769 
770 #define	D_FOUND_GLOBAL "%s: found matching global command: %s\n"
771 
772 #define	D_SET_GLOBAL_WROTE_NEW "%s: wrote new global line: %s\n"
773 
774 #define	D_SET_GLOBAL_REPLACED "%s: replaced global line with: %s\n"
775 
776 #define	D_ARCHIVE_LINE_NONE "%s: no module/archive line for entry: %d\n"
777 
778 #define	D_ARCHIVE_LINE_NOCHANGE "%s: no change for line: %s\n"
779 
780 #define	D_ARCHIVE_LINE_REPLACED "%s: replaced for line: %s\n"
781 
782 #define	D_GET_SET_KERNEL_NO_RC "%s: no RC entry, nothing to report\n"
783 
784 #define	D_GET_SET_KERNEL_ALREADY "%s: no reset, already has default\n"
785 
786 #define	D_GET_SET_KERNEL_RESTORE_DEFAULT "%s: resetting to default\n"
787 
788 #define	D_GET_SET_KERNEL_RESET_KERNEL_SET_ARG \
789 "%s: reset kernel to default, but retained old args: %s\n"
790 
791 #define	D_GET_SET_KERNEL_RESET_ARG_SET_KERNEL \
792 "%s: reset args to default, but retained old kernel: %s\n"
793 
794 #define	D_GET_SET_KERNEL_REPLACED_KERNEL_SAME_ARG \
795 "%s: rc line exists, replaced kernel, same args: %s\n"
796 
797 #define	D_GET_SET_KERNEL_SAME_KERNEL_REPLACED_ARG \
798 "%s: rc line exists, same kernel, but new args: %s\n"
799 
800 #define	D_SET_OPTION "%s: setting %s option to %s\n"
801 
802 #define	D_EXPAND_PATH "%s: expanded path: %s\n"
803 
804 #define	D_GET_SET_KERNEL_ARGS "%s: read menu boot-args: %s\n"
805 
806 #define	D_GET_SET_KERNEL_KERN "%s: read menu boot-file: %s\n"
807 
808 #define	D_BAM_ROOT "%s: bam_alt_root: %d, bam_root: %s\n"
809 
810 #define	D_REBOOT_OPTION "%s: reboot with args, option specified: kern=%s\n"
811 
812 #define	D_REBOOT_ABSPATH "%s: reboot with args, abspath specified: kern=%s\n"
813 
814 #define	D_GET_SET_KERNEL_NEW_KERN "%s: new kernel=%s\n"
815 
816 #define	D_GET_SET_KERNEL_NEW_ARG "%s: new args=%s\n"
817 
818 #define	D_Z_MENU_GET_POOL_FROM_SPECIAL "%s: derived pool=%s from special\n"
819 
820 #define	D_Z_GET_MENU_MOUNT_TOP_DATASET "%s: top dataset mountpoint=%s\n"
821 
822 #define	D_Z_GET_MENU_MENU_ROOT "%s: zfs menu_root=%s\n"
823 
824 #define	D_Z_IS_LEGACY "%s: is legacy, pool=%s\n"
825 
826 #define	D_Z_IS_NOT_LEGACY "%s: is *NOT* legacy, pool=%s\n"
827 
828 #define	D_Z_MOUNT_TOP_NONLEG_MOUNTED_ALREADY \
829 	"%s: non-legacy pool %s mounted already\n"
830 
831 #define	D_Z_MOUNT_TOP_NONLEG_MOUNTED_NOT_ALREADY \
832 	"%s: non-legacy pool %s *NOT* already mounted\n"
833 
834 #define	D_Z_MOUNT_TOP_NONLEG_MOUNTED_NOW \
835 	"%s: non-legacy pool %s mounted now\n"
836 
837 #define	D_Z_MOUNT_TOP_NONLEG_MNTPT \
838 	"%s: non-legacy pool %s is mounted at %s\n"
839 
840 #define	D_Z_UMOUNT_TOP_ALREADY_NOP \
841 	"%s: pool %s was already mounted at %s, Nothing to umount\n"
842 
843 #define	D_Z_UMOUNT_TOP_LEGACY \
844 	"%s: legacy pool %s was mounted by us, successfully unmounted\n"
845 
846 #define	D_Z_UMOUNT_TOP_NONLEG \
847 	"%s: nonleg pool %s was mounted by us, successfully unmounted\n"
848 
849 #define	D_Z_MOUNT_TOP_LEG_ALREADY \
850 	"%s: legacy pool %s already mounted\n"
851 
852 #define	D_Z_MOUNT_TOP_LEG_MNTPT_ABS \
853 	"%s: legacy pool %s mount-point %s absent\n"
854 
855 #define	D_Z_MOUNT_TOP_LEG_MNTPT_PRES \
856 	"%s: legacy pool %s mount-point %s is already present\n"
857 
858 #define	D_Z_MOUNT_TOP_LEG_MOUNTED \
859 	"%s: legacy pool %s successfully mounted at %s\n"
860 
861 #define	D_Z_MOUNT_TOP_LEG_MOUNTED \
862 	"%s: legacy pool %s successfully mounted at %s\n"
863 
864 #define	D_GET_MOUNTPOINT_RET \
865 	"%s: returning mount-point for special %s: %s\n"
866 
867 #define	D_IS_ZFS "%s: is a ZFS filesystem: %s\n"
868 
869 #define	D_IS_NOT_ZFS "%s: is *NOT* a ZFS filesystem: %s\n"
870 
871 #define	D_IS_UFS "%s: is a UFS filesystem: %s\n"
872 
873 #define	D_IS_NOT_UFS "%s: is *NOT* a UFS filesystem: %s\n"
874 
875 #define	D_IS_PCFS "%s: is a PCFS filesystem: %s\n"
876 
877 #define	D_IS_NOT_PCFS "%s: is *NOT* a PCFS filesystem: %s\n"
878 
879 #define	D_MENU_PATH "%s: menu path is: %s\n"
880 
881 #define	D_FREEING_LU_SIGNS "%s: feeing LU sign: %s\n"
882 
883 #define	D_OPEN_FAIL "%s: failed to open %s: %s\n"
884 
885 #define	D_GET_POOL_OSDEV "%s: osdev arg = %s\n"
886 
887 #define	D_GET_POOL_RET "%s: got pool. pool = %s\n"
888 
889 #define	D_GET_GRUBSIGN_NO_EXISTING "%s: no existing grubsign for %s: %s\n"
890 
891 #define	D_GET_PHYSICAL_ALREADY \
892 	"%s: got physical device already directly for menu_root=%s special=%s\n"
893 
894 #define	D_GET_PHYSICAL_RET "%s: returning physical=%s\n"
895 
896 #define	D_STRTOK_ZPOOL_STATUS "%s: strtok() zpool status line=%s\n"
897 
898 #define	D_FOUND_POOL_IN_ZPOOL_STATUS "%s: found pool name: %s in zpool status\n"
899 
900 #define	D_COUNTING_ZFS_PHYS "%s: counting phys slices in zpool status: %d\n"
901 
902 #define	D_ADDING_ZFS_PHYS "%s: adding phys slice=%s from pool %s status\n"
903 
904 #define	D_FUNC_ENTRY_N1 "%s: entering args: %d\n"
905 
906 #define	D_UFS_SVM_SHORT "%s: short SVM name for special=%s is %s\n"
907 
908 #define	D_UFS_SVM_ONE_COMP "%s: single component %s for metadevice %s\n"
909 
910 #define	D_CHECK_ON_BOOTDISK "%s: checking if phys-device=%s is on bootdisk\n"
911 
912 #define	D_IS_ON_BOOTDISK "%s: phys-device=%s *IS* on bootdisk\n"
913 
914 #define	D_ROOT_OPT_NOT_ZFS "%s: one or more non-ZFS filesystems (%s, %s)\n"
915 
916 #define	D_ROOT_OPTIONAL_OSPECIAL "%s: ospecial=%s for osroot=%s\n"
917 
918 #define	D_ROOT_OPTIONAL_MSPECIAL "%s: mspecial=%s for menu_root=%s\n"
919 
920 #define	D_ROOT_OPTIONAL_FIXED_OSPECIAL "%s: FIXED ospecial=%s for osroot=%s\n"
921 
922 #define	D_CHECK_CMD_CMD_NOMATCH "%s: command %s does not match %s\n"
923 
924 #define	D_FINDROOT_ABSENT "%s: findroot capability absent\n"
925 
926 #define	D_FINDROOT_PRESENT "%s: findroot capability present\n"
927 
928 #define	D_DBOOT_PRESENT "%s: dboot capability present\n"
929 
930 #define	D_XVM_PRESENT "%s: xVM capability present\n"
931 
932 #define	D_IS_SPARC_DBOOT "%s: is sparc - always DBOOT\n"
933 
934 #define	D_IS_DBOOT "%s: is DBOOT unix\n"
935 
936 #define	D_IS_MULTIBOOT "%s: is MULTIBOOT unix\n"
937 
938 #define	D_IS_XVM "%s: is xVM system\n"
939 
940 #define	D_IS_NOT_XVM "%s: is *NOT* xVM system\n"
941 
942 #define	D_ALREADY_BFU_TEST "%s: already done bfu test. bfu is %s present\n"
943 
944 #define	D_UPDATE_LINE_BEFORE "%s: line before update: %s\n"
945 
946 #define	D_UPDATE_LINE_AFTER "%s: line after update: %s\n"
947 
948 #define	D_SKIP_WSPACE_PTR_NULL "%s: NULL ptr\n"
949 
950 #define	D_SKIP_WSPACE_ENTRY_PTR "%s: ptr on entry: %s\n"
951 
952 #define	D_SKIP_WSPACE_EXIT_PTR "%s: ptr on exit: %s\n"
953 
954 #define	D_RSKIP_BSPACE_ENTRY "%s: ptr on entry: %s\n"
955 
956 #define	D_RSKIP_BSPACE_EXIT "%s: ptr on exit: %s\n"
957 
958 #define	D_RSKIP_BSPACE_EXIT "%s: ptr on exit: %s\n"
959 
960 #define	D_NOT_MULTIBOOT_CONVERT "%s: not MULTIBOOT, not converting\n"
961 
962 #define	D_TRYING_FAILSAFE_CVT_TO_DBOOT \
963 	"%s: trying to convert failsafe to DBOOT\n"
964 
965 #define	D_NO_FAILSAFE_UNIX_CONVERT "%s: no FAILSAFE unix, not converting\n"
966 
967 #define	D_CVT_CMD_KERN_DOLLAR "%s: converted kernel cmd to %s\n"
968 
969 #define	D_FLAGS1_UNIX_FLAGS2_NULL "%s: NULL flags1, unix, flags2\n"
970 
971 #define	D_UNIX_PRESENT "%s: unix present\n"
972 
973 #define	D_UNIX_PRESENT "%s: unix present\n"
974 
975 #define	D_UNIX_ABSENT "%s: unix ABSENT\n"
976 
977 #define	D_FLAGS2_PRESENT "%s: flags2 present: %s\n"
978 
979 #define	D_FLAGS2_ABSENT "%s: flags2 absent\n"
980 
981 #define	D_FLAGS1_PRESENT "%s: flags1 present: %s\n"
982 
983 #define	D_FLAGS1_ABSENT "%s: flags1 absent\n"
984 
985 #define	D_FLAGS1_ONLY "%s: flags1 present: %s, unix, flags2 absent\n"
986 
987 #define	D_CVTED_UNIX "%s: converted unix: %s\n"
988 
989 #define	D_CVTED_UNIX_AND_FLAGS "%s: converted unix with flags : %s\n"
990 
991 #define	D_CVTED_KERNEL_LINE "%s: converted line is: %s\n"
992 
993 #define	D_FAILSAFE_NO_CVT_NEEDED \
994 	"%s: failsafe module line needs no conversion: %s\n"
995 
996 #define	D_CVTED_MODULE "%s: converted module line is: %s\n"
997 
998 #define	D_FORCE_HAND_CVT "%s: force specified, no warnings about hand entries\n"
999 
1000 #define	D_FOUND_HAND "%s: found hand entry #: %d\n"
1001 
1002 #define	D_SKIP_ENTRY "%s: skipping hand entry #: %d\n"
1003 
1004 #define	D_SKIP_ROOT_ENTRY "%s: skipping root entry #: %d\n"
1005 
1006 #define	D_ENTRY_END "%s: entry has ended\n"
1007 
1008 #define	D_SKIP_NULL "%s: skipping NULL line\n"
1009 
1010 #define	D_ROOT_MATCH "%s: found matching root line: %s,%s\n"
1011 
1012 #define	D_FINDROOT_MATCH "%s: found matching findroot line: %s,%s\n"
1013 
1014 #define	D_NO_ROOT_FINDROOT "%s: no root or findroot and root is opt: %d\n"
1015 
1016 #define	D_NO_MATCH "%s: no matching entry found\n"
1017 
1018 #define	D_ALREADY_FINDROOT "%s: entry %d already converted to findroot\n"
1019 
1020 #define	D_ADDED_FINDROOT "%s: added findroot line: %s\n"
1021 
1022 #define	D_ADDED_NUMBERING "%s: updating numbering\n"
1023 
1024 #define	D_ALREADY_HV "%s: entry %d already converted to xvm HV\n"
1025 
1026 #define	D_ADDED_XVM_ENTRY "%s: added xVM HV entry via add_boot_entry()\n"
1027 
1028 #define	D_CVT_KERNEL_FAIL "%s: cvt_kernel_line() failed\n"
1029 
1030 #define	D_CVT_KERNEL_MSG "%s: BAM_MSG returned from cvt_kernel_line()\n"
1031 
1032 #define	D_CVT_MODULE_FAIL "%s: cvt_module_line() failed\n"
1033 
1034 #define	D_CVT_MODULE_MSG "%s: BAM_MSG returned from cvt_module_line()\n"
1035 
1036 #define	D_UPDATED_NUMBERING "%s: updated numbering\n"
1037 
1038 #define	D_FREEING_ROOT "%s: freeing root line: %s\n"
1039 
1040 #define	D_MENU_ROOT "%s: menu root is %s\n"
1041 
1042 #define	D_CLEAN_MENU_ROOT "%s: cleaned menu root is <%s>\n"
1043 
1044 #define	D_BOOT_GET_CAP_FAILED "%s: Failed to get boot capability\n"
1045 
1046 #define	D_WRITING_MENU_ROOT "%s: writing menu to clean-menu-root: <%s>\n"
1047 
1048 #define	D_WROTE_FILE "%s: wrote file successfully: %s\n"
1049 
1050 #define	D_FLIST_FAIL "%s: failed to open archive filelist: %s: %s\n"
1051 
1052 #define	D_NOT_ARCHIVE_BOOT "%s: not a boot archive based Solaris instance: %s\n"
1053 
1054 #define	D_IS_ARCHIVE_BOOT "%s: *IS* a boot archive based Solaris instance: %s\n"
1055 
1056 #define	D_NO_GRUB_DIR "%s: Missing GRUB directory: %s\n"
1057 
1058 #define	D_RDONLY_FS "%s: is a READONLY filesystem: %s\n"
1059 
1060 #define	D_RDWR_FS "%s: is a RDWR filesystem: %s\n"
1061 
1062 #define	D_ENTRY_NEW "%s: new boot entry alloced\n"
1063 
1064 #define	D_ENTRY_NEW_FIRST "%s: (first) new boot entry created\n"
1065 
1066 #define	D_ENTRY_NEW_LINKED "%s: new boot entry linked in\n"
1067 
1068 #define	D_NOT_KERNEL_CMD "%s: not a kernel command: %s\n"
1069 
1070 #define	D_SET_DBOOT_32 "%s: setting DBOOT|DBOOT_32 flag: %s\n"
1071 
1072 #define	D_SET_DBOOT "%s: setting DBOOT flag: %s\n"
1073 
1074 #define	D_SET_DBOOT_64 "%s: setting DBOOT|DBOOT_64 flag: %s\n"
1075 
1076 #define	D_SET_DBOOT_FAILSAFE "%s: setting DBOOT|DBOOT_FAILSAFE flag: %s\n"
1077 
1078 #define	D_SET_DBOOT_FAILSAFE_32 \
1079 	"%s: setting DBOOT|DBOOT_FAILSAFE|DBOOT_32 flag: %s\n"
1080 
1081 #define	D_SET_DBOOT_FAILSAFE_64 \
1082 	"%s: setting DBOOT|DBOOT_FAILSAFE|DBOOT_64 flag: %s\n"
1083 
1084 #define	D_SET_MULTIBOOT "%s: setting MULTIBOOT flag: %s\n"
1085 
1086 #define	D_SET_MULTIBOOT_FAILSAFE \
1087 	"%s: setting MULTIBOOT|MULTIBOOT_FAILSAFE flag: %s\n"
1088 
1089 #define	D_SET_HV "%s: setting XEN HV flag: %s\n"
1090 
1091 #define	D_REC_MKDIR "%s: making recursive directory %s\n"
1092 
1093 #define	D_SET_HAND_KERNEL "%s: is HAND kernel flag: %s\n"
1094 
1095 #define	D_IS_UNKNOWN_KERNEL "%s: is UNKNOWN kernel entry: %s\n"
1096 
1097 #define	D_NOT_MODULE_CMD "%s: not module cmd: %s\n"
1098 
1099 #define	D_BOOTADM_LU_MODULE "%s: bootadm or LU module cmd: %s\n"
1100 
1101 #define	D_IS_HAND_MODULE "%s: is HAND module: %s\n"
1102 
1103 #define	D_IS_UNKNOWN_MODULE "%s: is UNKNOWN module: %s\n"
1104 
1105 #define	D_IS_BOOTADM_ENTRY "%s: is bootadm(1M) entry: %s\n"
1106 
1107 #define	D_IS_LU_ENTRY "%s: is LU entry: %s\n"
1108 
1109 #define	D_IS_ROOT_CMD "%s: setting ROOT: %s\n"
1110 
1111 #define	D_IS_FINDROOT_CMD "%s: setting FINDROOT: %s\n"
1112 
1113 #define	D_CMDLINE  "%s: executing: %s\n"
1114 
1115 #define	D_IS_CHAINLOADER_CMD "%s: setting CHAINLOADER: %s\n"
1116 
1117 #define	D_ADD_FINDROOT_NUM "%s: findroot added: line#: %d: entry#: %d\n"
1118 
1119 #define	D_FREEING_LINE "%s: freeing line: %d\n"
1120 
1121 #define	D_FREEING_ENTRY "%s: freeing entry: %d\n"
1122 
1123 #define	D_CREATED_DISKMAP "%s: created diskmap file: %s\n"
1124 
1125 #define	D_CREATE_DISKMAP_FAIL "%s: FAILED to create diskmap file: %s\n"
1126 
1127 #define	D_NO_SIGNDIR "%s: no sign dir: %s\n"
1128 
1129 #define	D_EXIST_BACKUP_SIGNS \
1130 "%s: found backup signs: zfs=%s ufs=%s lu=%s\n"
1131 
1132 #define	D_RETURN_SUCCESS "%s: returning SUCCESS\n"
1133 
1134 #define	D_RETURN_FAILURE "%s: returning FAILURE\n"
1135 
1136 #define	D_RETURN_RET "%s: returning ret = %d\n"
1137 
1138 #define	D_EXIST_PRIMARY_SIGN "%s: existing primary sign: %s\n"
1139 
1140 #define	D_EXIST_BACKUP_SIGN "%s: existing backup sign: %s\n"
1141 
1142 #define	D_EXIST_PRIMARY_SIGNS \
1143 "%s: found primary signs: zfs=%s ufs=%s lu=%s\n"
1144 
1145 #define	D_CHECK_UFS_EXIST_SIGN "%s: checking for existing UFS sign\n"
1146 
1147 #define	D_CHECK_ZFS_EXIST_SIGN "%s: checking for existing ZFS sign\n"
1148 
1149 #define	D_NO_MNTPT "%s: no mount-point for special=%s and fstype=%s\n"
1150 
1151 #define	D_CACHE_MNTS \
1152 "%s: caching mount: special=%s, mntpt=%s, fstype=%s\n"
1153 
1154 #define	D_MNTTAB_HASH_NOMATCH "%s: no match in cache for: %s\n"
1155 
1156 #define	D_MNTTAB_HASH_MATCH "%s: *MATCH* in cache for: %s\n"
1157 
1158 #define	D_NO_SIGN_TO_LIST "%s: no sign on %s to add to signlist\n"
1159 
1160 #define	D_SIGN_LIST_PUTS_DONE \
1161 "%s: successfully added sign on %s to signlist\n"
1162 
1163 #define	D_SLICE_ENOENT "%s: slice does not exist: %s\n"
1164 
1165 #define	D_VTOC_SIZE_ZERO "%s: VTOC: skipping 0-length slice: %s\n"
1166 
1167 #define	D_VTOC_NOT_ROOT_TAG "%s: VTOC: unsupported tag, skipping: %s\n"
1168 
1169 #define	D_VTOC_ROOT_TAG "%s: VTOC: supported tag, checking: %s\n"
1170 
1171 #define	D_VTOC_NOT_RDWR_FLAG "%s: VTOC: non-RDWR flag, skipping: %s\n"
1172 
1173 #define	D_VTOC_RDWR_FLAG "%s: VTOC: RDWR flag, checking: %s\n"
1174 
1175 #define	D_EFI_SIZE_ZERO "%s: EFI: skipping 0-length slice: %s\n"
1176 
1177 #define	D_EFI_NOT_ROOT_TAG "%s: EFI: unsupported tag, skipping: %s\n"
1178 
1179 #define	D_EFI_ROOT_TAG "%s: EFI: supported tag, checking: %s\n"
1180 
1181 #define	D_EFI_NOT_RDWR_FLAG "%s: EFI: non-RDWR flag, skipping: %s\n"
1182 
1183 #define	D_EFI_RDWR_FLAG "%s: EFI: RDWR flag, checking: %s\n"
1184 
1185 #define	D_SLICE0_ENOENT "%s: slice 0 does not exist: %s\n"
1186 
1187 #define	D_VTOC_READ_FAIL "%s: VTOC: failed to read: %s\n"
1188 
1189 #define	D_VTOC_INVALID "%s: VTOC: is INVALID: %s\n"
1190 
1191 #define	D_VTOC_UNKNOWN_ERR "%s: VTOC: unknown error while reading: %s\n"
1192 
1193 #define	D_VTOC_NOTSUP "%s: VTOC: not supported: %s\n"
1194 
1195 #define	D_VTOC_READ_SUCCESS "%s: VTOC: SUCCESS reading: %s\n"
1196 
1197 #define	D_VTOC_UNKNOWN_RETCODE "%s: VTOC: READ: unknown return code: %s\n"
1198 
1199 #define	D_EFI_READ_FAIL "%s: EFI: failed to read: %s\n"
1200 
1201 #define	D_EFI_INVALID "%s: EFI: is INVALID: %s\n"
1202 
1203 #define	D_EFI_UNKNOWN_ERR "%s: EFI: unknown error while reading: %s\n"
1204 
1205 #define	D_EFI_NOTSUP "%s: EFI: not supported: %s\n"
1206 
1207 #define	D_EFI_READ_SUCCESS "%s: EFI: SUCCESS reading: %s\n"
1208 
1209 #define	D_EFI_UNKNOWN_RETCODE "%s: EFI: READ: unknown return code: %s\n"
1210 
1211 #define	D_NOT_VTOC_OR_EFI "%s: disk has neither VTOC nor EFI: %s\n"
1212 
1213 #define	D_SKIP_SLICE_NOTZERO "%s: skipping non-s0 slice: %s\n"
1214 
1215 #define	D_FOUND_HOLE_SIGNLIST "%s: found hole %d in sign list.\n"
1216 
1217 #define	D_ZERO_LEN_SIGNLIST "%s: generated zero length signlist: %s.\n"
1218 
1219 #define	D_CREATED_ZFS_SIGN "%s: created ZFS sign: %s\n"
1220 
1221 #define	D_CREATE_NEW_UFS "%s: created new UFS sign\n"
1222 
1223 #define	D_CREATE_NEW_ZFS "%s: created new ZFS sign\n"
1224 
1225 #define	D_CREATED_NEW_SIGN "%s: created new sign: %s\n"
1226 
1227 #define	D_FOUND_IN_BACKUP "%s: found sign (%s) in backup.\n"
1228 
1229 #define	D_NOT_FOUND_IN_EXIST_BACKUP \
1230 	"%s: backup exists but sign %s not found\n"
1231 
1232 #define	D_BACKUP_NOT_EXIST "%s: no backup file (%s) found.\n"
1233 
1234 #define	D_BACKUP_DIR_NOEXIST "%s: backup dir (%s) does not exist.\n"
1235 
1236 #define	D_SET_BACKUP_UFS "%s: setting UFS backup sign\n"
1237 
1238 #define	D_SET_BACKUP_ZFS "%s: setting ZFS backup sign\n"
1239 
1240 #define	D_PRIMARY_NOT_EXIST "%s: primary sign (%s) does not exist\n"
1241 
1242 #define	D_PRIMARY_DIR_NOEXIST "%s: primary signdir (%s) does not exist\n"
1243 
1244 #define	D_SET_PRIMARY_UFS "%s: setting UFS primary sign\n"
1245 
1246 #define	D_SET_PRIMARY_ZFS "%s: setting ZFS primary sign\n"
1247 
1248 #define	D_GET_TITLE "%s: got title: %s\n"
1249 
1250 #define	D_GET_SPECIAL_NOT_IN_MNTTAB \
1251 	"%s: Cannot get special file:  mount-point %s not in mnttab\n"
1252 
1253 #define	D_GET_SPECIAL "%s: returning special: %s\n"
1254 
1255 #define	D_MENU_WRITE_ENTER "%s: entered menu_write() for root: <%s>\n"
1256 
1257 #define	D_GOT_SVC_STATUS "%s: got status for service: %s\n"
1258 
1259 #define	D_SVC_ONLINE "%s: service is online: %s\n"
1260 
1261 #define	D_SVC_NOT_ONLINE "%s: service is *NOT* online(%s): %s\n"
1262 
1263 #define	D_SVC_ALREADY_ONLINE "%s: service is already online: %s\n"
1264 
1265 #define	D_SVC_ONLINE_INITIATED "%s: initiated online of service: %s\n"
1266 
1267 #define	D_SVC_NOW_ONLINE "%s: service is NOW online: %s\n"
1268 
1269 #define	D_NOT_LU_BE "%s: not a Live Upgrade BE\n"
1270 
1271 #define	D_NO_CKSUM_FILE "%s: checksum file absent: %s\n"
1272 
1273 #define	D_CKSUM_FILE_OPENED "%s: opened checksum file: %s\n"
1274 
1275 #define	D_CKSUM_FILE_READ "%s: read checksum file: %s\n"
1276 
1277 #define	D_CKSUM_FILE_PARSED "%s: parsed checksum file: %s\n"
1278 
1279 #define	D_CKSUM_GEN_SUCCESS "%s: successfully generated checksum\n"
1280 
1281 #define	D_CKSUM_GEN_OUTPUT_VALID "%s: generated checksum output valid\n"
1282 
1283 #define	D_CKSUM_GEN_PARSED "%s: successfully parsed generated checksum\n"
1284 
1285 #define	D_CKSUM_NO_CHANGE "%s: no change in checksum of GRUB menu\n"
1286 
1287 #define	D_CKSUM_HAS_CHANGED "%s: checksum of GRUB menu has changed\n"
1288 
1289 #define	D_PROPAGATED_MENU "%s: successfully propagated GRUB menu\n"
1290 
1291 #define	D_CREATED_BACKUP "%s: successfully created backup GRUB menu: %s\n"
1292 
1293 #define	D_PROPAGATED_BACKUP "%s: successfully propagated backup GRUB menu: %s\n"
1294 
1295 #define	D_CREATED_CKSUM_FILE "%s: successfully created checksum file: %s\n"
1296 
1297 #define	D_PROPAGATED_CKSUM_FILE \
1298 	"%s: successfully propagated checksum file: %s\n"
1299 
1300 #define	D_PROPAGATED_BOOTADM \
1301 	"%s: successfully propagated bootadm: %s\n"
1302 
1303 #ifdef	__cplusplus
1304 }
1305 #endif
1306 
1307 #endif /* _MESSAGE_H */
1308