DFS_INFO_105

DFS_INFO_105 structure

Contains information about a DFS root or link, including comment, state, time-out, and DFS behaviors specified by property flags. This structure is only for use with the NetDfsSetInfo function.

Syntax


typedef struct _DFS_INFO_105 {
  LPWSTR Comment;
  DWORD  State;
  ULONG  Timeout;
  ULONG  PropertyFlagMask;
  ULONG  PropertyFlags;
} DFS_INFO_105, *PDFS_INFO_105, *LPDFS_INFO_105;

Members

Comment

Pointer to a null-terminated Unicode string that contains a comment associated with the DFS root or link.

State

Specifies a set of bit flags that describe the state of the DFS root or link; the state of the DFS namespace root cannot be changed. One DFS_VOLUME_STATE flag is set, and one DFS_VOLUME_FLAVOR flag is set. For an example that describes the interpretation of these flags, see the Remarks section of DFS_INFO_2.

Default (0x00000000)

Keep the existing state.

DFS_VOLUME_STATE_OK (0x00000001)

The specified DFS root or link is in the normal state.

DFS_VOLUME_STATE_OFFLINE (0x00000003)

The specified DFS root or link is offline or unavailable.

DFS_VOLUME_STATE_ONLINE (0x00000004)

The specified DFS root or link is available.

Timeout

Specifies the time-out, in seconds, of the DFS root or link.

PropertyFlagMask

Specifies a mask value that indicates which flags are valid for evaluation in the PropertyFlags field.

PropertyFlags

Bitfield, with each bit responsible for a specific property applicable to the whole DFS namespace, the DFS root, or an individual DFS link, depending on the actual property. Any combination of bits is allowed unless indicated otherwise.

DFS_PROPERTY_FLAG_INSITE_REFERRALS (0x00000001)

Referral response from a DFS server for a DFS root or link that contains only those targets in the same site as the client requesting the referral. Targets in the two global priority classes are always returned, independent of their site location. This flag applies to domain-based DFS roots, stand-alone roots, and links. If this flag is set at the DFS root, it applies to all links; otherwise, it applies to an individual link. Setting at the link does not override the root setting.

DFS_PROPERTY_FLAG_ROOT_SCALABILITY (0x00000002)

If this flag is set, the DFS server polls the nearest domain controller (DC) instead of the primary domain controller (PDC) to check for DFS namespace changes for that namespace. Any modification to the DFS metadata by the DFS server is not controlled by this flag but is sent to the PDC automatically. This flag applies to the entire namespace and is valid only for domain-based DFS namespaces.

DFS_PROPERTY_FLAG_SITE_COSTING (0x00000004)

Set this flag to enable Active Directory site costing of targets. Targets returned from the DFS server to the requesting DFS client are grouped by inter-site cost with respect to the DFS client. The groups are ordered in terms of increasing site cost with first group consisting of targets in the same site as the client. Targets within each group are ordered randomly.

If this flag is not enabled, the default return is two sets: one set of targets in the same site as the client, and one set of all remaining targets. This flag applies to the entire DFS namespace and is valid for both domain-based and stand-alone DFS namespaces.

Target priorities can further influence target ordering. For more information about how site-costing is used to prioritize targets, see DFS Server Target Prioritization.

DFS_PROPERTY_FLAG_TARGET_FAILBACK (0x00000008)

Set this flag to enable V4 DFS clients to fail back to a more optimal (lower cost or higher priority) target. If this flag is set at the DFS root, it applies to all links; otherwise, it applies to an individual link. An individual link setting will not override a root setting. The target failback setting is provided to the DFS client in a V4 referral response by the DFS server. This flag applies to domain-based DFS roots, stand-alone roots, and links.

DFS_PROPERTY_FLAG_CLUSTER_ENABLED (0x00000010)

Scope: Stand-alone roots and links only.

If this flag is set, the DFS root is clustered to provide high availability for storage failover. This flag cannot be set using the NetDfsSetInfo function.

DFS_PROPERTY_FLAG_ABDE (0x00000020)

Scope: Domain-based DFS roots and stand-alone DFS roots.

When this flag is set, Access-Based Directory Enumeration (ABDE) mode support is enabled on the entire DFS root target share of the DFS namespace. This flag is valid only for DFS namespaces for which the DFS_NAMESPACE_CAPABILITY_ABDE capability flag is set. For more information, see DFS_INFO_50 and DFS_SUPPORTED_NAMESPACE_VERSION_INFO.

The DFS_PROPERTY_FLAG_ABDE flag is valid only on the DFS namespace root and not on root targets, links, or link targets. This flag must be enabled to associate a security descriptor with a DFS link.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008, Windows Server 2008

Header

LmDfs.h (include LmDfs.h or Lm.h)

See also

DFS Server Target Prioritization
Network Management Overview
Network Management Structures
Distributed File System (DFS) Functions
NetDfsSetInfo

 

 

Show:
© 2016 Microsoft