Lines Matching refs:physical

297 typedef physical physical_st;
1050 webdav_xml_href(b, &r->physical.rel_path); in webdav_xml_doc_multistatus_response()
2376 st = (0 == lstat(r->physical.path.ptr, &stp)) ? &stp : NULL; in webdav_if_match_or_unmodified_since()
2416 stat_cache_update_entry(BUF_PTR_LEN(&r->physical.path), st, etagb); in webdav_response_etag()
4072 if (0 != lstat(r->physical.path.ptr, &st)) { in webdav_has_lock()
4142 if (cbdata.used && uri == &r->physical.rel_path) { in webdav_has_lock()
4232 ? 0 != lstat(r->physical.path.ptr, &pb.st) in mod_webdav_propfind()
4233 : 0 != stat(r->physical.path.ptr, &pb.st)) { /* non-standard */ in mod_webdav_propfind()
4238 if (!buffer_has_pathsep_suffix(&r->physical.path)) { in mod_webdav_propfind()
4242 buffer_append_char(&r->physical.path, '/'); in mod_webdav_propfind()
4243 buffer_append_char(&r->physical.rel_path, '/'); in mod_webdav_propfind()
4246 else if (buffer_has_pathsep_suffix(&r->physical.path)) { in mod_webdav_propfind()
4365 pb.dst = &r->physical; in mod_webdav_propfind()
4407 const int status = webdav_mkdir(pconf, &r->physical, -1); in mod_webdav_mkcol()
4427 if (-1 == lstat(r->physical.path.ptr, &st)) { in mod_webdav_delete()
4438 if (!buffer_has_pathsep_suffix(&r->physical.path)) { in mod_webdav_delete()
4446 buffer_append_char(&r->physical.path, '/'); in mod_webdav_delete()
4447 buffer_append_char(&r->physical.rel_path, '/'); in mod_webdav_delete()
4473 if (0 == webdav_delete_dir(pconf, &r->physical, r, flags)) { in mod_webdav_delete()
4478 webdav_lock_delete_uri_col(pconf, &r->physical.rel_path); in mod_webdav_delete()
4486 stat_cache_delete_dir(BUF_PTR_LEN(&r->physical.path)); in mod_webdav_delete()
4488 else if (buffer_has_pathsep_suffix(&r->physical.path)) in mod_webdav_delete()
4491 const int status = webdav_delete_file(pconf, &r->physical); in mod_webdav_delete()
4493 webdav_lock_delete_uri(pconf, &r->physical.rel_path); in mod_webdav_delete()
4566 fd = fdevent_open_cloexec(r->physical.path.ptr, 0, in mod_webdav_put_0()
4576 webdav_parent_modified(&r->physical.path); in mod_webdav_put_0()
4586 webdav_delete_file(pconf, &r->physical); /*(ignore result)*/ in mod_webdav_put_0()
4590 fd = fdevent_open_cloexec(r->physical.path.ptr, 0, in mod_webdav_put_0()
4607 if (buffer_has_pathsep_suffix(&r->physical.path)) { in mod_webdav_put_prep()
4638 size_t len = buffer_clen(&r->physical.path); in mod_webdav_put_prep()
4640 char *slash = memrchr(r->physical.path.ptr, '/', len); in mod_webdav_put_prep()
4641 if (slash == r->physical.path.ptr) slash = NULL; in mod_webdav_put_prep()
4643 fd = fdevent_open_cloexec(r->physical.path.ptr, 1, in mod_webdav_put_prep()
4649 buffer_append_string_len(&r->physical.path, CONST_STR_LEN("-XXXXXX")); in mod_webdav_put_prep()
4650 fd = fdevent_mkostemp(r->physical.path.ptr, 0); in mod_webdav_put_prep()
4651 if (fd >= 0) unlink(r->physical.path.ptr); in mod_webdav_put_prep()
4652 buffer_truncate(&r->physical.path, len); in mod_webdav_put_prep()
4680 chunkqueue_append_file_fd(cq, &r->physical.path, fd, 0, cqlen); in mod_webdav_put_prep()
4683 chunkqueue_append_file_fd(cq, &r->physical.path, fd, 0, 1); in mod_webdav_put_prep()
4718 AT_FDCWD, r->physical.path.ptr, RENAME_NOREPLACE)) in mod_webdav_put_linkat_rename()
4720 else if (0 == rename(pathtemp, r->physical.path.ptr)) in mod_webdav_put_linkat_rename()
4724 http_status_set_fin(r, 0 == lstat(r->physical.path.ptr, &st) in mod_webdav_put_linkat_rename()
4728 webdav_parent_modified(&r->physical.path); in mod_webdav_put_linkat_rename()
4729 if (0 != rename(pathtemp, r->physical.path.ptr)) in mod_webdav_put_linkat_rename()
4775 const int ifd = fdevent_open_cloexec(r->physical.path.ptr, 0, in mod_webdav_put_range()
4794 int rc = webdav_copytmp_rename(pconf, &r->physical, &r->physical, &fd); in mod_webdav_put_range()
4867 if (0 == rename(pconf->tmpb->ptr, r->physical.path.ptr)) in mod_webdav_put_range()
4870 AT_FDCWD, r->physical.path.ptr, 0)) in mod_webdav_put_range()
4874 stat_cache_delete_entry(BUF_PTR_LEN(&r->physical.path)); in mod_webdav_put_range()
4957 buffer_append_str2(tmpb, BUF_PTR_LEN(&r->physical.path), in mod_webdav_put()
5014 http_status_set_fin(r, 0 == lstat(r->physical.path.ptr, &ste) in mod_webdav_put()
5018 webdav_parent_modified(&r->physical.path); in mod_webdav_put()
5019 if (0 == rename(pathtemp, r->physical.path.ptr)) { in mod_webdav_put()
5162 force_assert(0 != r->physical.rel_path.used); in mod_webdav_copymove_b()
5166 const char * const p1 = r->physical.rel_path.ptr; in mod_webdav_copymove_b()
5171 remain = r->physical.rel_path.used - 1 - i; in mod_webdav_copymove_b()
5172 if (r->physical.path.used - 1 <= remain) { /*(should not happen)*/ in mod_webdav_copymove_b()
5176 if (0 == memcmp(r->physical.rel_path.ptr+i, /*(suffix match)*/ in mod_webdav_copymove_b()
5177 r->physical.path.ptr + r->physical.path.used-1-remain, in mod_webdav_copymove_b()
5183 r->physical.path.ptr, in mod_webdav_copymove_b()
5184 r->physical.path.used - 1 - remain, in mod_webdav_copymove_b()
5195 buffer_copy_path_len2(dst_path, BUF_PTR_LEN(&r->physical.doc_root), in mod_webdav_copymove_b()
5203 if (r->physical.path.used <= dst_path->used in mod_webdav_copymove_b()
5204 && 0 == memcmp(r->physical.path.ptr, dst_path->ptr, in mod_webdav_copymove_b()
5205 r->physical.path.used-1) in mod_webdav_copymove_b()
5206 && (buffer_has_pathsep_suffix(&r->physical.path) in mod_webdav_copymove_b()
5207 || dst_path->ptr[r->physical.path.used-1] == '/' in mod_webdav_copymove_b()
5208 || dst_path->ptr[r->physical.path.used-1] == '\0')) { in mod_webdav_copymove_b()
5215 if (-1 == lstat(r->physical.path.ptr, &st)) { in mod_webdav_copymove_b()
5227 if (!buffer_has_pathsep_suffix(&r->physical.path)) { in mod_webdav_copymove_b()
5276 webdav_prop_copy_uri(pconf, &r->physical.rel_path, in mod_webdav_copymove_b()
5284 if (0 == webdav_copymove_dir(pconf, &r->physical, dst, r, flags)) { in mod_webdav_copymove_b()
5286 webdav_lock_delete_uri_col(pconf, &r->physical.rel_path); in mod_webdav_copymove_b()
5301 stat_cache_delete_dir(BUF_PTR_LEN(&r->physical.path)); in mod_webdav_copymove_b()
5304 else if (buffer_has_pathsep_suffix(&r->physical.path)) { in mod_webdav_copymove_b()
5325 if (NULL != (sep = strrchr(r->physical.path.ptr, '/'))) { in mod_webdav_copymove_b()
5326 size_t len = r->physical.path.used - 1 in mod_webdav_copymove_b()
5327 - (sep - r->physical.path.ptr); in mod_webdav_copymove_b()
5383 rc = webdav_copymove_file(pconf, &r->physical, dst, &flags); in mod_webdav_copymove_b()
5386 webdav_lock_delete_uri(pconf, &r->physical.rel_path); in mod_webdav_copymove_b()
5436 if (0 != lstat(r->physical.path.ptr, &st)) { in mod_webdav_proppatch()
5447 if (!buffer_has_pathsep_suffix(&r->physical.path)) { in mod_webdav_proppatch()
5451 buffer_append_char(&r->physical.path, '/'); in mod_webdav_proppatch()
5452 buffer_append_char(&r->physical.rel_path, '/'); in mod_webdav_proppatch()
5455 else if (buffer_has_pathsep_suffix(&r->physical.path)) { in mod_webdav_proppatch()
5543 webdav_prop_update(pconf, &r->physical.rel_path, in mod_webdav_proppatch()
5550 webdav_prop_delete(pconf, &r->physical.rel_path, in mod_webdav_proppatch()
5569 webdav_xml_response_status(r, &r->physical.path, 200); in mod_webdav_proppatch()
5662 { r->physical.rel_path.ptr, r->physical.rel_path.used, 0}, /*lockroot*/ in mod_webdav_lock()
5792 if (0 != lstat(r->physical.path.ptr, &st)) { in mod_webdav_lock()
5817 (errno == ENOENT && !buffer_has_pathsep_suffix(&r->physical.path)) in mod_webdav_lock()
5818 ? fdevent_open_cloexec(r->physical.path.ptr, 0, in mod_webdav_lock()
5827 webdav_parent_modified(&r->physical.path); in mod_webdav_lock()
5833 else if (0 != lstat(r->physical.path.ptr, &st)) { in mod_webdav_lock()
5850 if (!buffer_has_pathsep_suffix(&r->physical.path)) { in mod_webdav_lock()
5859 else if (buffer_has_pathsep_suffix(&r->physical.path)) { in mod_webdav_lock()
5948 { r->physical.rel_path.ptr, r->physical.rel_path.used, 0}, /*lockroot*/ in mod_webdav_unlock()
6019 force_assert(2 <= r->physical.path.used); in PHYSICALPATH_FUNC()
6073 if (check_lock_src && !webdav_has_lock(r, &pconf, &r->physical.rel_path)) in PHYSICALPATH_FUNC()