From owner-freebsd-ia64@FreeBSD.ORG Thu Jun 24 13:57:55 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 198C416A4CE for ; Thu, 24 Jun 2004 13:57:55 +0000 (GMT) Received: from ausc60ps301.us.dell.com (ausc60ps301.us.dell.com [143.166.148.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id C66AE43D31 for ; Thu, 24 Jun 2004 13:57:54 +0000 (GMT) (envelope-from Muthu_T@Dell.com) Received: from ausxicps307.aus.amer.dell.com (HELO AUSX2KCPS315.aus.amer.dell.com) (143.166.3.50) by ausc60ps301.us.dell.com with ESMTP; 24 Jun 2004 08:57:05 -0500 X-Ironport-AV: i="3.81R,131,1083560400"; d="scan'208"; a="38791928:sNHT21432196" content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6527.0 Date: Thu, 24 Jun 2004 19:18:42 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Partition Creation Error Thread-Index: AcRQDrGr0t799N4sS4CEiZeDrpU5agJ4P2wg From: To: X-OriginalArrivalTime: 24 Jun 2004 13:48:42.0200 (UTC) FILETIME=[F5F9DD80:01C459F1] Subject: Partition Creation Error X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2004 13:57:55 -0000 Hi, Today I tried to debug the following issue:=20 > So far I've indentified the following issues: >- On a brand new blank disk, sysinstall has problems creating 3 partitions manually - EFI, swap, UFS. (Error >message: Write to da0 failed) I had found that it is happening in write_ia64.disk.c At line: 299 line 280: switch (c->type) { 281: case freebsd: ... ... line 299: default: 300: return (EINVAL); <-- Here it comes! It means that the 'type' is not stored in 'struct chunk' variable when we create a partition using 'Create'. Further debugging results: When we press 'C' in diskLabel editor, it executes the 'case 'C' portion. Then it calls Create_Chunk_DWIM(...) -> Insert_Chunk() -> it goes to the following : /* If no leading unused space just occupy the old chunk */ if (c2->offset =3D=3D ct->offset) { ... ... return 0; <-- From here it returns! } Looks like we are missing something here for ia64. So we need to look at Insert_Chunk() in chunks.c. Insert_Chunk() is not understanable by me! If you have any idea, please let me know! Thanks. --T. Muthu Mohan