]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/volume.h
Merge whitespace changes over
[thirdparty/xfsprogs-dev.git] / include / volume.h
CommitLineData
f937adac 1/*
0d3e0b37 2 * Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
dfc130f3 3 *
f937adac
NS
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.
dfc130f3 7 *
f937adac
NS
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.
dfc130f3 11 *
f937adac
NS
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.
dfc130f3 18 *
f937adac
NS
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.
dfc130f3 22 *
f937adac
NS
23 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24 * Mountain View, CA 94043, or:
dfc130f3
RC
25 *
26 * http://www.sgi.com
27 *
28 * For further information regarding this notice, see:
29 *
f937adac
NS
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.
dfc130f3 37 *
f937adac
NS
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 */
42typedef enum sv_type_e {
43 SVTYPE_ALL =0, /* special: denotes all sv's */
dfc130f3 44 SVTYPE_LOG =1, /* XVM Log subvol type */
f937adac
NS
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
63extern void get_subvol_stripe_wrapper (char *, sv_type_t, int *, int *);
d5dca43b 64extern int get_driver_block_major (const char *);
f937adac
NS
65
66#endif /* __VOLUME_H__ */