Home
last modified time | relevance | path

Searched refs:etag (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/shared/
Dweb-util.c10 bool http_etag_is_valid(const char *etag) { in http_etag_is_valid() argument
11 if (isempty(etag)) in http_etag_is_valid()
14 if (!endswith(etag, "\"")) in http_etag_is_valid()
17 if (!STARTSWITH_SET(etag, "\"", "W/\"")) in http_etag_is_valid()
Dweb-util.h13 bool http_etag_is_valid(const char *etag);
/systemd-251/src/import/
Dpull-job.c52 free(j->etag); in pull_job_unref()
96 j->etag = mfree(j->etag); in pull_job_restart()
261 if (j->etag) in pull_job_curl_on_finished()
262 … (void) fsetxattr(j->disk_fd, "user.source_etag", j->etag, strlen(j->etag), 0); in pull_job_curl_on_finished()
544 _cleanup_free_ char *length = NULL, *last_modified = NULL, *etag = NULL; in pull_job_header_callback() local
570 r = curl_header_strdup(contents, sz, "ETag:", &etag); in pull_job_header_callback()
576 free_and_replace(j->etag, etag); in pull_job_header_callback()
578 if (strv_contains(j->old_etags, j->etag)) { in pull_job_header_callback()
579 … log_info("Image already downloaded. Skipping download. (%s)", j->etag); in pull_job_header_callback()
Dpull-common.c128 int pull_make_path(const char *url, const char *etag, const char *image_root, const char *prefix, c… in pull_make_path() argument
142 if (etag) { in pull_make_path()
143 escaped_etag = xescape(etag, FILENAME_ESCAPE); in pull_make_path()
Dpull-common.h29 int pull_make_path(const char *url, const char *etag, const char *image_root, const char *prefix, c…
Dpull-job.h49 char *etag; member
Dpull-tar.c214 … r = pull_make_path(i->tar_job->url, i->tar_job->etag, i->image_root, ".tar-", suffix, field); in tar_pull_determine_path()
Dpull-raw.c302 … r = pull_make_path(i->raw_job->url, i->raw_job->etag, i->image_root, ".raw-", suffix, field); in raw_pull_determine_path()