diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-03-07 16:28:59 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-03-08 15:33:15 +0100 |
commit | ca12dae32b03c54509608621b9268853b030fd40 (patch) | |
tree | 6ec9284fd9406ea6cdb01d555e99da2cb1093802 /lib/label | |
parent | ff21723512cb633c741e516381899f70e0d9ef2a (diff) | |
download | lvm2-ca12dae32b03c54509608621b9268853b030fd40.tar.gz |
hints: keep strings aligned in structure
Preffer aligned string access.
Diffstat (limited to 'lib/label')
-rw-r--r-- | lib/label/hints.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/label/hints.h b/lib/label/hints.h index 51143343d..e8cfd6a7e 100644 --- a/lib/label/hints.h +++ b/lib/label/hints.h @@ -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 */ }; |