fs/adfs: dir: modernise on-disk directory structures
Use __u8 and pack the structures for on-disk directories. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -22,7 +22,7 @@ struct adfs_bigdirheader {
|
||||
__le32 bigdirnamesize;
|
||||
__le32 bigdirparent;
|
||||
char bigdirname[1];
|
||||
};
|
||||
} __attribute__((packed, aligned(4)));
|
||||
|
||||
struct adfs_bigdirentry {
|
||||
__le32 bigdirload;
|
||||
@@ -32,11 +32,11 @@ struct adfs_bigdirentry {
|
||||
__le32 bigdirattr;
|
||||
__le32 bigdirobnamelen;
|
||||
__le32 bigdirobnameptr;
|
||||
};
|
||||
} __attribute__((packed, aligned(4)));
|
||||
|
||||
struct adfs_bigdirtail {
|
||||
__le32 bigdirendname;
|
||||
__u8 bigdirendmasseq;
|
||||
__u8 reserved[2];
|
||||
__u8 bigdircheckbyte;
|
||||
};
|
||||
} __attribute__((packed, aligned(4)));
|
||||
|
||||
Reference in New Issue
Block a user