lm_acs_display.c revision d1d2228c6cf3ec632d28262810ab7902932a5d33
/*
* CDDL HEADER START
*
* 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
* 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 the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include "lm_acs.h"
#include <lm.h>
#define Ptrdiff(a, b) ((((char *)(a) - (char *)(b)) > 0) ? \
((char *)(a) - (char *)(b)) : 0)
int
{
char xml_buf[MAX_MESSAGE_SIZE];
char tmp_str[128];
int j;
int p_diff;
j = 0;
if (j == 0) {
}
if (j == 1) {
}
if (j == 2) {
}
if (j == 3) {
}
j++;
}
}
return (LM_OK);
}
int
char *ret_msg)
{
char dExample[MAX_XML_DATA_SIZE];
char dBegin[] =
"<request type=\"DISPLAY\"><display><token>display</token>";
char dEnd[] = "</display></request>";
char dTokBegin[] = "<token>";
char dTokEnd[] = "</token>";
char token[100];
dTokEnd);
dTokEnd);
dTokEnd);
dTokEnd);
return (LM_ERROR);
"display of drive serial number");
"lm_obtain_geometry: response display status "
return (LM_ERROR);
}
"drive geometry from acs_display failed");
return (LM_ERROR);
}
return (LM_OK);
}
int
{
char xml_buf[MAX_MESSAGE_SIZE];
int j;
int p_diff;
j = 0;
if (j == 0) {
}
if (j == 1) {
}
if (j == 2) {
}
if (j == 3) {
}
if (j == 4) {
"serial num - %s", *serial);
}
j++;
}
}
return (LM_OK);
}
int
char *ret_msg)
{
char dExample[MAX_XML_DATA_SIZE];
char dBegin[] =
"<request type=\"DISPLAY\"><display><token>display</token>";
char dEnd[] = "</display></request>";
char dTokBegin[] = "<token>";
char dTokEnd[] = "</token>";
char token[100];
dTokEnd);
dTokEnd);
dTokEnd);
"serial_num", dTokEnd);
return (LM_ERROR);
"lm_obtain_serial_num: obtained final response from "
"display of drive serial number");
"lm_obtain_serial_num: response display status "
return (LM_ERROR);
}
"drive serial numbers from acs_display failed");
return (LM_ERROR);
}
"lm_obtain_serial_num: ACSLS %s drive's serial number "
return (LM_OK);
}
int
{
char xml_buf[4096];
char str1[4096];
char *serial;
char cmd_str[1024];
int rc;
int lmpl_tid;
int i, ii, j;
int p_diff;
i = 0;
i++;
}
j = 0;
if (j == 0) {
}
if (j == 1) {
}
if (j == 2) {
}
if (j == 3) {
}
if (j == 4) {
serial = p;
}
j++;
}
"lm_set_drive_serial: lm_obtain_task_id "
"failed trying to generate attribute command");
return (LM_ERROR);
}
serial);
cmd_str);
"processing error encountered while processing "
"lmpl attribute command");
return (LM_ERROR);
} else if (rc != LMPL_FINAL_OK) {
"lm_set_drive_serial: Attribute cmd "
"did not get a success final response");
return (LM_ERROR);
}
"got sucess final response");
}
return (LM_OK);
}
int
{
char dExample[MAX_XML_DATA_SIZE];
char dBegin[] =
"<request type=\"DISPLAY\"><display><token>display</token>";
char dEnd[] = "</display></request>";
char dTokBegin[] = "<token>";
char dTokEnd[] = "</token>";
char token[100];
dTokEnd);
else
dTokEnd);
"serial_num", dTokEnd);
return (LM_ERROR);
"obtained final response from "
"display of drive serial numbers");
"lm_drive_serial_num: response display status "
return (LM_ERROR);
}
return (LM_OK);
}
int
{
char xml_buf[4096];
char str1[4096];
char msg_str[1024];
int p_diff;
"but ACSLS says library with ACSLS cordinates of %d,%d "
return (LM_ERROR);
}
return (LM_OK);
}
int
{
int rc;
char dExample[MAX_XML_DATA_SIZE];
char dBegin[] =
"<request type=\"DISPLAY\"><display><token>display</token>";
char dEnd[] = "</display></request>";
char dTokBegin[] = "<token>";
char dTokEnd[] = "</token>";
char token[100];
dTokEnd);
dTokEnd);
dTokEnd);
return (LM_ERROR);
"display of lsm type");
return (LM_ERROR);
}
return (LM_ERROR);
return (LM_OK);
}
int
{
char xml_buf[4096];
char str1[4096];
int rc;
int p_diff;
return (rc);
}
int
{
char dExample[MAX_XML_DATA_SIZE];
char dBegin[] =
"<request type=\"DISPLAY\"><display><token>display</token>";
char dEnd[] = "</display></request>";
char dTokBegin[] = "<token>";
char dTokEnd[] = "</token>";
char token[100];
dTokEnd);
dTokEnd);
return (LM_ERROR);
"display of count of panels");
return (LM_ERROR);
}
return (LM_OK);
}
int
{
char dExample[MAX_XML_DATA_SIZE];
char dBegin[] =
"<request type=\"DISPLAY\"><display><token>display</token>";
char dEnd[] = "</display></request>";
char dTokBegin[] = "<token>";
char dTokEnd[] = "</token>";
char token[100];
dTokEnd);
dTokEnd);
dTokEnd);
dTokEnd);
dTokEnd);
dTokEnd);
return (LM_ERROR);
}
"acs_display for number of volumes with status of home");
return (LM_ERROR);
}
*num_vols);
return (LM_OK);
}