2 .\" Copyright (c) 2009, Sun Microsystems Inc. All Rights Reserved.
3 .\" 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 or http://www.opensolaris.org/os/licensing.
4 .\" 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
5 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH STMFMODIFYLU 3STMF "May 8, 2009"
8 stmfModifyLu, stmfModifyLuByFname \- modify a logical uni
12 cc [ \fIflag\fR... ] \fIfile\fR... -lstmf [ \fIlibrary\fR... ]
15 \fBint\fR \fBstmfModifyLu\fR(\fBstmfGuid *\fR\fIluGuid\fR, \fBuint32_t\fR \fIprop\fR, \fBconst char *\fR\fIpropVal\fR)
20 \fBint\fR \fBstmfModifyLu\fR(\fBuint16_t\fR \fIdType\fR, \fBconst char *\fR\fIfname\fR, \fBuint32_t\fR \fIprop\fR,
21 \fBconst char *\fR\fIpropVal\fR)
31 The guid of logical unit to modify.
40 The filename of logical unit to modify.
49 Type of logical unit. See \fBstmfCreateLuResource\fR(3STMF).
58 A property type value. See DESCRIPTION for valid values.
73 The \fBstmfModifyLu()\fR and \fBstmfModifyLuByFname()\fR functions modify the
74 properties of a logical unit device.
77 Valid properties for modify \fBSTMF_DISK\fR:
81 \fB\fBSTMF_LU_PROP_ALIAS\fR\fR
85 Up to 255 characters representing a user defined name for the device.
87 Default: Set to file name of backing store.
93 \fB\fBSTMF_LU_PROP_SIZE\fR\fR
97 Numeric value with optional suffix (for example, 100G, 1T) to specify unit of
100 Default: Size of device specified in the \fBSTMF_LU_PROP_DATA_FILENAME\fR
107 \fB\fBSTMF_LU_PROP_WRITE_CACHE_DISABLE\fR\fR
111 Write back cache disable. When specified as "true" or "false", specifies write
112 back cache disable behavior.
114 Default: Writeback cache setting of the backing store device specified by
115 \fBSTMF_LU_PROP_DATA_FILENAME\fR.
121 \fB\fBSTMF_LU_PROP_WRITE_PROTECT\fR\fR
125 Write protect bit. When specified as "true" or "false", specifies whether the
126 device behaves as a write protected device.
134 The following values are returned:
138 \fB\fBSTMF_STATUS_SUCCESS\fR\fR
142 The API call was successful.
148 \fB\fBSTMF_ERROR_INVALID_ARG\fR\fR
152 Either \fIprop\fR or \fIpropVal\fR is unrecognized.
158 \fB\fBSTMF_ERROR_INVALID_PROPSIZE\fR\fR
162 The size of \fIpropVal\fR is invalid.
168 \fB\fBSTMF_ERROR_NO_PROP\fR\fR
172 The value of \fIprop\fR is unknown for this resource type.
178 See \fBattributes\fR(5) for descriptions of the following attributes:
186 ATTRIBUTE TYPE ATTRIBUTE VALUE
188 Interface Stability Committed
196 \fBlibstmf\fR(3LIB), \fBstmfCreateLuResource\fR(3STMF), \fBattributes\fR(5)