Defines | Functions

CacheVol.cc File Reference

A brief file description. More...

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

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)

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


Define Documentation

#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().


Function Documentation

int dir_bucket_loop_fix ( Dir start_dir,
int  s,
Vol d 
)
static char* make_vol_map ( Vol d  )  [static]
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().