diff options
author | Alasdair Kergon <agk@redhat.com> | 2006-11-30 23:11:42 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2006-11-30 23:11:42 +0000 |
commit | 4dc0ec2253482a334117b90f4c714a38d372c985 (patch) | |
tree | abb367ca7f94f87e816f902887ac9281dc89655f /lib/label/label.c | |
parent | 6c48fe74331a262d7eb1be0c2027b281703e148d (diff) | |
download | lvm2-4dc0ec2253482a334117b90f4c714a38d372c985.tar.gz lvm2-4dc0ec2253482a334117b90f4c714a38d372c985.tar.xz lvm2-4dc0ec2253482a334117b90f4c714a38d372c985.zip |
Adjust some alignments for ia64 and sparc.
(Some of the changes are probably unnecessary.)
Diffstat (limited to 'lib/label/label.c')
-rw-r--r-- | lib/label/label.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/label/label.c b/lib/label/label.c index f6fb6d1e..7ba0e90e 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -115,7 +115,7 @@ static struct labeller *_find_labeller(struct device *dev, char *buf, struct lvmcache_info *info; uint64_t sector; int found = 0; - char readbuf[LABEL_SCAN_SIZE]; + char readbuf[LABEL_SCAN_SIZE] __attribute((aligned(8))); if (!dev_read(dev, UINT64_C(0), LABEL_SCAN_SIZE, readbuf)) { log_debug("%s: Failed to read label area", dev_name(dev)); @@ -186,8 +186,8 @@ static struct labeller *_find_labeller(struct device *dev, char *buf, /* FIXME Also wipe associated metadata area headers? */ int label_remove(struct device *dev) { - char buf[LABEL_SIZE]; - char readbuf[LABEL_SCAN_SIZE]; + char buf[LABEL_SIZE] __attribute((aligned(8))); + char readbuf[LABEL_SCAN_SIZE] __attribute((aligned(8))); int r = 1; uint64_t sector; int wipe; @@ -258,7 +258,7 @@ int label_remove(struct device *dev) /* FIXME Avoid repeated re-reading if cache lock held */ int label_read(struct device *dev, struct label **result) { - char buf[LABEL_SIZE]; + char buf[LABEL_SIZE] __attribute((aligned(8))); struct labeller *l; uint64_t sector; struct lvmcache_info *info; @@ -290,7 +290,7 @@ int label_read(struct device *dev, struct label **result) /* Caller may need to use label_get_handler to create label struct! */ int label_write(struct device *dev, struct label *label) { - char buf[LABEL_SIZE]; + char buf[LABEL_SIZE] __attribute((aligned(8))); struct label_header *lh = (struct label_header *) buf; int r = 1; @@ -341,7 +341,7 @@ int label_write(struct device *dev, struct label *label) int label_verify(struct device *dev) { struct labeller *l; - char buf[LABEL_SIZE]; + char buf[LABEL_SIZE] __attribute((aligned(8))); uint64_t sector; struct lvmcache_info *info; int r = 0; |