A brief file description. More...
#include "I_Cache.h"
Go to the source code of this file.
Data Structures | |
struct | DiskVolBlock |
struct | DiskVolBlockQueue |
struct | DiskVol |
struct | DiskHeader |
struct | CacheDisk |
Defines | |
#define | DISK_BAD(_x) ((_x)->num_errors >= cache_config_max_disk_errors) |
#define | DISK_BAD_SIGNALLED(_x) (_x->num_errors > cache_config_max_disk_errors) |
#define | SET_DISK_BAD(_x) (_x->num_errors = cache_config_max_disk_errors) |
#define | SET_DISK_OKAY(_x) (_x->num_errors = 0) |
#define | VOL_BLOCK_SIZE (1024 * 1024 * 128) |
#define | MIN_VOL_SIZE VOL_BLOCK_SIZE |
#define | ROUND_DOWN_TO_VOL_BLOCK(_x) (((_x) &~ (VOL_BLOCK_SIZE - 1))) |
#define | VOL_BLOCK_SHIFT 27 |
#define | ROUND_DOWN_TO_STORE_BLOCK(_x) (((_x) >> STORE_BLOCK_SHIFT) << STORE_BLOCK_SHIFT) |
#define | STORE_BLOCKS_PER_VOL (VOL_BLOCK_SIZE / STORE_BLOCK_SIZE) |
#define | DISK_HEADER_MAGIC 0xABCD1237 |
Variables | |
int | cache_config_max_disk_errors |
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 P_CacheDisk.h.
#define DISK_BAD | ( | _x | ) | ((_x)->num_errors >= cache_config_max_disk_errors) |
Definition at line 31 of file P_CacheDisk.h.
Referenced by build_vol_hash_table(), cache_bytes_used(), CacheProcessor::diskInitialized(), AIO_Callback_handler::handle_disk_failure(), CacheVC::handleReadDone(), CacheProcessor::has_online_storage(), CacheSync::mainEvent(), CacheProcessor::mark_storage_offline(), Cache::open(), and sync_cache_dir_on_shutdown().
#define DISK_BAD_SIGNALLED | ( | _x | ) | (_x->num_errors > cache_config_max_disk_errors) |
Definition at line 32 of file P_CacheDisk.h.
Referenced by AIO_Callback_handler::handle_disk_failure().
#define DISK_HEADER_MAGIC 0xABCD1237 |
Definition at line 43 of file P_CacheDisk.h.
Referenced by CacheDisk::openStart().
#define MIN_VOL_SIZE VOL_BLOCK_SIZE |
Definition at line 37 of file P_CacheDisk.h.
Referenced by CacheDisk::open().
#define ROUND_DOWN_TO_STORE_BLOCK | ( | _x | ) | (((_x) >> STORE_BLOCK_SHIFT) << STORE_BLOCK_SHIFT) |
Definition at line 40 of file P_CacheDisk.h.
#define ROUND_DOWN_TO_VOL_BLOCK | ( | _x | ) | (((_x) &~ (VOL_BLOCK_SIZE - 1))) |
Definition at line 38 of file P_CacheDisk.h.
#define SET_DISK_BAD | ( | _x | ) | (_x->num_errors = cache_config_max_disk_errors) |
Definition at line 33 of file P_CacheDisk.h.
Referenced by CacheDisk::clearDone(), CacheProcessor::mark_storage_offline(), CacheDisk::openStart(), and CacheDisk::syncDone().
#define SET_DISK_OKAY | ( | _x | ) | (_x->num_errors = 0) |
Definition at line 34 of file P_CacheDisk.h.
#define STORE_BLOCKS_PER_VOL (VOL_BLOCK_SIZE / STORE_BLOCK_SIZE) |
Definition at line 42 of file P_CacheDisk.h.
Referenced by create_config().
#define VOL_BLOCK_SHIFT 27 |
Definition at line 39 of file P_CacheDisk.h.
#define VOL_BLOCK_SIZE (1024 * 1024 * 128) |
Definition at line 36 of file P_CacheDisk.h.
Referenced by cplist_reconfigure(), CacheDisk::create_volume(), and create_volume().
Definition at line 72 of file Cache.cc.
Referenced by AIO_Callback_handler::handle_disk_failure(), and ink_cache_init().