A brief file description. More...
#include "P_Cache.h"
Go to the source code of this file.
Defines | |
#define | SCAN_BUF_SIZE RECOVERY_SIZE |
#define | SCAN_WRITER_LOCK_MAX_RETRY 5 |
Functions | |
static off_t | next_in_map (Vol *d, char *vol_map, off_t offset) |
int | dir_bucket_loop_fix (Dir *start_dir, int s, Vol *d) |
static char * | make_vol_map (Vol *d) |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file CacheVol.cc.
#define SCAN_BUF_SIZE RECOVERY_SIZE |
Definition at line 28 of file CacheVol.cc.
Referenced by make_vol_map(), next_in_map(), Cache::scan(), and CacheVC::scanObject().
#define SCAN_WRITER_LOCK_MAX_RETRY 5 |
Definition at line 29 of file CacheVol.cc.
Referenced by CacheVC::scanOpenWrite().
Definition at line 222 of file CacheDir.cc.
References dir_bucket_loop_check(), dir_init_segment(), dir_segment, and Warning.
Referenced by dir_bucket_length(), dir_clean_bucket(), dir_delete(), dir_entries_used(), dir_freelist_length(), dir_overwrite(), dir_probe(), and make_vol_map().
static char* make_vol_map | ( | Vol * | d | ) | [static] |
Definition at line 117 of file CacheVol.cc.
References ats_malloc(), Vol::buckets, dir_bucket(), dir_bucket_loop_fix(), dir_offset, dir_segment, next_dir(), SCAN_BUF_SIZE, Vol::segments, vol_offset(), vol_offset_to_offset(), and vol_relative_length().
Referenced by CacheVC::scanObject().
static off_t next_in_map | ( | Vol * | d, | |
char * | vol_map, | |||
off_t | offset | |||
) | [static] |
Definition at line 96 of file CacheVol.cc.
References SCAN_BUF_SIZE, vol_offset_to_offset(), and vol_relative_length().
Referenced by CacheVC::scanObject().