1MP_SetPathWeight(3CMoPmAmPoIn)Multipath Management Library FuMnPc_tSieotnPsathWeight(3MPAPI)
2
3
4

NAME

6       MP_SetPathWeight - set the weight of a path
7

SYNOPSIS

9       cc [ flag... ] file... -lMPAPI [ library... ]
10       #include <mpapi.h>
11
12       MP_STATUS MP_SetPathWeight(MP_OID pathOid, MP_UINT32 weight);
13
14

PARAMETERS

16       pathOid    The object ID of the path logical unit.
17
18
19       weight     A weight that will be assigned to the path logical unit.
20
21

DESCRIPTION

23       The  MP_SetPathWeight()  function  sets  the weight to be assigned to a
24       particular path.
25

RETURN VALUES

27       MP_STATUS_INVALID_OBJECT_TYPE
28
29           The pathOid does not specify any valid object type.  This  is  most
30           likely  to  happen  if  an uninitialized object ID is passed to the
31           API.
32
33
34       MP_STATUS_OBJECT_NOT_FOUND
35
36           The pathOid ownerID or object sequence number is invalid.
37
38
39       MP_STATUS_INVALID_PARAMETER
40
41           The pathOid has a type subfield other than  MP_OBJECT_TYPE_PATH_LU,
42           or  when  the weight parameter is greater than the plugin's maximum
43           weight property.
44
45
46       MP_STATUS_SUCCESS
47
48           The operation is successful.
49
50
51       MP_STATUS_FAILED
52
53           The operation failed.
54
55
56       MP_STATUS_UNSUPPORTED
57
58           The driver does not support setting path weight.
59
60

ATTRIBUTES

62       See attributes(5) for descriptions of the following attributes:
63
64
65
66
67       ┌─────────────────────────────┬─────────────────────────────┐
68       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
69       ├─────────────────────────────┼─────────────────────────────┤
70       │Interface Stability          │Standard: ANSI  INCITS  412  │
71       │                             │Multipath Management API     │
72       ├─────────────────────────────┼─────────────────────────────┤
73       │MT-Level                     │Safe                         │
74       └─────────────────────────────┴─────────────────────────────┘
75

SEE ALSO

77       libMPAPI(3LIB), attributes(5)
78
79
80       Multipath Management API Version 1.0
81
82
83
84SunOS 5.11                        15 Feb 2006         MP_SetPathWeight(3MPAPI)
Impressum