From patchwork Tue May 21 12:22:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dinar Valeev X-Patchwork-Id: 245300 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 3C4552C00DE for ; Tue, 21 May 2013 22:23:42 +1000 (EST) Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id C11552C00A7 for ; Tue, 21 May 2013 22:23:39 +1000 (EST) Received: by mail-we0-f171.google.com with SMTP id t59so308489wes.2 for ; Tue, 21 May 2013 05:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=MeDUL6Tmat2spUPyjUHAjWNJxobK/ZZ3gIDIQ5Yh74w=; b=unupVyzoB2M7NzddsDbMDI+GMK+dv+awEkzXMCu3W2n9ite9tWYiqOSfUgzDINgIDe X1/Hln2ZzLGCacFRjhE6UtJ+CobV5Ap3NSEyOiA7Inuo2WuLOwlIDs7MM9oqVrqunZQs v/0r9jY+70k0DspEc5zbzA8J5C2fmfzNtBTa/j47giLv4CiMp+uHjy7ilaX45VZZyjfF TjaLpyPiOeBCI5ROM6QSoKVprqzogXV26F5fb/iza4/kHXcxvd8qJ999swzh3oKiXsU9 nAO0uEKpqyYYAtfVMizVAyhXC0VEDblEFxdRUeRh7GtlgerBz5CrbH1MOHqSHEj6O0PQ /vjg== X-Received: by 10.180.36.205 with SMTP id s13mr23181794wij.31.1369139015336; Tue, 21 May 2013 05:23:35 -0700 (PDT) Received: from petersburg.suse.cz.cz ([94.230.156.157]) by mx.google.com with ESMTPSA id w8sm30421062wiz.0.2013.05.21.05.23.33 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 May 2013 05:23:34 -0700 (PDT) From: Dinar valeev To: yaboot-devel@lists.ozlabs.org Subject: [PATCH 1/2] Increase MAX_BLOCK_SIZE to 4096 Date: Tue, 21 May 2013 14:22:54 +0200 Message-Id: <1369138975-17619-1-git-send-email-k0da@opensuse.org> X-Mailer: git-send-email 1.8.1.4 Cc: tonyb@au1.ibm.com, Dinar Valeev X-BeenThere: yaboot-devel@lists.ozlabs.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Technical and development discussion regarding yaboot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: yaboot-devel-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Yaboot-devel" From: Dinar Valeev We need to increase MAX_BLOCK_SIZE to 4096 to be able to work with 4k aligned disks. Signed-off-by: Dinar Valeev --- 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