2N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 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) 1996, 1997 PDC, Network Appliance. All Rights Reserved */ /***************************/ /* CONNECT INTERFACE (V2) */ /***************************/ /* NDMP_CONNECT_CLIENT_AUTH = NDMP_CONNECT_AUTH */ /* no request arguments */ /* NDMP_CONNECT_SERVER_AUTH */ /***************************/ /* CONNECT INTERFACE (V3) */ /***************************/ /* NDMP_CONNECT_OPEN - same as V2 */ /* NDMP_CONNECT_CLOSE - same as V2 */ /* NDMP_CONNECT_SERVER_AUTH - same as V2 */ /***************************/ /* CONNECT INTERFACE (V4) */ /***************************/ /* NDMP_CONNECT_OPEN - same as V3 */ /* NDMP_CONNECT_CLIENT_AUTH - same as V3 */ /* NDMP_CONNECT_CLOSE - same as V3 */ /* NDMP_CONNECT_SERVER_AUTH - same as V3 */ /*************************/ /* CONFIG INTERFACE (V2) */ /*************************/ /* NDMP_CONFIG_GET_HOST_INFO */ /* no request arguments */ /* NDMP_CONFIG_GET_BUTYPE_ATTR */ /* NDMP_CONFIG_GET_MOVER_TYPE */ /* no request arguments */ /* NDMP_CONFIG_GET_AUTH_ATTR */ /*************************/ /* CONFIG INTERFACE (V3) */ /*************************/ /* NDMP_CONFIG_GET_HOST_INFO */ /* no request arguments */ /* NDMP_CONFIG_GET_CONNECTION_TYPE */ /* no request arguments */ /* NDMP_CONFIG_GET_AUTH_ATTR - same as V2 */ /* NDMP_CONFIG_GET_SERVER_INFO */ /* no requset arguments */ /* Backup type attributes */ /* NDMP_CONFIG_GET_BUTYPE_INFO */ /* no request arguments */ /* NDMP_CONFIG_GET_FS_INFO */ /* no request arguments */ /* NDMP_CONFIG_GET_TAPE_INFO */ /* no request arguments */ /* NDMP_CONFIG_GET_SCSI_INFO */ /*************************/ /* CONFIG INTERFACE (V4) */ /*************************/ /* NDMP_CONFIG_GET_HOST_INFO - same as V3 */ /* NDMP_CONFIG_GET_SERVER_INFO - same as V3 */ /* NDMP_CONFIG_GET_CONNECTION_TYPE - same as V3 */ /* NDMP_CONFIG_GET_AUTH_ATTR - same as V3 */ /* NDMP_CONFIG_GET_FS_INFO - same as V3 */ /***********************/ /* SCSI INTERFACE (V2) */ /***********************/ /* no request arguments */ /* NDMP_SCSI_GET_STATE */ /* no request arguments */ /* NDMP_SCSI_SET_TARGET */ /* NDMP_SCSI_RESET_DEVICE */ /* no request arguments */ /* NDMP_SCSI_RESET_BUS */ /* no request arguments */ /* NDMP_SCSI_EXECUTE_CDB */ /***********************/ /* SCSI INTERFACE (V3) */ /***********************/ /* reply the same as V2 */ /* NDMP_SCSI_CLOSE - same as V2 */ /* NDMP_SCSI_GET_STATE - same as V2 */ /* reply the same as V2 */ /* NDMP_SCSI_RESET_DEVICE - same as V2 */ /* NDMP_SCSI_RESET_BUS - same as V2 */ /* NDMP_SCSI_EXECUTE_CDB - same as V2 */ /***********************/ /* SCSI INTERFACE (V4) */ /***********************/ /* NDMP_SCSI_OPEN - same as V3 */ /* NDMP_SCSI_CLOSE - same as V3 */ /* NDMP_SCSI_GET_STATE - same as V3 */ /* NDMP_SCSI_RESET_DEVICE - same as V3 */ /* NDMP_SCSI_EXECUTE_CDB - same as V3 */ /***********************/ /* TAPE INTERFACE (V2) */ /***********************/ /* no request arguments */ /* NDMP_TAPE_GET_STATE */ /* no request arguments */ const NDMP_TAPE_UNLOAD =
0x0040;
/* tape will be unloaded when the device is closed */ /* NDMP_TAPE_EXECUTE_CDB */ /***********************/ /* TAPE INTERFACE (V3) */ /***********************/ /* reply the same as V2 */ /* NDMP_TAPE_CLOSE - same as V2 */ /* NDMP_TAPE_GET_STATE */ /* no request arguments */ /* NDMP_TAPE_MTIO - same as V2 */ /* NDMP_TAPE_WRITE - same as V2 */ /* NDMP_TAPE_READ - same as V2 */ /* NDMP_TAPE_EXECUTE_CDB - same as V2 */ /***********************/ /* TAPE INTERFACE (V4) */ /***********************/ /* NDMP_TAPE_OPEN - same as V3 */ /* NDMP_TAPE_CLOSE - same as V3 */ /* NDMP_TAPE_MTIO - same as V3 */ /* NDMP_TAPE_WRITE - same as V3 */ /* NDMP_TAPE_READ - same as V3 */ /* NDMP_TAPE_EXECUTE_CDB - same as V3 */ /************************/ /* MOVER INTERFACE (V2) */ /************************/ /* NDMP_MOVER_GET_STATE */ /* no request arguments */ /* NDMP_MOVER_SET_RECORD_SIZE */ /* NDMP_MOVER_SET_WINDOW */ /* NDMP_MOVER_CONTINUE */ /* no request arguments */ /* no request arguments */ /* no request arguments */ /* no request arguments */ /************************/ /* MOVER INTERFACE (V3) */ /************************/ /* NDMP_MOVER_STATE - same as V2 */ /* NDMP_MOVER_PAUSE_REASON - same as V2 */ /* NDMP_MOVER_HALT_REASON - same as V2 */ /* NDMP_MOVER_MODE - same as V2 */ % * Macros to access the port and IP address of TCP addresses. %#
endif /* tcp_port_v3 *//* NDMP_MOVER_GET_STATE */ /* no request arguments */ /* NDMP_MOVER_LISTEN - same as v2 */ /* NDMP_MOVER_SET_RECORD_SIZE - same as V2 */ /* NDMP_MOVER_SET_WINDOW - same as V2 */ /* NDMP_MOVER_CONTINUE - same as V2 */ /* NDMP_MOVER_ABORT - same as V2 */ /* NDMP_MOVER_STOP - same as V2 */ /* NDMP_MOVER_READ - same as V2 */ /* NDMP_MOVER_CLOSE - same as V2 */ /************************/ /* MOVER INTERFACE (V4) */ /************************/ /* NDMP_MOVER_SET_RECORD_SIZE - same as V3 */ /* NDMP_MOVER_SET_WINDOW_SIZE - same as V3 */ % * Macros to access the port and IP address of TCP addresses. %#
endif /* tcp_addr_v4 */%#
endif /* tcp_port_v4 *//* NDMP_MOVER_READ - same as v3 */ /* NDMP_MOVER_CONTINUE - same as V3 */ /* NDMP_MOVER_CLOSE - same as V3 */ /* NDMP_MOVER_ABORT - same as V3 */ /* NDMP_MOVER_STOP - same as V3 */ /***********************/ /* DATA INTERFACE (V2) */ /***********************/ /* NDMP_DATA_GET_STATE */ /* no request arguments */ /* NDMP_DATA_START_BACKUP */ /* NDMP_DATA_START_RECOVER */ /* no request arguments */ /* no request arguments */ /* no request arguments */ /***********************/ /* DATA INTERFACE (V3) */ /***********************/ /* NDMP_DATA_GET_STATE */ /* no request arguments */ /* ndmp_data_operation the same as V2 */ /* NDMP_DATA_START_BACKUP */ /* NDMP_DATA_START_RECOVER */ /* NDMP_DATA_ABORT - same as V2 */ /* NDMP_DATA_STOP - same as V2 */ /* NDMP_DATA_GET_ENV - same as V2 */ /***********************/ /* DATA INTERFACE (V4) */ /***********************/ /* NDMP_DATA_START_BACKUP - same as V3 */ /* NDMP_DATA_START_RECOVER - same as V3 */ /* NDMP_DATA_ABORT - same as V3 */ /* NDMP_DATA_STOP - same as V3 */ /* NDMP_DATA_GET_ENV - same as V3 */ /*************************/ /* NOTIFY INTERFACE (V2) */ /*************************/ /* NDMP_NOTIFY_CONNECTED */ /* NDMP_NOTIFY_MOVER_PAUSED */ /* NDMP_NOTIFY_MOVER_HALTED */ /* NDMP_NOTIFY_DATA_READ */ /*************************/ /* NOTIFY INTERFACE (V3) */ /*************************/ /* NDMP_NOTIFY_DATA_HALTED - same as V2 */ /* NDMP_NOTIFY_CONNECTED - same as V2 */ /* NDMP_NOTIFY_MOVER_PAUSED - same as V2 */ /* NDMP_NOTIFY_MOVER_HALTED - same as V2 */ /* NDMP_NOTIFY_DATA_READ - same as V2 */ /*************************/ /* NOTIFY INTERFACE (V4) */ /*************************/ /* NDMP_NOTIFY_CONNECTION_STATUS - same as V3 */ /* NDMP_NOTIFY_MOVER_PAUSED - same as V3 */ /* NDMP_NOTIFY_DATA_READ - same as V3 */ /*******************************/ /* FILE HISTORY INTERFACE (V2) */ /*******************************/ /* NDMP_FH_ADD_UNIX_PATH */ /* NDMP_FH_ADD_UNIX_DIR */ /* NDMP_FH_ADD_UNIX_NODE */ /********************************/ /* FILE HISTORY INTERFACE (V3) */ /********************************/ /* one file could have both UNIX and NT name and attributes */ /********************************/ /* FILE HISTORY INTERFACE (V4) */ /********************************/ /* NDMP_FH_ADD_FILE - same as V3 */ /* NDMP_FH_ADD_DIR - same as V3 */ /* NDMP_FH_ADD_NODE - same as V3 */ /********************************/ /********************************/