]>
Commit | Line | Data |
---|---|---|
2bd0ea18 | 1 | /* |
da23017d NS |
2 | * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc. |
3 | * All Rights Reserved. | |
dfc130f3 | 4 | * |
da23017d NS |
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 | |
2bd0ea18 | 7 | * published by the Free Software Foundation. |
dfc130f3 | 8 | * |
da23017d NS |
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. | |
dfc130f3 | 13 | * |
da23017d NS |
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 | |
2bd0ea18 NS |
17 | */ |
18 | ||
19 | #ifndef _XR_VERSIONS_H | |
20 | #define _XR_VERSIONS_H | |
21 | ||
22 | #ifndef EXTERN | |
23 | #define EXTERN extern | |
24 | #endif /* EXTERN */ | |
25 | ||
2bd0ea18 NS |
26 | /* |
27 | * filesystem feature global vars, set to 1 if the feature | |
28 | * is on, 0 otherwise | |
29 | */ | |
30 | ||
31 | EXTERN int fs_attributes; | |
9b1d68ec | 32 | EXTERN int fs_attributes2; |
2bd0ea18 NS |
33 | EXTERN int fs_inode_nlink; |
34 | EXTERN int fs_quotas; | |
35 | EXTERN int fs_aligned_inodes; | |
36 | EXTERN int fs_sb_feature_bits; | |
37 | EXTERN int fs_has_extflgbit; | |
2bd0ea18 NS |
38 | |
39 | /* | |
40 | * inode chunk alignment, fsblocks | |
41 | */ | |
42 | ||
43 | EXTERN xfs_extlen_t fs_ino_alignment; | |
44 | ||
45 | /* | |
46 | * modify superblock to reflect current state of global fs | |
47 | * feature vars above | |
48 | */ | |
49 | void update_sb_version(xfs_mount_t *mp); | |
50 | ||
51 | /* | |
52 | * parse current sb to set above feature vars | |
53 | */ | |
54 | int parse_sb_version(xfs_sb_t *sb); | |
55 | ||
56 | #endif /* _XR_VERSIONS_H */ |