mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
hints: keep strings aligned in structure
Preffer aligned string access.
This commit is contained in:
parent
ff21723512
commit
ca12dae32b
@ -17,10 +17,10 @@
|
||||
|
||||
struct hint {
|
||||
struct dm_list list;
|
||||
char name[PATH_MAX];
|
||||
char pvid[ID_LEN + 1];
|
||||
char vgname[NAME_LEN];
|
||||
dev_t devt;
|
||||
char name[PATH_MAX] __attribute__((aligned(8)));
|
||||
char vgname[NAME_LEN] __attribute__((aligned(8)));
|
||||
char pvid[ID_LEN + 1] __attribute__((aligned(8)));
|
||||
unsigned chosen:1; /* this hint's dev was chosen for scanning */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user