2 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
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.
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.
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
19 #ifndef _XR_VERSIONS_H
20 #define _XR_VERSIONS_H
27 * possible XFS filesystem features
29 * inode version 2 (32-bit link counts) (6.2)
33 * filesystem feature global vars, set to 1 if the feature
34 * is *allowed*, 0 otherwise. These can be set via command-line
38 EXTERN
int fs_has_extflgbit_allowed
;
39 EXTERN
int fs_shared_allowed
;
42 * filesystem feature global vars, set to 1 if the feature
46 EXTERN
int fs_attributes
;
47 EXTERN
int fs_attributes2
;
48 EXTERN
int fs_inode_nlink
;
50 EXTERN
int fs_aligned_inodes
;
51 EXTERN
int fs_sb_feature_bits
;
52 EXTERN
int fs_has_extflgbit
;
56 * inode chunk alignment, fsblocks
59 EXTERN xfs_extlen_t fs_ino_alignment
;
62 * modify superblock to reflect current state of global fs
65 void update_sb_version(xfs_mount_t
*mp
);
68 * parse current sb to set above feature vars
70 int parse_sb_version(xfs_sb_t
*sb
);
72 #endif /* _XR_VERSIONS_H */