Deleted Added
full compact
hast.h (246922) hast.h (247281)
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: head/sbin/hastd/hast.h 246922 2013-02-17 21:12:34Z pjd $
30 * $FreeBSD: head/sbin/hastd/hast.h 247281 2013-02-25 20:09:07Z trociny $
31 */
32
33#ifndef _HAST_H_
34#define _HAST_H_
35
36#include <sys/queue.h>
37#include <sys/socket.h>
38

--- 195 unchanged lines hidden (view full) ---

234 /* Number of BIO_WRITE requests. */
235 uint64_t hr_stat_write;
236 /* Number of BIO_DELETE requests. */
237 uint64_t hr_stat_delete;
238 /* Number of BIO_FLUSH requests. */
239 uint64_t hr_stat_flush;
240 /* Number of activemap updates. */
241 uint64_t hr_stat_activemap_update;
31 */
32
33#ifndef _HAST_H_
34#define _HAST_H_
35
36#include <sys/queue.h>
37#include <sys/socket.h>
38

--- 195 unchanged lines hidden (view full) ---

234 /* Number of BIO_WRITE requests. */
235 uint64_t hr_stat_write;
236 /* Number of BIO_DELETE requests. */
237 uint64_t hr_stat_delete;
238 /* Number of BIO_FLUSH requests. */
239 uint64_t hr_stat_flush;
240 /* Number of activemap updates. */
241 uint64_t hr_stat_activemap_update;
242 /* Number of local read errors. */
243 uint64_t hr_stat_read_error;
244 /* Number of local write errors. */
245 uint64_t hr_stat_write_error;
246 /* Number of local delete errors. */
247 uint64_t hr_stat_delete_error;
248 /* Number of flush errors. */
249 uint64_t hr_stat_flush_error;
250 /* Number of activemap write errors. */
251 uint64_t hr_stat_activemap_write_error;
252 /* Number of activemap flush errors. */
253 uint64_t hr_stat_activemap_flush_error;
242
243 /* Next resource. */
244 TAILQ_ENTRY(hast_resource) hr_next;
245};
246
247struct hastd_config *yy_config_parse(const char *config, bool exitonerror);
248void yy_config_free(struct hastd_config *config);
249
250void yyerror(const char *);
251int yylex(void);
252
253#endif /* !_HAST_H_ */
254
255 /* Next resource. */
256 TAILQ_ENTRY(hast_resource) hr_next;
257};
258
259struct hastd_config *yy_config_parse(const char *config, bool exitonerror);
260void yy_config_free(struct hastd_config *config);
261
262void yyerror(const char *);
263int yylex(void);
264
265#endif /* !_HAST_H_ */