From owner-cvs-all Mon Apr 8 1:48:42 2002 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id EDC5437B4EE; Mon, 8 Apr 2002 01:48:11 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id SAA26175; Mon, 8 Apr 2002 18:47:28 +1000 Date: Mon, 8 Apr 2002 18:47:30 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Poul-Henning Kamp Cc: cvs-committers@FreeBSD.org, Subject: Re: cvs commit: src/sbin/newfs mkfs.c newfs.c newfs.h In-Reply-To: <74463.1018253035@critter.freebsd.dk> Message-ID: <20020408183609.D6311-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Mon, 8 Apr 2002, Poul-Henning Kamp wrote: > In message <20020408175001.J6180-100000@gamplex.bde.org>, Bruce Evans writes: > >I think this doesn't really belong in the label. It should be possible > >to put a filesystem on disk-like device without putting something > >foreign to the filesystem (a label) either inside or outside the > >filesystem, or by subdividing the devices. This is implemented for > >msdosfs (newfs_msdos -r reserved). > > That is exactly what the new API does: You ask your disk like > device if it has any magic areas, and it tells you. newfs'able devices shouldn't have to know this any more than memory or files (since they might be a file)... > Obviously, the prudent admin will try to prevent such overlaps > by not putting filesystems on the first track/cylinder or whatever > it takes to stay clear, but the code should DTRT even if he doesn't > or for technical reasons can't avoid it (small physical media). ... And the ioctls on the really-disk-like devices should be used for this if and only if the device supports them. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message