1 #ifndef _SYSV_FS_SB
2 #define _SYSV_FS_SB
3
4
5
6
7
8
9
10
11
12
13 struct sysv_sb_info {
14 int s_type;
15 unsigned int s_block_size;
16 unsigned int s_block_size_1;
17 unsigned int s_block_size_bits;
18 unsigned int s_block_size_ratio;
19 unsigned int s_block_size_ratio_bits;
20 char s_convert;
21 char s_kludge_symlinks;
22 char s_truncate;
23
24 nlink_t s_link_max;
25 unsigned int s_inodes_per_block;
26 unsigned int s_inodes_per_block_1;
27 unsigned int s_inodes_per_block_bits;
28 unsigned int s_ind_per_block;
29 unsigned int s_ind_per_block_1;
30 unsigned int s_ind_per_block_bits;
31 unsigned int s_ind_per_block_2;
32 unsigned int s_ind_per_block_2_1;
33 unsigned int s_ind_per_block_2_bits;
34 unsigned int s_ind_per_block_3;
35 unsigned int s_ind_per_block_block_size_1;
36 unsigned int s_ind_per_block_block_size_bits;
37 unsigned int s_ind_per_block_2_block_size_1;
38 unsigned int s_ind_per_block_2_block_size_bits;
39 unsigned int s_ind0_size;
40 unsigned int s_ind1_size;
41 unsigned int s_ind2_size;
42 unsigned int s_toobig_block;
43 unsigned int s_block_base;
44 unsigned short s_fic_size;
45 unsigned short s_flc_size;
46
47 struct buffer_head *s_bh1;
48 struct buffer_head *s_bh2;
49
50
51 char * s_sbd1;
52 char * s_sbd2;
53 unsigned short *s_sb_fic_count;
54 unsigned short *s_sb_fic_inodes;
55 unsigned short *s_sb_total_free_inodes;
56 unsigned short *s_sb_flc_count;
57 unsigned long *s_sb_flc_blocks;
58 unsigned long *s_sb_total_free_blocks;
59 unsigned long *s_sb_time;
60
61
62 unsigned long s_firstinodezone;
63 unsigned long s_firstdatazone;
64 unsigned long s_ninodes;
65 unsigned long s_ndatazones;
66 unsigned long s_nzones;
67 };
68
69
70
71 #define sv_type u.sysv_sb.s_type
72 #define sv_block_size u.sysv_sb.s_block_size
73 #define sv_block_size_1 u.sysv_sb.s_block_size_1
74 #define sv_block_size_bits u.sysv_sb.s_block_size_bits
75 #define sv_block_size_ratio u.sysv_sb.s_block_size_ratio
76 #define sv_block_size_ratio_bits u.sysv_sb.s_block_size_ratio_bits
77 #define sv_convert u.sysv_sb.s_convert
78 #define sv_kludge_symlinks u.sysv_sb.s_kludge_symlinks
79 #define sv_truncate u.sysv_sb.s_truncate
80 #define sv_link_max u.sysv_sb.s_link_max
81 #define sv_inodes_per_block u.sysv_sb.s_inodes_per_block
82 #define sv_inodes_per_block_1 u.sysv_sb.s_inodes_per_block_1
83 #define sv_inodes_per_block_bits u.sysv_sb.s_inodes_per_block_bits
84 #define sv_ind_per_block u.sysv_sb.s_ind_per_block
85 #define sv_ind_per_block_1 u.sysv_sb.s_ind_per_block_1
86 #define sv_ind_per_block_bits u.sysv_sb.s_ind_per_block_bits
87 #define sv_ind_per_block_2 u.sysv_sb.s_ind_per_block_2
88 #define sv_ind_per_block_2_1 u.sysv_sb.s_ind_per_block_2_1
89 #define sv_ind_per_block_2_bits u.sysv_sb.s_ind_per_block_2_bits
90 #define sv_ind_per_block_3 u.sysv_sb.s_ind_per_block_3
91 #define sv_ind_per_block_block_size_1 u.sysv_sb.s_ind_per_block_block_size_1
92 #define sv_ind_per_block_block_size_bits u.sysv_sb.s_ind_per_block_block_size_bits
93 #define sv_ind_per_block_2_block_size_1 u.sysv_sb.s_ind_per_block_2_block_size_1
94 #define sv_ind_per_block_2_block_size_bits u.sysv_sb.s_ind_per_block_2_block_size_bits
95 #define sv_ind0_size u.sysv_sb.s_ind0_size
96 #define sv_ind1_size u.sysv_sb.s_ind1_size
97 #define sv_ind2_size u.sysv_sb.s_ind2_size
98 #define sv_toobig_block u.sysv_sb.s_toobig_block
99 #define sv_block_base u.sysv_sb.s_block_base
100 #define sv_fic_size u.sysv_sb.s_fic_size
101 #define sv_flc_size u.sysv_sb.s_flc_size
102 #define sv_bh1 u.sysv_sb.s_bh1
103 #define sv_bh2 u.sysv_sb.s_bh2
104 #define sv_sbd1 u.sysv_sb.s_sbd1
105 #define sv_sbd2 u.sysv_sb.s_sbd2
106 #define sv_sb_fic_count u.sysv_sb.s_sb_fic_count
107 #define sv_sb_fic_inodes u.sysv_sb.s_sb_fic_inodes
108 #define sv_sb_total_free_inodes u.sysv_sb.s_sb_total_free_inodes
109 #define sv_sb_flc_count u.sysv_sb.s_sb_flc_count
110 #define sv_sb_flc_blocks u.sysv_sb.s_sb_flc_blocks
111 #define sv_sb_total_free_blocks u.sysv_sb.s_sb_total_free_blocks
112 #define sv_sb_time u.sysv_sb.s_sb_time
113 #define sv_firstinodezone u.sysv_sb.s_firstinodezone
114 #define sv_firstdatazone u.sysv_sb.s_firstdatazone
115 #define sv_ninodes u.sysv_sb.s_ninodes
116 #define sv_ndatazones u.sysv_sb.s_ndatazones
117 #define sv_nzones u.sysv_sb.s_nzones
118
119 #endif
120