diff options
Diffstat (limited to 'include/linux/gfs2_ondisk.h')
-rw-r--r-- | include/linux/gfs2_ondisk.h | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h index b80c88dedbbb..4f4462974c14 100644 --- a/include/linux/gfs2_ondisk.h +++ b/include/linux/gfs2_ondisk.h | |||
@@ -81,7 +81,11 @@ struct gfs2_meta_header { | |||
81 | __be32 mh_type; | 81 | __be32 mh_type; |
82 | __be64 __pad0; /* Was generation number in gfs1 */ | 82 | __be64 __pad0; /* Was generation number in gfs1 */ |
83 | __be32 mh_format; | 83 | __be32 mh_format; |
84 | __be32 __pad1; /* Was incarnation number in gfs1 */ | 84 | /* This union is to keep userspace happy */ |
85 | union { | ||
86 | __be32 mh_jid; /* Was incarnation number in gfs1 */ | ||
87 | __be32 __pad1; | ||
88 | }; | ||
85 | }; | 89 | }; |
86 | 90 | ||
87 | /* | 91 | /* |
@@ -176,33 +180,6 @@ struct gfs2_rgrp { | |||
176 | }; | 180 | }; |
177 | 181 | ||
178 | /* | 182 | /* |
179 | * quota linked list: user quotas and group quotas form two separate | ||
180 | * singly linked lists. ll_next stores uids or gids of next quotas in the | ||
181 | * linked list. | ||
182 | |||
183 | Given the uid/gid, how to calculate the quota file offsets for the corresponding | ||
184 | gfs2_quota structures on disk: | ||
185 | |||
186 | for user quotas, given uid, | ||
187 | offset = uid * sizeof(struct gfs2_quota); | ||
188 | |||
189 | for group quotas, given gid, | ||
190 | offset = (gid * sizeof(struct gfs2_quota)) + sizeof(struct gfs2_quota); | ||
191 | |||
192 | |||
193 | uid:0 gid:0 uid:12 gid:12 uid:17 gid:17 uid:5142 gid:5142 | ||
194 | +-------+-------+ +-------+-------+ +-------+- - - -+ +- - - -+-------+ | ||
195 | | valid | valid | :: | valid | valid | :: | valid | inval | :: | inval | valid | | ||
196 | +-------+-------+ +-------+-------+ +-------+- - - -+ +- - - -+-------+ | ||
197 | next:12 next:12 next:17 next:5142 next:NULL next:NULL | ||
198 | | | | | |<-- user quota list | | ||
199 | \______|___________/ \______|___________/ group quota list -->| | ||
200 | | | | | ||
201 | \__________________/ \_______________________________________/ | ||
202 | |||
203 | */ | ||
204 | |||
205 | /* | ||
206 | * quota structure | 183 | * quota structure |
207 | */ | 184 | */ |
208 | 185 | ||
@@ -210,8 +187,7 @@ struct gfs2_quota { | |||
210 | __be64 qu_limit; | 187 | __be64 qu_limit; |
211 | __be64 qu_warn; | 188 | __be64 qu_warn; |
212 | __be64 qu_value; | 189 | __be64 qu_value; |
213 | __be32 qu_ll_next; /* location of next quota in list */ | 190 | __u8 qu_reserved[64]; |
214 | __u8 qu_reserved[60]; | ||
215 | }; | 191 | }; |
216 | 192 | ||
217 | /* | 193 | /* |