Defines | Functions | Variables

CacheHosting.cc File Reference

A brief file description. More...

#include "P_Cache.h"
#include "I_Layout.h"
Include dependency graph for CacheHosting.cc:

Go to the source code of this file.

Defines

#define PAIR_ZERO   0
#define PAIR_ONE   1
#define PAIR_TWO   2
#define DONE   3
#define INK_ERROR   -1
#define INK_ERROR_VOLUME   -2
#define MEGS_128   (128 * 1024 * 1024)
#define ROUND_TO_VOL_SIZE(_x)   (((_x) + (MEGS_128 - 1)) &~ (MEGS_128 - 1))

Functions

int fstat_wrapper (int fd, struct stat *s)
void cplist_init ()
int cplist_reconfigure ()
int ClearConfigVol (ConfigVolumes *configp)
int ClearCacheVolList (Queue< CacheVol > *cpl, int len)
int create_config (RegressionTest *t, int i)
int execute_and_verify (RegressionTest *t)
void save_state ()
void restore_state ()
EXCLUSIVE_REGRESSION_TEST() Cache_vol (RegressionTest *t, int, int *status)

Variables

int gndisks
matcher_tags CacheHosting_tags
CacheDisk ** gdisks
Queue< CacheVolcp_list
int cp_list_len
ConfigVolumes config_volumes
volatile int gnvol
static int configs = 4
Queue< CacheVolsaved_cp_list
int saved_cp_list_len
ConfigVolumes saved_config_volumes
int saved_gnvol

Detailed Description

A brief file description.

License

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 CacheHosting.cc.


Define Documentation

#define DONE   3
#define INK_ERROR   -1
#define INK_ERROR_VOLUME   -2
#define MEGS_128   (128 * 1024 * 1024)

Definition at line 839 of file CacheHosting.cc.

#define PAIR_ONE   1
#define PAIR_TWO   2
#define PAIR_ZERO   0
#define ROUND_TO_VOL_SIZE (   _x  )     (((_x) + (MEGS_128 - 1)) &~ (MEGS_128 - 1))

Definition at line 840 of file CacheHosting.cc.

Referenced by create_config().


Function Documentation

EXCLUSIVE_REGRESSION_TEST() Cache_vol ( RegressionTest t,
int  ,
int *  status 
)
int ClearCacheVolList ( Queue< CacheVol > *  cpl,
int  len 
)
int ClearConfigVol ( ConfigVolumes configp  ) 
void cplist_init (  ) 
int cplist_reconfigure (  ) 
int create_config ( RegressionTest t,
int  i 
)
int execute_and_verify ( RegressionTest t  ) 
int fstat_wrapper ( int  fd,
struct stat *  s 
)
void restore_state (  ) 

Definition at line 1170 of file CacheHosting.cc.

References memcpy.

Referenced by Cache_vol().

void save_state (  ) 

Definition at line 1158 of file CacheHosting.cc.

References memcpy.

Referenced by Cache_vol().


Variable Documentation

Initial value:
 {
  "hostname", "domain"
}

Definition at line 29 of file CacheHosting.cc.

Definition at line 208 of file Cache.cc.

int configs = 4 [static]

Definition at line 849 of file CacheHosting.cc.

Definition at line 206 of file Cache.cc.

Referenced by CacheHostRecord::Init().

Definition at line 207 of file Cache.cc.

Referenced by CacheHostRecord::Init().

Definition at line 98 of file Cache.cc.

int gndisks
volatile int gnvol

Definition at line 113 of file Cache.cc.

Definition at line 853 of file CacheHosting.cc.

Definition at line 851 of file CacheHosting.cc.

Definition at line 852 of file CacheHosting.cc.

Definition at line 854 of file CacheHosting.cc.