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