Lines Matching defs:file

4  * The contents of this file are subject to the terms of the
6 * You may not use this file except in compliance with the License.
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
158 * Default file attributes
374 * sparcfile: list of file paths for mkisofs -path-list (SPARC only)
392 * svc:/system/filesystem/usr:default service checks for this file and
398 * svc:/system/boot-archive-update:default checks for this file and
953 bam_error(_("stat of file failed: %s: %s\n"), path,
959 bam_error(_("%s is not a regular file, skipping\n"), path);
1070 bam_error(_("stat of file failed: %s: %s\n"), bam_root,
1075 bam_error(_("failed to open file: %s: %s\n"),
1201 bam_error(_("failed to open file: %s: %s\n"),
1352 * We no longer use the GRUB slice file. If it exists, then
1366 bam_error(_("unsupported GRUB slice file (%s) exists - "
1374 bam_error(_("cant find special file for "
1420 bam_error(_("cannot find GRUB menu file: %s\n"), menu_path);
1662 bam_error(_("failed to open file: %s: %s\n"),
1674 bam_error(_("failed to lock file: %s: %s\n"),
1691 bam_error(_("failed to lock file: %s: %s\n"),
1722 bam_error(_("failed to unlock file: %s: %s\n"),
1727 bam_error(_("failed to close file: %s: %s\n"),
1759 * This routine writes a list of lines to a file.
1782 bam_print(_("file is empty, deleting file: %s\n"),
1785 bam_error(_("failed to unlink file: %s: %s\n"),
1796 * Preserve attributes of existing file if possible,
1829 bam_error(_("failed to open file: %s: %s\n"), tmpfile,
1836 bam_error(_("failed to close file: %s: %s\n"),
1844 bam_error(_("failed to open file: %s: %s\n"), tmpfile,
1853 bam_error(_("write to file failed: %s: %s\n"),
1863 bam_error(_("failed to close file: %s: %s\n"),
1895 bam_error(_("rename to file failed: %s: %s\n"), path,
1900 BAM_DPRINTF(("%s: wrote file successfully: %s\n", fcn, path));
1905 * Checks if the path specified (without the file name at the end) exists
1977 bam_error(_("failed to open file: %s: %s\n"),
1986 bam_error(_("failed to open file: %s: %s\n"),
2005 bam_error(_("write to file failed: %s: %s\n"),
2012 bam_error(_("write to file failed: %s: %s\n"),
2029 bam_error(_("failed to close file: %s: %s\n"),
2038 bam_error(_("failed to close file: %s: %s\n"),
2065 bam_error(_("failed to open file: %s: %s\n"), path,
2170 bam_error(_("failed to open file: %s: %s\n"),
2183 bam_error(_("read failed for file: %s: %s\n"),
2193 * If the file is not an executable and is not inside an amd64
2207 * Based on the ELF class we copy the file in the 32-bit
2215 bam_print(_("WARNING: file %s is neither a "
2252 const char *file,
2277 if (flags == FTW_SL && stat(file, &sb) < 0)
2288 file + bam_rootlen, filestat, 2);
2291 file, strerror(error));
2300 if (!is_amd64() && strstr(file, "/amd64/") != 0)
2328 * On SPARC we create a -path-list file for mkisofs
2334 strip = (char *)file + strlen(rootbuf);
2336 file);
2346 bam_print(_(" new %s\n"), file);
2353 ret = update_dircache(file, flags);
2356 file);
2364 * We need an update if file doesn't exist in old archive
2368 file + bam_rootlen, &value, &sz) != 0) {
2375 ret = update_dircache(file, flags);
2378 "failed for %s\n"), file);
2384 bam_print(_(" new %s\n"), file);
2389 * If we got there, the file is already listed as to be included in the
2396 * File exists in old archive. Check if file has changed
2410 file + bam_rootlen, 0, NULL, 0);
2426 ret = update_dircache(file, flags);
2429 "for %s\n"), file);
2436 bam_print(" %s\n", file);
2438 bam_print(_(" changed %s\n"), file);
2597 * The timestamp file is used to prevent stale files in the archive
2605 * file, we require that the boot archive be older than this file.
2687 * check (and always open) the cache file on SPARC.
2707 bam_error(_("failed to open file: %s: %s\n"),
2766 bam_error(_("failed to close file: %s: %s\n"),
2866 bam_print(_("failed to open file: %s: %s\n"),
2872 bam_error(_("stat of file failed: %s: %s\n"), path,
2880 bam_error(_("read failed for file: %s: %s\n"), path,
2913 delete_stale(char *file, int what)
2918 (void) snprintf(path, sizeof (path), "%s/%s", get_cachedir(what), file);
2930 * Checks if a file in the current (old) archive has
2940 char *file;
2944 * Skip stale file check during smf check
2962 file = nvpair_name(nvp);
2963 if (file == NULL)
2966 root, file);
2978 delete_stale(file, what);
3009 * a file that would appear in the archive through
3032 * Update the timestamp file.
3044 * recreate the timestamp file. Since an outdated or absent timestamp
3045 * file translates in a complete rebuild of the archive cache, notify
3049 bam_error(_("failed to open file: %s: %s\n"), timestamp_path,
3051 bam_error(_("failed to update the timestamp file, next"
3079 bam_error(_("failed to open file: %s: %s\n"), path,
3086 bam_error(_("write to file failed: %s: %s\n"), path,
3097 bam_error(_("rename to file failed: %s: %s\n"), path2,
3191 * - gets new stat data for every file
3196 /* done with the file list */
3288 bam_error(_("archive file %s not generated correctly\n"), dest);
3369 bam_error(_("unable to access bootblk file : %s\n"), bootblk);
3490 bam_error(_("failed to open file: %s: %s\n"),
3496 * A partial read is likely due to a corrupted file
3502 bam_error(_("read failed for file: %s: %s\n"),
3540 bam_error(_("failed to open file: %s: %s\n"),
3549 bam_error(_("read failed for file: %s: %s\n"),
3580 bam_error(_("write to file failed: %s: %s\n"),
3594 bam_error(_("failed to close file: %s: %s\n"),
3793 bam_error(_("archive creation file not found: %s: %s\n"),
3861 bam_error(_("failed to open file: %s: %s\n"),
3922 bam_print(_("file not found: %s\n"), path);
4037 * create a file
4148 * timestamp file
4210 BAM_DPRINTF(("%s: checksum file absent: %s\n",
4218 bam_error(_("failed to read GRUB menu checksum file: %s\n"),
4222 BAM_DPRINTF(("%s: opened checksum file: %s\n", fcn, LU_MENU_CKSUM));
4229 "checksum file: %s\n"), LU_MENU_CKSUM);
4235 BAM_DPRINTF(("%s: read checksum file: %s\n", fcn, LU_MENU_CKSUM));
4246 bam_error(_("error parsing GRUB menu checksum file: %s\n"),
4250 BAM_DPRINTF(("%s: parsed checksum file: %s\n", fcn, LU_MENU_CKSUM));
4361 bam_error(_("failed to write GRUB menu checksum file: %s\n"),
4365 BAM_DPRINTF(("%s: successfully created checksum file: %s\n",
4374 bam_error(_("error propagating GRUB menu checksum file: %s\n"),
4378 BAM_DPRINTF(("%s: successfully propagated checksum file: %s\n",
4419 bam_error(_("failed to open file: %s: %s\n"),
4468 bam_error(_("Deferred FDISK update file(s) found: %s, %s. "
5007 bam_error(_("failed to close file: %s: %s\n"), menu_path,
5063 * only title lines in file are printed.
5084 bam_error(_("menu file not found: %s\n"), menu_path);
5346 /* make sure we have a map file */
5368 BAM_DPRINTF(("%s: created diskmap file: %s\n",
5371 BAM_DPRINTF(("%s: FAILED to create diskmap file: %s\n",
5686 bam_error(_("failed to open file: %s: %s\n"),
5785 bam_error(_("failed to open file: %s: %s\n"),
6098 * It can be a "special" file as seen in mnttab: rpool/ROOT/szboot_0402
6099 * It can be a /dev/[r]dsk special file. We handle both instances
6289 bam_error(_("failed to open file: %s: %s\n"), MNTTAB,
6704 bam_error(_("failed to open file: %s: %s\n"), s0path,
6819 bam_error(_("failed to open file: %s: %s\n"),
6828 bam_error(_("failed to close file: %s: %s\n"),
6838 bam_error(_("failed to open file: %s: %s\n"),
6908 bam_error(_("failed to close file: %s: %s\n"),
6934 bam_error(_("rename to file failed: %s: %s\n"),
6986 bam_error(_("missing UFS signature list file: %s\n"),
7003 "file %s: %s\n"), UFS_SIGNATURE_LIST, strerror(error));
7081 bam_error(_("failed to open file: %s: %s\n"), MNTTAB,
7198 BAM_DPRINTF(("%s: no backup file (%s) found.\n", fcn, backup));
7237 "file %s: %s\n"), GRUBSIGN_BACKUP, strerror(error));
7248 "file %s: %s\n"), GRUBSIGN_BACKUP, strerror(error));
7256 bam_print(_("updated boot signature backup file %s\n"),
7520 * We simply unlink the /var/run file and continue
7527 bam_error(_("rename to file failed: %s: %s\n"),
7537 bam_error(_("failed to open file: %s: %s\n"),
7560 bam_error(_("failed to close file: %s: %s\n"),
7586 bam_error(_("rename to file failed: %s: %s\n"),
7720 /* open the /etc/release file */
7725 bam_error(_("failed to open file: %s: %s\n"), release,
7760 bam_error(_("cannot get special file: NULL mount-point\n"));
7768 bam_error(_("failed to open file: %s: %s\n"), MNTTAB,
7782 BAM_DPRINTF(("%s: Cannot get special file: mount-point %s "
7960 /* First get the device special file from /etc/mnttab */
7964 bam_error(_("cannot get special file for mount-point: %s\n"),
8066 bam_error(_("cannot get physical device special file for menu "
8489 bam_error(_("failed to get special file for osroot: %s\n"),
8498 bam_error(_("failed to get special file for menu_root: %s\n"),
8818 bam_error(_("failed to find device special file for \"/\". "
8856 /* It's an option - first see if boot-file is set */
8862 "current boot-file settings\n"));
8869 * If this is a zfs file system and kernbuf does not
8968 bam_error(_("unable to expand %s to a full file"
9334 BAM_DPRINTF(("%s: read menu boot-file: %s\n",
9417 * Expand the kernel file to a full path, if necessary
9422 bam_error(_("unable to expand %s to a full file "
9454 bam_error(_("cannot determine device special file for "
9689 bam_error(_("menu file not found: %s\n"), menu_path);
10099 char file[PATH_MAX];
10104 (void) snprintf(file, PATH_MAX, "%s/%s/%s-ucode.%s",
10108 if (stat(file, &fstatus) != 0 || !(S_ISREG(fstatus.st_mode)))
10111 (void) snprintf(timestamp, PATH_MAX, "%s.ts", file);
10119 UCODE_INSTALL_PATH, ucode_vendors[i].vendorstr, file);