label_test.c revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 (c) 1994 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include "vold.h"
/*
* This is the "test" label. It is just a hack that will grow, change
* and serve as the example "label" interface.
*/
static void test_setup(vol_t *);
#define TEST_SIZE 12
test_key, /* l_key */
test_compare, /* l_compare */
test_read, /* l_read */
NULL, /* l_write */
test_setup, /* l_setup */
test_xdr, /* l_xdr */
TEST_SIZE, /* l_size */
TEST_LTYPE, /* l_ident */
1, /* l_nll */
&test_labelloc, /* l_ll */
};
{
info("label_test: init\n");
return (TRUE);
}
/*ARGSUSED*/
static enum laread_res
{
int err;
#ifdef notdef
#endif
goto errout;
}
goto errout;
}
return (L_FOUND);
return (L_ERROR);
}
static char *
{
}
static bool_t
{
#if 0
printf("test_compare: ");
#endif
#if 0
printf("TRUE\n");
#endif
return (TRUE);
}
#if 0
printf("FALSE\n");
#endif
return (FALSE);
}
static void
test_setup(vol_t *v)
{
}
}
void
{
/* yes, well I don't feel like writing xdr code right now */
if (op == XDR_ENCODE) {
} else if (op == XDR_DECODE) {
}
}
}