From owner-cvs-all Tue Oct 29 14:32:47 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2873637B401; Tue, 29 Oct 2002 14:32:45 -0800 (PST) Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 941C443E8A; Tue, 29 Oct 2002 14:32:43 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from kayak.xcllnt.net (localhost [127.0.0.1]) by kayak.xcllnt.net (8.12.6/8.12.6) with ESMTP id g9TMWV0N076664; Tue, 29 Oct 2002 14:32:31 -0800 (PST) (envelope-from marcel@kayak.xcllnt.net) Received: (from marcel@localhost) by kayak.xcllnt.net (8.12.6/8.12.6/Submit) id g9TMWUEu076663; Tue, 29 Oct 2002 14:32:30 -0800 (PST) Date: Tue, 29 Oct 2002 14:32:30 -0800 From: Marcel Moolenaar To: Poul-Henning Kamp Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libdisk Makefile chunk.c disk.c libdisk.h rules.c Message-ID: <20021029143230.A76592@kayak.xcllnt.net> References: <20021029124341.A76240@kayak.xcllnt.net> <98377.1035926855@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <98377.1035926855@critter.freebsd.dk> User-Agent: Mutt/1.3.22.1i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Oct 29, 2002 at 10:27:35PM +0100, Poul-Henning Kamp wrote: > Sparc64 has no disklabel either and fsck should just be muffled to > not whine if the disklabel check fails: BSD disklabels are optional > now. Agreed. Getting GEOM to help out with these queries might also be something to consider. This can be as simple as parsing the sysctl information that's already there. For all I know, libdisk might do that right now... > I wont have much time to help you out before 5.0, but feel free to > throw questions at me if you want to try to tackle this yourself. No worries. As you explained above, the fsck(8) issue relates to when there's no /etc/fstab. I completely failed to make that clear. The biggest issue with GEOM WRT to partitioning in general is the inability to partition a disk when slices are mounted. It's known, and I'm sure we'll see a fix shortly. That is, I assume that's what you're working on :-) > You should be able to use the path though libdisk which I have just > cleared for sparc64 and alpha. The interface to the kernel is about > as generic as I can do it, and with a little luck you may need no > more than 10 lines of code in libdisk:disk.c to fill in the right > details. You need to write a write_ia64_disk.c which writes GPT, > and that is probably the worst bit. Sounds like something I might even want to try soon. > The situation is probably worse over in sysinstall, because you need > a mix of both screens if we want to co-exist with other OS's: > Only the "MBR" screen can understand "not ours" chunks of disk, and > only the "LABEL" screen can assign mountpoints and all that. Something like that yes. I'm not sure it's beneficial to seperate out the "them" and "us" to great extend, because I think we may want to have sysinstall create EFI partitions while we're at it. This is 95% on the way to have sysinstall create partitions/slices of just about anything we care about. > I will suggest that you fake it in the following way: > > Go into the MBR screen, and let people operate on the GPT partitions > like they would on MBR slices, have people create all FreeBSD > parititions here. Next, send them to the Label screen but disable > all size/create/delete options, and use it only for assigning > mountpoints, ufs options etc. This is far from optimal, and will > be different from what people are used to, but it will be possible > to implement it on a crash-schedule before 5.0. Since nobody is used to installing BSD with GPT, we don't have to worry about that too much. If it works and gets the job done, fine. If not, then we can aways migrate the MBR into a GPT post-mortem with gpt(8) and not do anything about sysinstall. On the other hand, FreeBSD/ia64 works perfectly fine with MBR and disklabel based partitioning so we can also delay this when the next sysins... Damn; and I tried so hard to avoid getting in that corner :-) -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message