/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _SMB_DFS_H
#define _SMB_DFS_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* DFS root or link states
*
* DFS_VOLUME_STATE_OK
* The specified DFS root or DFS link is in the normal state.
*
* DFS_VOLUME_STATE_INCONSISTENT
* The internal DFS database is inconsistent with the specified DFS root or
* DFS link. Attempts to repair the inconsistency have failed. This is a
* read-only state and MUST NOT be set by clients.
*
* DFS_VOLUME_STATE_OFFLINE
* The specified DFS root or DFS link is offline or unavailable.
*
* DFS_VOLUME_STATE_ONLINE
* The specified DFS root or DFS link is available.
*
* DFS_VOLUME_FLAVOR_STANDALONE Standalone namespace
* DFS_VOLUME_FLAVOR_AD_BLOB Domain-based namespace
*/
/*
* The following bitmasks is only relevant when reading the volume state, not
* for setting it.
*/
/*
* States specified by this mask are used to perform a server operation and are
* not persisted to the DFS metadata
*/
/*
* DFS Storage state
*/
/*
* Flags for NetrDfsAdd operation:
*
* 0x00000000 This creates a new link or adds a new target to an
* existing link.
*
* DFS_ADD_VOLUME This creates a new link in the DFS namespace if one does
* not already exist or fails if a link already exists.
*
* DFS_RESTORE_VOLUME This adds a target without verifying its existence.
*/
/*
* See also: dfs_target_pclass_xdr()
*/
typedef enum {
/*
* Referral Request Types
* See also: dfs_reftype_xdr()
*/
typedef enum {
DFS_REFERRAL_INVALID = 0,
/*
* See also: dfs_target_priority_xdr()
*/
typedef struct dfs_target_priority {
/*
* t_server a null-terminated Unicode string that specifies the DFS link
* target host name.
*
* t_share a null-terminated Unicode DFS link target share name string.
* This may also be a share name with a path relative to the share,
* for example, "share1\mydir1\mydir2". When specified this way,
* each pathname component MUST be a directory
*
* lmdfs.h)
*
* t_priority priority class and rank
*
* See also: dfs_target_xdr()
*/
typedef struct dfs_target {
} dfs_target_t;
/*
* DFS referral response
* See also: dfs_info_xdr()
*/
typedef struct dfs_info {
} dfs_info_t;
#ifdef __cplusplus
}
#endif
#endif /* _SMB_DFS_H */