Lines Matching defs:path
12 char *path;
18 keyring_file_check_path(const char *path, int *size)
23 if (path[0] != '/') {
24 SPDK_ERRLOG("Non-absolute paths are not allowed: %s\n", path);
28 rc = stat(path, &st);
31 SPDK_ERRLOG("Could not stat key file '%s': %s\n", path, spdk_strerror(errsv));
36 SPDK_ERRLOG("Invalid permissions for key file '%s': 0%o\n", path, st.st_mode);
63 spdk_json_write_named_string(w, "path", kkey->path);
79 spdk_json_write_named_string(w, "path", kkey->path);
95 rc = keyring_file_check_path(kkey->path, &size);
105 file = fopen(kkey->path, "r");
129 free(kkey->path);
136 const char *path = ctx;
139 rc = keyring_file_check_path(path, NULL);
144 kkey->path = strdup(path);
145 if (kkey->path == NULL) {
153 spdk_keyring_file_add_key(const char *name, const char *path)
160 opts.ctx = (void *)path;