hast.h (256281) | hast.h (260006) |
---|---|
1/*- 2 * Copyright (c) 2009-2010 The FreeBSD Foundation 3 * Copyright (c) 2011 Pawel Jakub Dawidek <pawel@dawidek.net> 4 * All rights reserved. 5 * 6 * This software was developed by Pawel Jakub Dawidek under sponsorship from 7 * the FreeBSD Foundation. 8 * --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * | 1/*- 2 * Copyright (c) 2009-2010 The FreeBSD Foundation 3 * Copyright (c) 2011 Pawel Jakub Dawidek <pawel@dawidek.net> 4 * All rights reserved. 5 * 6 * This software was developed by Pawel Jakub Dawidek under sponsorship from 7 * the FreeBSD Foundation. 8 * --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * |
30 * $FreeBSD: stable/10/sbin/hastd/hast.h 255716 2013-09-19 20:19:08Z trociny $ | 30 * $FreeBSD: stable/10/sbin/hastd/hast.h 260006 2013-12-28 19:21:22Z trociny $ |
31 */ 32 33#ifndef _HAST_H_ 34#define _HAST_H_ 35 36#include <sys/queue.h> 37#include <sys/socket.h> 38 --- 93 unchanged lines hidden (view full) --- 132#define HAST_COMPRESSION_NONE 0 133#define HAST_COMPRESSION_HOLE 1 134#define HAST_COMPRESSION_LZF 2 135 136#define HAST_CHECKSUM_NONE 0 137#define HAST_CHECKSUM_CRC32 1 138#define HAST_CHECKSUM_SHA256 2 139 | 31 */ 32 33#ifndef _HAST_H_ 34#define _HAST_H_ 35 36#include <sys/queue.h> 37#include <sys/socket.h> 38 --- 93 unchanged lines hidden (view full) --- 132#define HAST_COMPRESSION_NONE 0 133#define HAST_COMPRESSION_HOLE 1 134#define HAST_COMPRESSION_LZF 2 135 136#define HAST_CHECKSUM_NONE 0 137#define HAST_CHECKSUM_CRC32 1 138#define HAST_CHECKSUM_SHA256 2 139 |
140struct nv; 141 |
|
140/* 141 * Structure that describes single resource. 142 */ 143struct hast_resource { 144 /* Resource name. */ 145 char hr_name[NAME_MAX]; 146 /* Negotiated replication mode (HAST_REPLICATION_*). */ 147 int hr_replication; --- 101 unchanged lines hidden (view full) --- 249 uint64_t hr_stat_delete_error; 250 /* Number of flush errors. */ 251 uint64_t hr_stat_flush_error; 252 /* Number of activemap write errors. */ 253 uint64_t hr_stat_activemap_write_error; 254 /* Number of activemap flush errors. */ 255 uint64_t hr_stat_activemap_flush_error; 256 | 142/* 143 * Structure that describes single resource. 144 */ 145struct hast_resource { 146 /* Resource name. */ 147 char hr_name[NAME_MAX]; 148 /* Negotiated replication mode (HAST_REPLICATION_*). */ 149 int hr_replication; --- 101 unchanged lines hidden (view full) --- 251 uint64_t hr_stat_delete_error; 252 /* Number of flush errors. */ 253 uint64_t hr_stat_flush_error; 254 /* Number of activemap write errors. */ 255 uint64_t hr_stat_activemap_write_error; 256 /* Number of activemap flush errors. */ 257 uint64_t hr_stat_activemap_flush_error; 258 |
259 /* Function to output worker specific info on control status request. */ 260 void (*output_status_aux)(struct nv *); 261 |
|
257 /* Next resource. */ 258 TAILQ_ENTRY(hast_resource) hr_next; 259}; 260 261struct hastd_config *yy_config_parse(const char *config, bool exitonerror); 262void yy_config_free(struct hastd_config *config); 263 264#endif /* !_HAST_H_ */ | 262 /* Next resource. */ 263 TAILQ_ENTRY(hast_resource) hr_next; 264}; 265 266struct hastd_config *yy_config_parse(const char *config, bool exitonerror); 267void yy_config_free(struct hastd_config *config); 268 269#endif /* !_HAST_H_ */ |