From owner-freebsd-current@FreeBSD.ORG Tue Apr 27 17:36:57 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D45B16A4CE for ; Tue, 27 Apr 2004 17:36:57 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FD6F43D2D for ; Tue, 27 Apr 2004 17:36:57 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i3S0aPoM052040; Tue, 27 Apr 2004 20:36:26 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i3S0aPrp052037; Tue, 27 Apr 2004 20:36:25 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Tue, 27 Apr 2004 20:36:25 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Harald Schmalzbauer In-Reply-To: <200404270906.54407.current@schmalzbauer.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: More than 8 labels per slice X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 00:36:57 -0000 On Tue, 27 Apr 2004, Harald Schmalzbauer wrote: > is there any chance that FreeBSD can adopt the OpenBSD changes reagrding > UFS labels? I'm using one label per jail and this old 8 label limit > forces me to use different slices which sometimes, when I have to change > label sizes, is a big handicap. Having 16 labels would improove the > jail-handling greatly IMHO. Having 32 labels (like I think NetBSD) was > even greater, but lifting the 8 label limit would suffice I think. I can't speak specifically to the OpenBSD changes, but in FreeBSD 5.x, you can nest disk labels inside other disk labels: paprika# mdconfig -a -t swap -s 16m md0 prika# disklabel -w md0 auto paprika# ls /dev/md0* /dev/md0 /dev/md0a /dev/md0c paprika# disklabel -w md0a auto paprika# ls /dev/md0* /dev/md0 /dev/md0a /dev/md0aa /dev/md0ac /dev/md0c So you can sub-divide slices and partitions into other slices and partitions. At 8 subdivisions per layer, that adds up fairly quickly, although it's a little less convenient to lay out. In 5.x, we also support the GPT format, which supports up to 64k partitions per disk, but I'm not sure that code is enabled on i386 by default, only ia64. If not, we probably should enable it there. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research