diff options
author | NeilBrown <neilb@suse.de> | 2011-12-23 04:09:29 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-12-23 04:09:29 +0100 |
commit | a7322ae12f674e7eb1c7af183d130ae3120de2bd (patch) | |
tree | 51a0d6dd8989435653ffc2d4fe003d9d809a4fe6 /super-gpt.c | |
parent | super1 - fix for bigendian machines. (diff) | |
download | mdadm-a7322ae12f674e7eb1c7af183d130ae3120de2bd.tar.xz mdadm-a7322ae12f674e7eb1c7af183d130ae3120de2bd.zip |
Subject: bitmap: used 4K aligned buffers when reading the bitmap.
This is needed on 4K block devices such as DASD as we do O_DIRECT
reads.
Do the same alignment for gpt just to be safe.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-gpt.c')
-rw-r--r-- | super-gpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-gpt.c b/super-gpt.c index b8c9aae9..75269bf1 100644 --- a/super-gpt.c +++ b/super-gpt.c @@ -76,7 +76,7 @@ static int load_gpt(struct supertype *st, int fd, char *devname) free_gpt(st); - if (posix_memalign((void**)&super, 512, 32*512) != 0) { + if (posix_memalign((void**)&super, 4096, 32*512) != 0) { fprintf(stderr, Name ": %s could not allocate superblock\n", __func__); return 1; |