Lines Matching defs:archive

322  * NEED_UPDATE : the specified archive needs to be updated
323 * NO_MULTI : don't extend the specified archive, but recreate it
340 * cdir_path: path to the archive cache directory
342 * used to extend the archive)
376 * new_nvlp/old_nvlp: new and old list of archive-files / attributes pairs
396 * does a boot archive update and then reboot the system.
401 * svc:/system/boot-archive-update:default checks for this file and
402 * updates the boot archive.
437 /* archive usage */
439 "\t%s update-archive [-vn] [-R altroot [-p platform]]\n", prog);
441 "\t%s list-archive [-R altroot [-p platform]]\n", prog);
566 * update-archive -- -a update
567 * list-archive -- -a list
578 { "update-archive", BAM_ARCHIVE, "update"},
579 { "list-archive", BAM_ARCHIVE, "list"},
622 * -a update -- update-archive
623 * -a list -- list-archive
624 * -a update-all -- (reboot to sync all mnted OS archive)
636 * -e -- use the (faster) archive update approach (used by
1546 * Add trailing / for archive subcommands
1567 * Check archive not supported with update_all
1656 * We may be invoked early in boot for archive verification.
1974 /* Check if path is present in the archive cache directory */
2298 * If we are invoked as part of system/filesystem/boot-archive, then
2367 * We need an update if file doesn't exist in old archive
2399 * File exists in old archive. Check if file has changed
2508 bam_print(_("archive cache directory not found: %s\n"),
2593 bam_print(_("archive not found: %s\n"), archive_path);
2600 * The timestamp file is used to prevent stale files in the archive
2605 * about the existence of the archive cache.
2608 * file, we require that the boot archive be older than this file.
2623 _("archive cache is out of sync. Rebuilding.\n"));
2625 * Don't generate a false positive for the boot-archive service
2626 * but trigger an update of the archive cache in
2627 * boot-archive-update.
2645 bam_print(_("archive %s is bigger than %d bytes and "
2668 * If archive is missing, create archive
2732 * if force, create archive unconditionally
2739 bam_print(_("forced update of archive requested\n"));
2758 BAM_DPRINTF(("%s: failed to open archive filelist: %s: %s\n",
2792 bam_error(_("archive filelist is empty\n"));
2831 bam_error(_("archive filelist is empty\n"));
2835 BAM_DPRINTF(("%s: failed to open archive "
2850 bam_error(_("archive filelist is empty\n"));
2933 * Checks if a file in the current (old) archive has
2995 * Not fatal - we can still create archive
3012 * a file that would appear in the archive through
3013 * a direct reference. This matches the archive
3048 * file translates in a complete rebuild of the archive cache, notify
3055 " archive update may experience reduced performance\n"));
3171 * Check if the archive contains files that are no longer
3247 /* the equivalent of mv archive-new-$pid boot_archive */
3291 bam_error(_("archive file %s not generated correctly\n"), dest);
3364 create_sparc_archive(char *archive, char *tempname, char *bootblk, char *list)
3394 * Prepare dd command line to copy the bootblk on the new archive and
3409 /* Did we get a valid archive ? */
3413 return (do_archive_copy(tempname, archive));
3417 bam_error(_("boot-archive creation FAILED, command: '%s'\n"), cmdline);
3444 * creates sha1 hash of archive
3447 digest_archive(const char *archive)
3454 (void) asprintf(&archive_hash, "%s.hash", archive);
3458 if ((ret = bootadm_digest(archive, &hash)) == BAM_ERROR) {
3478 * Extends the current boot archive without recreating it from scratch
3481 extend_iso_archive(char *archive, char *tempname, char *update_dir)
3490 fd = open(archive, O_RDWR);
3494 archive, strerror(errno));
3506 archive, strerror(errno));
3513 "invalid\n"), archive);
3519 * point to the end of the archive)
3524 "%s\" \"%s\" 2>&1", MKISOFS_PATH, next_session, archive,
3533 "multisession archive\n"), cmdline);
3544 archive, strerror(errno));
3553 archive, strerror(errno));
3560 "invalid\n"), archive);
3584 archive, strerror(errno));
3598 archive, strerror(errno));
3604 "seek=%d conv=sync 2>&1", DD_PATH_USR, tempname, archive,
3613 "multisession archive\n"), cmdline);
3620 if (digest_archive(archive) == BAM_ERROR && bam_verbose)
3621 bam_print("boot archive hashing failed\n");
3627 bam_print("boot archive updated successfully\n");
3642 create_x86_archive(char *archive, char *tempname, char *update_dir)
3656 bam_error(_("boot-archive creation FAILED, command: '%s'\n"),
3669 return (do_archive_copy(tempname, archive));
3682 "%s%s%s/amd64/archive-new-%d", root, ARCHIVE_PREFIX,
3685 ret = snprintf(temp, sizeof (temp), "%s%s%s/archive-new-%d",
3716 bam_print("Attempting to extend x86 archive: "
3731 * The boot archive will be recreated from scratch. We get here
3734 * - the archive (or the archive cache) doesn't exist
3735 * - archive size is bigger than BA_SIZE_MAX
3741 bam_print("Unable to extend %s... rebuilding archive\n",
3753 bam_print("boot archive hashing failed\n");
3792 bam_print("mkisofs not found, creating UFS archive\n");
3796 bam_error(_("archive creation file not found: %s: %s\n"),
3823 bam_error(_("boot-archive creation FAILED, command: '%s'\n"),
3853 * There are 3 situations where creating archive is
3918 * We can't create an archive without the create_ramdisk script
3926 BAM_DPRINTF(("%s: not a boot archive based Solaris "
3931 BAM_DPRINTF(("%s: *IS* a boot archive based Solaris instance: %s\n",
4107 * root must belong to a boot archive based OS,
4115 bam_print(_("%s: not a boot archive based Solaris "
4129 * Don't generate archive on ramdisk.
4151 * It only checks if the archive is in sync.
4174 * if the archive is updated, save the new stat data and update the
4432 * First update archive for current root
4441 * Now walk the mount table, performing archive update
8869 * Add the entry for failsafe archive. On a bfu'd system, the
9414 * check whether the archive line needs to change.
9432 BAM_DPRINTF(("%s: no module/archive line for entry: "
9439 BAM_DPRINTF(("%s: no module/archive line for entry: %d\n",
9652 * to update the archive line as well.
9809 * the archive line as well.