]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - repair/versions.h
Update copyright dates
[thirdparty/xfsprogs-dev.git] / repair / versions.h
CommitLineData
2bd0ea18 1/*
cc08d43e 2 * Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
2bd0ea18
NS
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
33#ifndef _XR_VERSIONS_H
34#define _XR_VERSIONS_H
35
36#ifndef EXTERN
37#define EXTERN extern
38#endif /* EXTERN */
39
40/*
41 * possible XFS filesystem features
42 *
43 * attributes (6.2)
44 * inode version 2 (32-bit link counts) (6.2)
45 * quotas (6.2+)
46 * aligned inodes (6.2+)
47 *
48 * bitmask fields happend after 6.2.
49 */
50
51/*
52 * filesystem feature global vars, set to 1 if the feature
53 * is *allowed*, 0 otherwise. These can be set via command-line
54 * options
55 */
56
57EXTERN int fs_attributes_allowed;
58EXTERN int fs_inode_nlink_allowed;
59EXTERN int fs_quotas_allowed;
60EXTERN int fs_aligned_inodes_allowed;
61EXTERN int fs_sb_feature_bits_allowed;
62EXTERN int fs_has_extflgbit_allowed;
63EXTERN int fs_shared_allowed;
64
65/*
66 * filesystem feature global vars, set to 1 if the feature
67 * is on, 0 otherwise
68 */
69
70EXTERN int fs_attributes;
71EXTERN int fs_inode_nlink;
72EXTERN int fs_quotas;
73EXTERN int fs_aligned_inodes;
74EXTERN int fs_sb_feature_bits;
75EXTERN int fs_has_extflgbit;
76EXTERN int fs_shared;
77
78/*
79 * inode chunk alignment, fsblocks
80 */
81
82EXTERN xfs_extlen_t fs_ino_alignment;
83
84/*
85 * modify superblock to reflect current state of global fs
86 * feature vars above
87 */
88void update_sb_version(xfs_mount_t *mp);
89
90/*
91 * parse current sb to set above feature vars
92 */
93int parse_sb_version(xfs_sb_t *sb);
94
95#endif /* _XR_VERSIONS_H */