Deleted Added
full compact
libzfs.h (321535) libzfs.h (324010)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright (c) 2011 Pawel Jakub Dawidek. All rights reserved.
25 * Copyright (c) 2011, 2015 by Delphix. All rights reserved.
26 * Copyright (c) 2012, Joyent, Inc. All rights reserved.
27 * Copyright (c) 2012 Martin Matuska <mm@FreeBSD.org>. All rights reserved.
28 * Copyright (c) 2013 Steven Hartland. All rights reserved.
29 * Copyright (c) 2014 Integros [integros.com]
30 * Copyright 2016 Nexenta Systems, Inc.
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright (c) 2011 Pawel Jakub Dawidek. All rights reserved.
25 * Copyright (c) 2011, 2015 by Delphix. All rights reserved.
26 * Copyright (c) 2012, Joyent, Inc. All rights reserved.
27 * Copyright (c) 2012 Martin Matuska <mm@FreeBSD.org>. All rights reserved.
28 * Copyright (c) 2013 Steven Hartland. All rights reserved.
29 * Copyright (c) 2014 Integros [integros.com]
30 * Copyright 2016 Nexenta Systems, Inc.
31 * Copyright (c) 2017 Datto Inc.
31 */
32
33#ifndef _LIBZFS_H
34#define _LIBZFS_H
35
36#include <assert.h>
37#include <libnvpair.h>
38#include <sys/mnttab.h>

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

124 EZFS_PIPEFAILED, /* pipe create failed */
125 EZFS_THREADCREATEFAILED, /* thread create failed */
126 EZFS_POSTSPLIT_ONLINE, /* onlining a disk after splitting it */
127 EZFS_SCRUBBING, /* currently scrubbing */
128 EZFS_NO_SCRUB, /* no active scrub */
129 EZFS_DIFF, /* general failure of zfs diff */
130 EZFS_DIFFDATA, /* bad zfs diff data */
131 EZFS_POOLREADONLY, /* pool is in read-only mode */
32 */
33
34#ifndef _LIBZFS_H
35#define _LIBZFS_H
36
37#include <assert.h>
38#include <libnvpair.h>
39#include <sys/mnttab.h>

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

125 EZFS_PIPEFAILED, /* pipe create failed */
126 EZFS_THREADCREATEFAILED, /* thread create failed */
127 EZFS_POSTSPLIT_ONLINE, /* onlining a disk after splitting it */
128 EZFS_SCRUBBING, /* currently scrubbing */
129 EZFS_NO_SCRUB, /* no active scrub */
130 EZFS_DIFF, /* general failure of zfs diff */
131 EZFS_DIFFDATA, /* bad zfs diff data */
132 EZFS_POOLREADONLY, /* pool is in read-only mode */
133 EZFS_SCRUB_PAUSED, /* scrub currently paused */
132 EZFS_UNKNOWN
133} zfs_error_t;
134
135/*
136 * The following data structures are all part
137 * of the zfs_allow_t data structure which is
138 * used for printing 'allow' permissions.
139 * It is a linked list of zfs_allow_t's which

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

236
237 /* after splitting, import the pool */
238 int import : 1;
239} splitflags_t;
240
241/*
242 * Functions to manipulate pool and vdev state
243 */
134 EZFS_UNKNOWN
135} zfs_error_t;
136
137/*
138 * The following data structures are all part
139 * of the zfs_allow_t data structure which is
140 * used for printing 'allow' permissions.
141 * It is a linked list of zfs_allow_t's which

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

238
239 /* after splitting, import the pool */
240 int import : 1;
241} splitflags_t;
242
243/*
244 * Functions to manipulate pool and vdev state
245 */
244extern int zpool_scan(zpool_handle_t *, pool_scan_func_t);
246extern int zpool_scan(zpool_handle_t *, pool_scan_func_t, pool_scrub_cmd_t);
245extern int zpool_clear(zpool_handle_t *, const char *, nvlist_t *);
246extern int zpool_reguid(zpool_handle_t *);
247extern int zpool_reopen(zpool_handle_t *);
248
249extern int zpool_vdev_online(zpool_handle_t *, const char *, int,
250 vdev_state_t *);
251extern int zpool_vdev_offline(zpool_handle_t *, const char *, boolean_t);
252extern int zpool_vdev_attach(zpool_handle_t *, const char *,

--- 564 unchanged lines hidden ---
247extern int zpool_clear(zpool_handle_t *, const char *, nvlist_t *);
248extern int zpool_reguid(zpool_handle_t *);
249extern int zpool_reopen(zpool_handle_t *);
250
251extern int zpool_vdev_online(zpool_handle_t *, const char *, int,
252 vdev_state_t *);
253extern int zpool_vdev_offline(zpool_handle_t *, const char *, boolean_t);
254extern int zpool_vdev_attach(zpool_handle_t *, const char *,

--- 564 unchanged lines hidden ---