]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - include/volume.h
rework for libtool support.
[thirdparty/xfsprogs-dev.git] / include / volume.h
1 /*
2 * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it would be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 *
12 * Further, this software is distributed without any warranty that it is
13 * free of the rightful claim of any third person regarding infringement
14 * or the like. Any license provided herein, whether implied or
15 * otherwise, applies only to this software file. Patent licenses, if
16 * any, provided herein do not apply to combinations of this program with
17 * other software, or any other product whatsoever.
18 *
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write the Free Software Foundation, Inc., 59
21 * Temple Place - Suite 330, Boston MA 02111-1307, USA.
22 *
23 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24 * Mountain View, CA 94043, or:
25 *
26 * http://www.sgi.com
27 *
28 * For further information regarding this notice, see:
29 *
30 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
31 */
32 #ifndef __VOLUME_H__
33 #define __VOLUME_H__
34
35 /*
36 * Subvolume Types for all volume managers.
37 *
38 * There is a maximum of 255 subvolumes. 0 is reserved.
39 * Note: SVTYPE_LOG, SVTYPE_DATA, SVTYPE_RT values matches XLV.
40 * Do not change - Colin Ngam
41 */
42 typedef enum sv_type_e {
43 SVTYPE_ALL =0, /* special: denotes all sv's */
44 SVTYPE_LOG =1, /* XVM Log subvol type */
45 SVTYPE_DATA, /* XVM Data subvol type */
46 SVTYPE_RT, /* XVM Real Time subvol type */
47 SVTYPE_SWAP, /* swap area */
48 SVTYPE_RSVD5, /* reserved 5 */
49 SVTYPE_RSVD6, /* reserved 6 */
50 SVTYPE_RSVD7, /* reserved 7 */
51 SVTYPE_RSVD8, /* reserved 8 */
52 SVTYPE_RSVD9, /* reserved 9 */
53 SVTYPE_RSVD10, /* reserved 10 */
54 SVTYPE_RSVD11, /* reserved 11 */
55 SVTYPE_RSVD12, /* reserved 12 */
56 SVTYPE_RSVD13, /* reserved 13 */
57 SVTYPE_RSVD14, /* reserved 14 */
58 SVTYPE_RSVD15, /* reserved 15 */
59 SVTYPE_USER1, /* First User Defined Subvol Type */
60 SVTYPE_LAST =255
61 } sv_type_t;
62
63 extern void get_subvol_stripe_wrapper (char *, sv_type_t, int *, int *);
64
65 #endif /* __VOLUME_H__ */