Lines Matching defs:path

25 /* Offset into the backing device where the persistent memory file's path is stored. */
54 char path[REDUCE_PATH_MAX];
315 /* We need 2 iovs during load - one for the superblock, another for the path */
324 void *path;
477 spdk_free(ctx->path);
548 if (unlink(init_ctx->path)) {
550 (char *)init_ctx->path, spdk_strerror(errno));
635 /* We need to append a path separator and the UUID to the supplied
636 * path.
708 init_ctx->path = spdk_zmalloc(REDUCE_PATH_MAX, 0, NULL,
710 if (init_ctx->path == NULL) {
720 memcpy(vol->pm_file.path, pm_file_dir, dir_len);
721 vol->pm_file.path[dir_len] = '/';
722 spdk_uuid_fmt_lower(&vol->pm_file.path[dir_len + 1], SPDK_UUID_STRING_LEN,
725 vol->pm_file.pm_buf = pmem_map_file(vol->pm_file.path, vol->pm_file.size,
730 vol->pm_file.path, strerror(errno));
775 memcpy(init_ctx->path, vol->pm_file.path, REDUCE_PATH_MAX);
776 init_ctx->iov[0].iov_base = init_ctx->path;
780 /* Write path to offset 4K on backing device - just after where the super
783 * the path if the system crashed in the middle of a write operation.
833 memcpy(vol->pm_file.path, load_ctx->path, sizeof(vol->pm_file.path));
859 vol->pm_file.pm_buf = pmem_map_file(vol->pm_file.path, 0, 0, 0, &mapped_len,
862 SPDK_ERRLOG("could not pmem_map_file(%s): %s\n", vol->pm_file.path, strerror(errno));
961 load_ctx->path = spdk_zmalloc(REDUCE_PATH_MAX, 64, NULL,
963 if (load_ctx->path == NULL) {
975 load_ctx->iov[1].iov_base = load_ctx->path;
1068 memcpy(destroy_ctx->pm_path, vol->pm_file.path, sizeof(destroy_ctx->pm_path));
2106 return vol->pm_file.path;