Lines Matching defs:propVal

129 static int getDiskGlobalProp(uint32_t prop, char *propVal, size_t *propLen);
2275 * propVal - property value to set
2279 stmfModifyLu(stmfGuid *luGuid, uint32_t prop, const char *propVal)
2294 ret = modifyDiskLuProp(luGuid, NULL, prop, propVal);
2315 * propVal - property value
2320 const char *propVal)
2328 ret = modifyDiskLuProp(NULL, fname, prop, propVal);
2338 const char *propVal)
2353 ret = stmfSetLuProp(hdl, prop, propVal);
2678 * propVal - void pointer to a pointer of the value to be retrieved
2681 stmfGetLuProp(luResource hdl, uint32_t prop, char *propVal, size_t *propLen)
2685 if (hdl == NULL || propLen == NULL || propVal == NULL) {
2690 ret = getDiskProp(luPropsHdl, prop, propVal, propLen);
2966 stmfGetGlobalLuProp(uint16_t dType, uint32_t prop, char *propVal,
2970 if (dType != STMF_DISK || propVal == NULL) {
2974 ret = getDiskGlobalProp(prop, propVal, propLen);
2986 getDiskGlobalProp(uint32_t prop, char *propVal, size_t *propLen)
3080 if ((reqLen = strlcpy(propVal, (char *)&(
3103 stmfSetGlobalLuProp(uint16_t dType, uint32_t prop, const char *propVal)
3106 if (dType != STMF_DISK || propVal == NULL) {
3110 ret = setDiskGlobalProp(prop, propVal);
3121 * propVal - valid resource value
3124 setDiskGlobalProp(uint32_t resourceProp, const char *propVal)
3151 propLen = strlen(propVal);
3170 bcopy(propVal, &(sbdGlobalProps->mlu_buf),
3219 * propVal - property value to be set
3222 stmfSetLuProp(luResource hdl, uint32_t prop, const char *propVal)
3231 ret = setDiskProp(luPropsHdl, prop, propVal);
3246 * propVal - pointer to character to contain the retrieved property value
3247 * propLen - On input this is the length of propVal. On failure, it contains the
3248 * number of bytes required for propVal
3251 getDiskProp(luResourceImpl *hdl, uint32_t prop, char *propVal, size_t *propLen)
3275 if ((reqLen = strlcpy(propVal, accessState,
3292 reqLen = snprintf(propVal, *propLen, "%llu",
3303 if ((reqLen = strlcpy(propVal, diskLu->luDataFileName,
3313 if ((reqLen = strlcpy(propVal, diskLu->luMetaFileName,
3323 if ((reqLen = strlcpy(propVal, diskLu->luMgmtUrl,
3333 reqLen = snprintf(propVal, *propLen,
3353 if ((reqLen = strlcpy(propVal, diskLu->serialNum,
3363 (void) snprintf(propVal, *propLen, "%llu",
3370 if ((reqLen = strlcpy(propVal, diskLu->luAlias,
3383 bcopy(diskLu->vid, propVal, sizeof (diskLu->vid));
3384 propVal[sizeof (diskLu->vid)] = 0;
3393 bcopy(diskLu->pid, propVal, sizeof (diskLu->pid));
3394 propVal[sizeof (diskLu->pid)] = 0;
3401 if ((reqLen = strlcpy(propVal, "true",
3407 if ((reqLen = strlcpy(propVal, "false",
3419 if ((reqLen = strlcpy(propVal, "true",
3425 if ((reqLen = strlcpy(propVal, "false",
3437 if ((reqLen = strlcpy(propVal, "true",
3443 if ((reqLen = strlcpy(propVal, "false",
3465 * propVal - valid resource value
3468 setDiskProp(luResourceImpl *hdl, uint32_t resourceProp, const char *propVal)
3482 if (propVal == NULL) {
3488 if (strlcpy(diskLu->luAlias, propVal,
3496 const char *tmp = propVal;
3502 (void) sscanf(propVal, "%llu", &numericProp);
3511 if ((strlcpy(ouiProp, propVal, sizeof (ouiProp))) >=
3531 if ((strlcpy(hostIdProp, propVal,
3552 if (strlen(propVal) != LU_ASCII_GUID_SIZE) {
3556 if ((strlcpy(guidProp, propVal, sizeof (guidProp))) >=
3577 if ((strlcpy(diskLu->luDataFileName, propVal,
3585 if ((strlcpy(diskLu->luMetaFileName, propVal,
3593 diskLu->luMgmtUrl = strdup(propVal);
3599 if ((propSize = strlen(propVal)) >
3603 (void) strncpy(diskLu->pid, propVal, propSize);
3607 if ((propSize = strlen(propVal)) >
3611 (void) strncpy(diskLu->serialNum, propVal, propSize);
3615 if ((niceStrToNum(propVal, &diskLu->luSize) != 0)) {
3621 if ((propSize = strlen(propVal)) >
3625 (void) strncpy(diskLu->vid, propVal, propSize);
3629 if (strcasecmp(propVal, "TRUE") == 0) {
3631 } else if (strcasecmp(propVal, "FALSE") == 0) {
3639 if (strcasecmp(propVal, "TRUE") == 0) {
3641 } else if (strcasecmp(propVal, "FALSE") == 0) {
3652 if (strcasecmp(propVal, "TRUE") == 0) {
3654 } else if (strcasecmp(propVal, "FALSE") == 0) {
5903 * function using pointer propVal of size propLen. The passed propLen
5908 * propVal - view entry property Value.
5913 char *propVal, size_t *propLen)
5918 if (resource == NULL || propVal == NULL || propLen == NULL)
5929 *propLen = stmfGuidToAscii(&veRsrc->veGuid, propVal, bufLen);
5933 *propLen = snprintf(propVal, bufLen, "%s",
5938 *propLen = snprintf(propVal, bufLen, "%s",
5943 *propLen = snprintf(propVal, bufLen, "%s",
5948 *propLen = snprintf(propVal, bufLen, "%s",
5953 *propLen = snprintf(propVal, bufLen, "%d", veRsrc->veIndex);
5957 *propLen = snprintf(propVal, bufLen, "%s",
5963 *propLen = snprintf(propVal, bufLen, "%d",
6625 char propVal[10];
6626 size_t propValSize = sizeof (propVal);
6638 stmfRet = stmfGetLuProp(hdl, STMF_LU_PROP_ACCESS_STATE, propVal,
6643 if (propVal[0] == '0') {
6850 stmfSetStmfProp(uint8_t propType, char *propVal)
6861 ret = psSetStmfProp(propType, propVal);
6881 stmfGetStmfProp(uint8_t propType, char *propVal, size_t *propLen)
6887 if (propVal == NULL || propLen == NULL) {
6899 if ((reqLen = strlcpy(propVal, prop, *propLen)) >= *propLen) {
6927 char propVal[MAXNAMELEN] = {0};
6929 if ((ret = psGetStmfProp(STMF_DEFAULT_LU_STATE, propVal)) ==
6931 if (strncmp(propVal, "offline", strlen(propVal)) == 0) {
6944 if ((ret = psGetStmfProp(STMF_DEFAULT_TARGET_PORT_STATE, propVal)) ==
6946 if (strncmp(propVal, "offline", strlen(propVal)) == 0) {