diff options
author | Janice Chang <Janice.Chang@Sun.COM> | 2010-04-20 15:27:40 -0400 |
---|---|---|
committer | Janice Chang <Janice.Chang@Sun.COM> | 2010-04-20 15:27:40 -0400 |
commit | 8c4f9701439555b41fbfe7848508f53b52166007 (patch) | |
tree | 44fa20fab6712407e225d527cf04f368cc6d1eb1 /usr/src/lib/libndmp/common/libndmp.h | |
parent | 7c499da3aede674c5b0b1326869f658436dccf13 (diff) | |
download | illumos-joyent-8c4f9701439555b41fbfe7848508f53b52166007.tar.gz |
PSARC 2010/048 zfs-based ndmpd backup
6801803 Use of ZFS to optimize NDMP performance
6801805 NDMP Backup and restore COMSTAR zVOL at the block level
Diffstat (limited to 'usr/src/lib/libndmp/common/libndmp.h')
-rw-r--r-- | usr/src/lib/libndmp/common/libndmp.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/usr/src/lib/libndmp/common/libndmp.h b/usr/src/lib/libndmp/common/libndmp.h index 0d535bb46c..2a85462809 100644 --- a/usr/src/lib/libndmp/common/libndmp.h +++ b/usr/src/lib/libndmp/common/libndmp.h @@ -1,6 +1,5 @@ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. */ /* @@ -36,6 +35,8 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ +/* Copyright (c) 2007, The Storage Networking Industry Association. */ +/* Copyright (c) 1996, 1997 PDC, Network Appliance. All Rights Reserved */ #ifndef _LIBNDMP_H #define _LIBNDMP_H @@ -64,9 +65,10 @@ extern int ndmp_errno; typedef struct ndmp_context { char *nc_plname; uint_t nc_plversion; - void *nc_pldata; + void *nc_pldata; /* data private to the plugin */ void *nc_cmds; void *nc_params; + void *nc_ddata; /* data private to the daemon */ } ndmp_context_t; typedef struct ndmp_plugin { @@ -92,6 +94,14 @@ typedef enum ndmp_log_dma_type { NDMP_LOGD_WARNING = 3 } ndmp_log_dma_type_t; +typedef enum { + NDMP_BUTYPE_TAR = 0, + NDMP_BUTYPE_DUMP, + NDMP_BUTYPE_ZFS +} ndmpd_backup_type_t; + +extern ndmpd_backup_type_t ndmp_get_backup_type(ndmp_context_t *); + /* libndmp error codes */ #define ENDMP_BASE 2000 enum { |