Lines Matching refs:meta

55 static struct timespec get_time(const headers_t& meta, const char *header)  in get_time()  argument
58 if(meta.end() == (iter = meta.find(header))){ in get_time()
64 struct timespec get_mtime(const headers_t& meta, bool overcheck) in get_mtime() argument
66 struct timespec t = get_time(meta, "x-amz-meta-mtime"); in get_mtime()
70 t = get_time(meta, "x-amz-meta-goog-reserved-file-mtime"); in get_mtime()
75 return {get_lastmodified(meta), 0}; in get_mtime()
80 struct timespec get_ctime(const headers_t& meta, bool overcheck) in get_ctime() argument
82 struct timespec t = get_time(meta, "x-amz-meta-ctime"); in get_ctime()
87 return {get_lastmodified(meta), 0}; in get_ctime()
92 struct timespec get_atime(const headers_t& meta, bool overcheck) in get_atime() argument
94 struct timespec t = get_time(meta, "x-amz-meta-atime"); in get_atime()
99 return {get_lastmodified(meta), 0}; in get_atime()
109 off_t get_size(const headers_t& meta) in get_size() argument
111 headers_t::const_iterator iter = meta.find("Content-Length"); in get_size()
112 if(meta.end() == iter){ in get_size()
123 mode_t get_mode(const headers_t& meta, const char* path, bool checkdir, bool forcedir) in get_mode() argument
129 if(meta.end() != (iter = meta.find("x-amz-meta-mode"))){ in get_mode()
131 }else if(meta.end() != (iter = meta.find("x-amz-meta-permissions"))){ // for s3sync in get_mode()
134 }else if(meta.end() != (iter = meta.find("x-amz-meta-goog-reserved-posix-mode"))){ // for GCS in get_mode()
151 if(meta.end() != (iter = meta.find("Content-Type"))){ in get_mode()
169 off_t size = get_size(meta); in get_mode()
208 uid_t get_uid(const headers_t& meta) in get_uid() argument
211 if(meta.end() != (iter = meta.find("x-amz-meta-uid"))){ in get_uid()
213 }else if(meta.end() != (iter = meta.find("x-amz-meta-owner"))){ // for s3sync in get_uid()
215 }else if(meta.end() != (iter = meta.find("x-amz-meta-goog-reserved-posix-uid"))){ // for GCS in get_uid()
227 gid_t get_gid(const headers_t& meta) in get_gid() argument
230 if(meta.end() != (iter = meta.find("x-amz-meta-gid"))){ in get_gid()
232 }else if(meta.end() != (iter = meta.find("x-amz-meta-group"))){ // for s3sync in get_gid()
234 }else if(meta.end() != (iter = meta.find("x-amz-meta-goog-reserved-posix-gid"))){ // for GCS in get_gid()
268 time_t get_lastmodified(const headers_t& meta) in get_lastmodified() argument
270 headers_t::const_iterator iter = meta.find("Last-Modified"); in get_lastmodified()
271 if(meta.end() == iter){ in get_lastmodified()
282 bool is_need_check_obj_detail(const headers_t& meta) in is_need_check_obj_detail() argument
287 if(0 != get_size(meta)){ in is_need_check_obj_detail()
291 if(meta.end() != meta.find("x-amz-meta-mode") || in is_need_check_obj_detail()
292 meta.end() != meta.find("x-amz-meta-mtime") || in is_need_check_obj_detail()
293 meta.end() != meta.find("x-amz-meta-ctime") || in is_need_check_obj_detail()
294 meta.end() != meta.find("x-amz-meta-atime") || in is_need_check_obj_detail()
295 meta.end() != meta.find("x-amz-meta-uid") || in is_need_check_obj_detail()
296 meta.end() != meta.find("x-amz-meta-gid") || in is_need_check_obj_detail()
297 meta.end() != meta.find("x-amz-meta-owner") || in is_need_check_obj_detail()
298 meta.end() != meta.find("x-amz-meta-group") || in is_need_check_obj_detail()
299 meta.end() != meta.find("x-amz-meta-permissions") ) in is_need_check_obj_detail()
305 if(meta.end() == (iter = meta.find("Content-Type"))){ in is_need_check_obj_detail()