Print this page
1845 allow disable of UNMAP via stmfadm(1M).
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/lib/libstmf/common/libstmf_impl.h
+++ new/usr/src/lib/libstmf/common/libstmf_impl.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 24 */
25 25
26 26 #ifndef _LIBSTMF_IMPL_H
27 27 #define _LIBSTMF_IMPL_H
28 28
29 29 #ifdef __cplusplus
30 30 extern "C" {
31 31 #endif
32 32
33 33 #include <libstmf.h>
34 34
35 35 typedef struct _luResourceImpl {
36 36 uint16_t type;
37 37 void *resource;
38 38 } luResourceImpl;
39 39
40 40
41 41 typedef struct _diskResource {
42 42 boolean_t luDataFileNameValid;
43 43 char luDataFileName[MAXPATHLEN];
44 44 boolean_t luMetaFileNameValid;
45 45 char luMetaFileName[MAXPATHLEN];
46 46 boolean_t luSizeValid;
47 47 uint64_t luSize;
48 48 boolean_t blkSizeValid;
49 49 uint16_t blkSize;
50 50 boolean_t luGuidValid;
51 51 uint8_t luGuid[16];
52 52 boolean_t serialNumValid;
53 53 char serialNum[253];
54 54 boolean_t companyIdValid;
55 55 uint32_t companyId;
56 56 boolean_t luAliasValid;
57 57 char luAlias[256];
58 58 boolean_t luMgmtUrlValid;
59 59 char luMgmtUrl[1024];
|
↓ open down ↓ |
59 lines elided |
↑ open up ↑ |
60 60 boolean_t vidValid;
61 61 char vid[8];
62 62 boolean_t pidValid;
63 63 char pid[16];
64 64 boolean_t revValid;
65 65 char rev[4];
66 66 boolean_t writeProtectEnableValid;
67 67 boolean_t writeProtectEnable;
68 68 boolean_t writebackCacheDisableValid;
69 69 boolean_t writebackCacheDisable;
70 + boolean_t unmapValid;
71 + boolean_t unmap;
70 72 uint16_t accessState;
71 73 uint32_t hostId;
72 74 boolean_t hostIdValid;
73 75 } diskResource;
74 76
75 77
76 78 #ifdef __cplusplus
77 79 }
78 80 #endif
79 81
80 82 #endif /* _LIBSTMF_IMPL_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX