summaryrefslogtreecommitdiff
path: root/usr/src/cmd/lvm/metassist/layout/layout_messages.h
blob: d9c7531b215ada28906a2d15c4e0ea9e90aec7f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
 * 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
 * or http://www.opensolaris.org/os/licensing.
 * 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 2003 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 */

#ifndef _LAYOUT_MESSAGES_H
#define	_LAYOUT_MESSAGES_H

#pragma ident	"%Z%%M%	%I%	%E% SMI"

#ifdef __cplusplus
extern "C" {
#endif

#include <sys/types.h>

/*
 * Functions to print out progress, status and error messages that
 * are shared by layout_concat.c, layout_hsp.c, layout_mirror.c,
 * layout_stripe.c
 */
extern void print_layout_success_msg();
extern void print_layout_volume_msg(char *type, uint64_t nbytes);
extern void print_layout_explicit_msg(char *type);
extern void print_layout_explicit_added_msg(char *comp);
extern void print_layout_submirrors_msg(char *type, uint64_t nbytes, int nsubs);
extern void print_layout_submirrors_failed_msg(char *type, int count,
	int nsubs);

extern void print_populate_volume_msg(char *type, uint64_t nbytes);
extern void print_populate_volume_ncomps_msg(char *type, uint64_t nbytes,
	int ncomps);
extern void print_populate_success_msg();
extern void print_populate_choose_slices_msg();
extern void print_populate_no_slices_msg();

extern void print_no_hbas_msg();
extern void print_debug_failure_msg();

extern void print_insufficient_resources_msg(char *type);
extern void print_insufficient_hbas_msg(int n);
extern void print_insufficient_disks_msg(int n);
extern void print_hba_insufficient_space_msg(char *name, uint64_t nbytes);
extern void print_insufficient_capacity_msg(uint64_t nbytes);
extern void print_insufficient_components_msg(int ncomp);

#ifdef __cplusplus
}
#endif

#endif /* _LAYOUT_MESSAGES_H */