Lines Matching defs:archive
319 * NEED_UPDATE : the specified archive needs to be updated
320 * NO_MULTI : don't extend the specified archive, but recreate it
337 * cdir_path: path to the archive cache directory
339 * used to extend the archive)
373 * new_nvlp/old_nvlp: new and old list of archive-files / attributes pairs
393 * does a boot archive update and then reboot the system.
398 * svc:/system/boot-archive-update:default checks for this file and
399 * updates the boot archive.
434 /* archive usage */
436 "\t%s update-archive [-vn] [-R altroot [-p platform]]\n", prog);
438 "\t%s list-archive [-R altroot [-p platform]]\n", prog);
563 * update-archive -- -a update
564 * list-archive -- -a list
575 { "update-archive", BAM_ARCHIVE, "update"},
576 { "list-archive", BAM_ARCHIVE, "list"},
619 * -a update -- update-archive
620 * -a list -- list-archive
621 * -a update-all -- (reboot to sync all mnted OS archive)
633 * -e -- use the (faster) archive update approach (used by
1543 * Add trailing / for archive subcommands
1564 * Check archive not supported with update_all
1653 * We may be invoked early in boot for archive verification.
1971 /* Check if path is present in the archive cache directory */
2295 * If we are invoked as part of system/filesystem/boot-archive, then
2364 * We need an update if file doesn't exist in old archive
2396 * File exists in old archive. Check if file has changed
2505 bam_print(_("archive cache directory not found: %s\n"),
2590 bam_print(_("archive not found: %s\n"), archive_path);
2597 * The timestamp file is used to prevent stale files in the archive
2602 * about the existence of the archive cache.
2605 * file, we require that the boot archive be older than this file.
2620 _("archive cache is out of sync. Rebuilding.\n"));
2622 * Don't generate a false positive for the boot-archive service
2623 * but trigger an update of the archive cache in
2624 * boot-archive-update.
2642 bam_print(_("archive %s is bigger than %d bytes and "
2665 * If archive is missing, create archive
2729 * if force, create archive unconditionally
2736 bam_print(_("forced update of archive requested\n"));
2755 BAM_DPRINTF(("%s: failed to open archive filelist: %s: %s\n",
2789 bam_error(_("archive filelist is empty\n"));
2828 bam_error(_("archive filelist is empty\n"));
2832 BAM_DPRINTF(("%s: failed to open archive "
2847 bam_error(_("archive filelist is empty\n"));
2930 * Checks if a file in the current (old) archive has
2992 * Not fatal - we can still create archive
3009 * a file that would appear in the archive through
3010 * a direct reference. This matches the archive
3045 * file translates in a complete rebuild of the archive cache, notify
3052 " archive update may experience reduced performance\n"));
3168 * Check if the archive contains files that are no longer
3244 /* the equivalent of mv archive-new-$pid boot_archive */
3288 bam_error(_("archive file %s not generated correctly\n"), dest);
3361 create_sparc_archive(char *archive, char *tempname, char *bootblk, char *list)
3391 * Prepare dd command line to copy the bootblk on the new archive and
3406 /* Did we get a valid archive ? */
3410 return (do_archive_copy(tempname, archive));
3414 bam_error(_("boot-archive creation FAILED, command: '%s'\n"), cmdline);
3441 * creates sha1 hash of archive
3444 digest_archive(const char *archive)
3451 (void) asprintf(&archive_hash, "%s.hash", archive);
3455 if ((ret = bootadm_digest(archive, &hash)) == BAM_ERROR) {
3475 * Extends the current boot archive without recreating it from scratch
3478 extend_iso_archive(char *archive, char *tempname, char *update_dir)
3487 fd = open(archive, O_RDWR);
3491 archive, strerror(errno));
3503 archive, strerror(errno));
3510 "invalid\n"), archive);
3516 * point to the end of the archive)
3521 "%s\" \"%s\" 2>&1", MKISOFS_PATH, next_session, archive,
3530 "multisession archive\n"), cmdline);
3541 archive, strerror(errno));
3550 archive, strerror(errno));
3557 "invalid\n"), archive);
3581 archive, strerror(errno));
3595 archive, strerror(errno));
3601 "seek=%d conv=sync 2>&1", DD_PATH_USR, tempname, archive,
3610 "multisession archive\n"), cmdline);
3617 if (digest_archive(archive) == BAM_ERROR && bam_verbose)
3618 bam_print("boot archive hashing failed\n");
3624 bam_print("boot archive updated successfully\n");
3639 create_x86_archive(char *archive, char *tempname, char *update_dir)
3653 bam_error(_("boot-archive creation FAILED, command: '%s'\n"),
3666 return (do_archive_copy(tempname, archive));
3679 "%s%s%s/amd64/archive-new-%d", root, ARCHIVE_PREFIX,
3682 ret = snprintf(temp, sizeof (temp), "%s%s%s/archive-new-%d",
3713 bam_print("Attempting to extend x86 archive: "
3728 * The boot archive will be recreated from scratch. We get here
3731 * - the archive (or the archive cache) doesn't exist
3732 * - archive size is bigger than BA_SIZE_MAX
3738 bam_print("Unable to extend %s... rebuilding archive\n",
3750 bam_print("boot archive hashing failed\n");
3789 bam_print("mkisofs not found, creating UFS archive\n");
3793 bam_error(_("archive creation file not found: %s: %s\n"),
3820 bam_error(_("boot-archive creation FAILED, command: '%s'\n"),
3850 * There are 3 situations where creating archive is
3915 * We can't create an archive without the create_ramdisk script
3923 BAM_DPRINTF(("%s: not a boot archive based Solaris "
3928 BAM_DPRINTF(("%s: *IS* a boot archive based Solaris instance: %s\n",
4080 * root must belong to a boot archive based OS,
4088 bam_print(_("%s: not a boot archive based Solaris "
4102 * Don't generate archive on ramdisk.
4124 * It only checks if the archive is in sync.
4147 * if the archive is updated, save the new stat data and update the
4405 * First update archive for current root
4414 * Now walk the mount table, performing archive update
8610 * Add the entry for failsafe archive. On a bfu'd system, the
9155 * check whether the archive line needs to change.
9173 BAM_DPRINTF(("%s: no module/archive line for entry: "
9180 BAM_DPRINTF(("%s: no module/archive line for entry: %d\n",
9393 * to update the archive line as well.
9550 * the archive line as well.