diff mbox

[1/2] Increase MAX_BLOCK_SIZE to 4096

Message ID 1369138975-17619-1-git-send-email-k0da@opensuse.org
State New
Headers show

Commit Message

Dinar Valeev May 21, 2013, 12:22 p.m. UTC
From: Dinar Valeev <dvaleev@suse.com>

We need to increase MAX_BLOCK_SIZE to 4096 to be able to work with 4k
aligned disks.

Signed-off-by: Dinar Valeev <dvaleev@suse.com>
---
 second/partition.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tony Breeds May 22, 2013, 12:59 a.m. UTC | #1
On Tue, May 21, 2013 at 02:22:54PM +0200, Dinar valeev wrote:
> From: Dinar Valeev <dvaleev@suse.com>
> 
> We need to increase MAX_BLOCK_SIZE to 4096 to be able to work with 4k
> aligned disks.

Applied thanks.

I thought I had this in my devel tree but clearly I don't.

Yours Tony
diff mbox

Patch

diff --git a/second/partition.c b/second/partition.c
index 64b4725..d805ad0 100644
--- a/second/partition.c
+++ b/second/partition.c
@@ -63,7 +63,7 @@  static const char *valid_mac_partition_types[] = {
 #endif
 
 
-#define MAX_BLOCK_SIZE	2048
+#define MAX_BLOCK_SIZE 4096
 static unsigned char block_buffer[MAX_BLOCK_SIZE];
 
 static void