]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - repair/versions.h
94f57758537fb401f3770de333ec8602bb650327
[thirdparty/xfsprogs-dev.git] / repair / versions.h
1 /*
2 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 #ifndef _XR_VERSIONS_H
20 #define _XR_VERSIONS_H
21
22 #ifndef EXTERN
23 #define EXTERN extern
24 #endif /* EXTERN */
25
26 /*
27 * possible XFS filesystem features
28 *
29 * inode version 2 (32-bit link counts) (6.2)
30 */
31
32 /*
33 * filesystem feature global vars, set to 1 if the feature
34 * is *allowed*, 0 otherwise. These can be set via command-line
35 * options
36 */
37
38 EXTERN int fs_has_extflgbit_allowed;
39 EXTERN int fs_shared_allowed;
40
41 /*
42 * filesystem feature global vars, set to 1 if the feature
43 * is on, 0 otherwise
44 */
45
46 EXTERN int fs_attributes;
47 EXTERN int fs_attributes2;
48 EXTERN int fs_inode_nlink;
49 EXTERN int fs_quotas;
50 EXTERN int fs_aligned_inodes;
51 EXTERN int fs_sb_feature_bits;
52 EXTERN int fs_has_extflgbit;
53 EXTERN int fs_shared;
54
55 /*
56 * inode chunk alignment, fsblocks
57 */
58
59 EXTERN xfs_extlen_t fs_ino_alignment;
60
61 /*
62 * modify superblock to reflect current state of global fs
63 * feature vars above
64 */
65 void update_sb_version(xfs_mount_t *mp);
66
67 /*
68 * parse current sb to set above feature vars
69 */
70 int parse_sb_version(xfs_sb_t *sb);
71
72 #endif /* _XR_VERSIONS_H */