Deleted Added
full compact
hast.h (250914) hast.h (255716)
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 250914 2013-05-22 17:47:45Z jkim $
30 * $FreeBSD: head/sbin/hastd/hast.h 255716 2013-09-19 20:19:08Z trociny $
31 */
32
33#ifndef _HAST_H_
34#define _HAST_H_
35
36#include <sys/queue.h>
37#include <sys/socket.h>
38

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

221 struct proto_conn *hr_ctrl;
222 /* Events from child to parent. */
223 struct proto_conn *hr_event;
224 /* Connection requests from child to parent. */
225 struct proto_conn *hr_conn;
226
227 /* Activemap structure. */
228 struct activemap *hr_amp;
31 */
32
33#ifndef _HAST_H_
34#define _HAST_H_
35
36#include <sys/queue.h>
37#include <sys/socket.h>
38

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

221 struct proto_conn *hr_ctrl;
222 /* Events from child to parent. */
223 struct proto_conn *hr_event;
224 /* Connection requests from child to parent. */
225 struct proto_conn *hr_conn;
226
227 /* Activemap structure. */
228 struct activemap *hr_amp;
229 /* Locked used to synchronize access to hr_amp. */
229 /* Lock used to synchronize access to hr_amp. */
230 pthread_mutex_t hr_amp_lock;
230 pthread_mutex_t hr_amp_lock;
231 /* Lock used to synchronize access to hr_amp diskmap. */
232 pthread_mutex_t hr_amp_diskmap_lock;
231
232 /* Number of BIO_READ requests. */
233 uint64_t hr_stat_read;
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. */

--- 24 unchanged lines hidden ---
233
234 /* Number of BIO_READ requests. */
235 uint64_t hr_stat_read;
236 /* Number of BIO_WRITE requests. */
237 uint64_t hr_stat_write;
238 /* Number of BIO_DELETE requests. */
239 uint64_t hr_stat_delete;
240 /* Number of BIO_FLUSH requests. */

--- 24 unchanged lines hidden ---