.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/fs/adfs/dir_fplus.h |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 1999 Russell King |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License version 2 as |
---|
8 | | - * published by the Free Software Foundation. |
---|
9 | 6 | * |
---|
10 | 7 | * Structures of directories on the F+ format disk |
---|
11 | 8 | */ |
---|
.. | .. |
---|
25 | 22 | __le32 bigdirnamesize; |
---|
26 | 23 | __le32 bigdirparent; |
---|
27 | 24 | char bigdirname[1]; |
---|
28 | | -}; |
---|
| 25 | +} __attribute__((packed, aligned(4))); |
---|
29 | 26 | |
---|
30 | 27 | struct adfs_bigdirentry { |
---|
31 | 28 | __le32 bigdirload; |
---|
.. | .. |
---|
35 | 32 | __le32 bigdirattr; |
---|
36 | 33 | __le32 bigdirobnamelen; |
---|
37 | 34 | __le32 bigdirobnameptr; |
---|
38 | | -}; |
---|
| 35 | +} __attribute__((packed, aligned(4))); |
---|
39 | 36 | |
---|
40 | 37 | struct adfs_bigdirtail { |
---|
41 | 38 | __le32 bigdirendname; |
---|
42 | 39 | __u8 bigdirendmasseq; |
---|
43 | 40 | __u8 reserved[2]; |
---|
44 | 41 | __u8 bigdircheckbyte; |
---|
45 | | -}; |
---|
| 42 | +} __attribute__((packed, aligned(4))); |
---|