libndmp.h revision 2
2N/A * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. 2N/A * BSD 3 Clause License 2N/A * Copyright (c) 2007, The Storage Networking Industry Association. 2N/A * Redistribution and use in source and binary forms, with or without 2N/A * modification, are permitted provided that the following conditions 2N/A * - Redistributions of source code must retain the above copyright 2N/A * notice, this list of conditions and the following disclaimer. 2N/A * - Redistributions in binary form must reproduce the above copyright 2N/A * notice, this list of conditions and the following disclaimer in 2N/A * the documentation and/or other materials provided with the 2N/A * - Neither the name of The Storage Networking Industry Association (SNIA) 2N/A * nor the names of its contributors may be used to endorse or promote 2N/A * products derived from this software without specific prior written 2N/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 2N/A * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2N/A * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2N/A * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 2N/A * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2N/A * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2N/A * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2N/A * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2N/A * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2N/A * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2N/A * POSSIBILITY OF SUCH DAMAGE. 2N/A/* Copyright (c) 2007, The Storage Networking Industry Association. */ 2N/A/* Copyright (c) 1996, 1997 PDC, Network Appliance. All Rights Reserved */ 2N/A/* NDMP supported versions */ 2N/A * Check for delimiters: space, tab or comma 2N/A#
define IS_DELIM(c) ((c) ==
' ' || (c) ==
',' || (c) ==
'\t')
2N/A/* NDMP plugin module API */ 2N/A * The basename for creating snapshot name. 2N/A /* Plugin entry points */ 2N/A const char *,
const char *);
2N/A * enum of available backup types. Note that the entries here should match 2N/A * their name strings defined in ndmpd.h, and that they should further match the 2N/A/* libndmp door call related data */ 2N/A/* libndmp error codes */ 2N/A /* The following are error codes indicating invalid args */ 2N/A/* Tape device open mode */ 2N/A/* Mover pause reson */ 2N/A/* Mover halt reason */ 2N/A/* NDMP data operation */ 2N/A/* NDMP data state */ 2N/A/* NDMP data halt reason */ 2N/A/* Device information structure */ 2N/A/* Scsi device info sturcture */ 2N/A /* -1 if not open */ 2N/A /* scsi_id and lun are set only if valid_target_set is set */ 2N/A int nt_fd;
/* Tape device file descriptor */ 2N/A /* The data below is set only if "fd" is not -1 */ 2N/A/* NDMP mover info structure */ 2N/A /* Filled in V3 and V4 only */ 2N/A/* NDMP data structure */ 2N/A /* 0 = No, otherwise Yes */ 2N/A /* or recover request */ 2N/A/* NDMP session information */ 2N/A /* 0="no", else "yes" */ 2N/A int ns_trun;
/* Number of worker threads running */ 2N/A int ns_nbk;
/* Number of backups operations running */ 2N/A int ns_nrs;
/* Number of restores operations running */ 2N/A/* Status indicator for door call returns */ 2N/A#
endif /* _LIBNDMP_H */