Patchwork [1/2] Increase MAX_BLOCK_SIZE to 4096

login
register
mail settings
Submitter Dinar Valeev
Date May 21, 2013, 12:22 p.m.
Message ID <1369138975-17619-1-git-send-email-k0da@opensuse.org>
Download mbox | patch
Permalink /patch/245300/
State New
Headers show

Comments

Dinar Valeev - May 21, 2013, 12:22 p.m.
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(-)
Tony Breeds - May 22, 2013, 12:59 a.m.
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

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