File s390-sectorsize4096.patch of Package lvm2.631
From d2b30b0eac84f75b4b4d3293211c6dc896fb4c97 Mon Sep 17 00:00:00 2001
From: Heinz Mauelshagen <heinzm@redhat.com>
Date: Wed, 30 Oct 2013 14:12:41 +0100
Subject: Fix bz#960284: thin_dump and other persistent-data tools may perform
IO to misaligned buffers (on 4K hard sectored evices)
Git-repo: https://github.com/jthornber/thin-provisioning-tools.git
Git-commit: d2b30b0eac84f75b4b4d3293211c6dc896fb4c97
References: bnc#862817
---
persistent-data/buffer.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/persistent-data/buffer.h b/persistent-data/buffer.h
index b1a7989..527a239 100644
--- a/persistent-data/buffer.h
+++ b/persistent-data/buffer.h
@@ -41,7 +41,7 @@ namespace persistent_data {
// guarantees.
//
// Alignment must be a power of two.
- template <uint32_t Size = DEFAULT_BUFFER_SIZE, uint32_t Alignment = 512>
+ template <uint32_t Size = DEFAULT_BUFFER_SIZE, uint32_t Alignment = 4096>
class buffer : private boost::noncopyable {
public:
BOOST_STATIC_ASSERT_MSG((Alignment > 1) & !(Alignment & (Alignment - 1)),