[PATCH 1/2] Increase MAX_BLOCK_SIZE to 4096

Dinar valeev k0da at opensuse.org
Tue May 21 22:22:54 EST 2013


From: Dinar Valeev <dvaleev at 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 at suse.com>
---
 second/partition.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
1.8.1.4



More information about the Yaboot-devel mailing list