cachefile
setup_file(char *base, const char *path, cachefile *cf)
cache_write(cachefile cf, char *buf, int size)
cache_close(cachefile cf)
cachefile outfile, outupdt;
char cachefile[MAXPATHLEN];
if (zone_file_exists(zoneroot, cachefile)) {
(persistent) ? DLMGMT_PERSISTENT_DB_PATH : cachefile);
extern char cachefile[];
(void) snprintf(cachefile, MAXPATHLEN, "%s/%s%s",
(void) snprintf(cachefile, MAXPATHLEN, "%s/%s",
struct fileinfo *cachefile();
(void) cachefile(rootblock, rootlen);
(void) cachefile(fidp->fid_icb.lad_ext_loc,
dump_cachefile(const char *cachefile)
if ((fd = open64(cachefile, O_RDONLY)) < 0) {
(void) printf("cannot open '%s': %s\n", cachefile,
(void) printf("failed to stat '%s': %s\n", cachefile,
g_importargs.cachefile = optarg;
char *cachefile = NULL;
cachefile = optarg;
if (cachefile && nsearch != 0) {
idata.cachefile = cachefile;
const char *cachefile; /* cachefile to use for import */
zpool_find_import_cached(libpc_handle_t *hdl, const char *cachefile,
if ((fd = open(cachefile, O_RDONLY)) < 0) {
cachefile) != 0) {
if (import->cachefile != NULL)
pools = zpool_find_import_cached(&handle, import->cachefile,
char *poolname, *cachefile;
if (nvlist_lookup_string(tryconfig, ZPOOL_CONFIG_CACHEFILE, &cachefile)
zfs_dbgmsg("spa_tryimport: using cachefile '%s'", cachefile);
char *cachefile;
&cachefile) != 0)
if (cachefile[0] == '\0')
else if (strcmp(cachefile, "none") == 0)
dp->scd_path = spa_strdup(cachefile);