From patchwork Tue Mar 22 12:58:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Chang X-Patchwork-Id: 724 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:45:12 -0000 Delivered-To: patches@linaro.org Received: by 10.204.113.5 with SMTP id y5cs104920bkp; Tue, 22 Mar 2011 05:59:05 -0700 (PDT) Received: by 10.14.10.134 with SMTP id 6mr1890328eev.130.1300798745457; Tue, 22 Mar 2011 05:59:05 -0700 (PDT) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx.google.com with ESMTPS id q47si8780488eeh.81.2011.03.22.05.59.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2011 05:59:05 -0700 (PDT) Received-SPF: pass (google.com: domain of shunyu.chang@gmail.com designates 74.125.82.42 as permitted sender) client-ip=74.125.82.42; Authentication-Results: mx.google.com; spf=pass (google.com: domain of shunyu.chang@gmail.com designates 74.125.82.42 as permitted sender) smtp.mail=shunyu.chang@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by wwk4 with SMTP id 4so4682264wwk.1 for ; Tue, 22 Mar 2011 05:59:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=nBieBHW3NACRSJACLhokajez3MSokS2o9wsrIWVmE98=; b=wX7xPDUk0Ps5Uu0Ef8seDt2IYg81e7Xih5Tqe0VeMLkkfhdpPJMIp/YZsyhHg5Gean tvuQqDfiN17s9Y1sipreRw37bq7OckqWZJS9zavMVaNXov0SnZL/fLl6LCP48GdXdWah 5N27cOjjHt3L2baR2KnexuuCypLU3ri5FNewM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; b=Xkf/ftxLhLfpFNP2l9FnP8aqs59kpSuu6T0h716Y6M2XehRMSVHSl5S4EMaMBGdLsj i3WyqDiaoW9++YqpMqf5TRME1+2flbMbu7bGM0ts/AQBiSh1OWAqlv4N6zT7kfxF/BX2 jVI+MAbRvAOA29h+ns9xu2mqcVdJtXcnyykQQ= Received: by 10.216.58.200 with SMTP id q50mr4834880wec.83.1300798744704; Tue, 22 Mar 2011 05:59:04 -0700 (PDT) MIME-Version: 1.0 Sender: shunyu.chang@gmail.com Received: by 10.216.153.149 with HTTP; Tue, 22 Mar 2011 05:58:44 -0700 (PDT) From: Jeremy Chang Date: Tue, 22 Mar 2011 20:58:44 +0800 X-Google-Sender-Auth: wrEHuDsd8bIjJ1N_Usut5ygYCrM Message-ID: Subject: [PATCH v2 android/system/vold] Promote the max partition support to 8 To: linaro-dev@lists.linaro.org Cc: patches , Patrik Ryd , Alexander Sack This is needed for supporting multiple partition layout. Delete MAX_PARTS define since it's not used and also to make it look consistent. Change-Id: Ic4e1b5f7219cb51f02d9e0d2c14046da9f7b51f1 Signed-off-by: Jeremy Chang --- DirectVolume.h | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/DirectVolume.h b/DirectVolume.h index 4bf14ff..4cd5725 100644 --- a/DirectVolume.h +++ b/DirectVolume.h @@ -21,13 +21,11 @@ #include "Volume.h" -#define MAX_PARTS 4 - typedef android::List PathCollection; class DirectVolume : public Volume { public: - static const int MAX_PARTITIONS = 4; + static const int MAX_PARTITIONS = 8; protected: PathCollection *mPaths; int mDiskMajor;