ndmpd_prop.h revision d019449136cec9f203f106de418421095790e4e2
/*
*/
/*
* BSD 3 Clause License
*
* Copyright (c) 2007, The Storage Networking Industry Association.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* distribution.
*
* - Neither the name of The Storage Networking Industry Association (SNIA)
* nor the names of its contributors may be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _NDMPD_PROP_H
#define _NDMPD_PROP_H
#include <libscf.h>
#ifdef __cplusplus
extern "C" {
#endif
/* NDMP property parameter flags */
typedef enum {
NDMP_DAR_SUPPORT = 0,
/*
* Force backing up the directories leading to
* a modified object for 'dump' format backup.
*/
/*
* Force backing up the directories leading to
* a modified object for 'tar' format backup.
*/
/*
* Force to send the file history node entries
* along with the file history dir entries for
* all directories containing the changed files
* to the client for incremental backup.
*
* Note: This variable is added to support BakBone
* Software's NetVault DMA which expects to get the
* FH ADD NODES for all upper directories which
* contain the changed files in incremental backup
* along with the FH ADD DIRS.
*/
/* Ignore st_ctime when backing up. */
/* If we should check for the last modification time. */
/*
* Environment variable name for the maximum permitted
* token sequence for token-based backups.
*/
/* Environment variable name for the active version. */
/*
* Environment variable name for restore path.
* If restore path mechanism is set to 0 which means
* partial path restore, then the result will be
*/
extern int ndmpd_load_prop(void);
extern char *ndmpd_get_prop(ndmpd_cfg_id_t);
extern char *ndmpd_get_prop_default(ndmpd_cfg_id_t, char *);
extern int ndmpd_get_prop_yorn(ndmpd_cfg_id_t);
#ifdef __cplusplus
}
#endif
#endif /* _NDMPD_PROP_H */