From owner-cvs-all Tue Oct 29 21:44: 0 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 E1C1037B401; Tue, 29 Oct 2002 21:43:58 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2603B43E3B; Tue, 29 Oct 2002 21:43:58 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id g9U5hfrF005862; Wed, 30 Oct 2002 06:43:48 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Bruce Evans Cc: Marcel Moolenaar , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libdisk Makefile chunk.c disk.c libdisk.h rules.c In-Reply-To: Your message of "Wed, 30 Oct 2002 13:55:39 +1100." <20021030133021.D3588-100000@gamplex.bde.org> Date: Wed, 30 Oct 2002 06:43:41 +0100 Message-ID: <5861.1035956621@critter.freebsd.dk> From: Poul-Henning Kamp 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 In message <20021030133021.D3588-100000@gamplex.bde.org>, Bruce Evans writes: >On Tue, 29 Oct 2002, Poul-Henning Kamp wrote: > >> >GPT based systems like ia64 probably need some fundamental changes. >> >Tools like fsck(8) require a disklabel to figure out the partition >> >type. >> >> No actually fsck tries to guess the filesystem type and only uses >> the disklabel if /etc/fstab fails to answer the question. >> >> Sparc64 has no disklabel either and fsck should just be muffled to >> not whine if the disklabel check fails: BSD disklabels are optional >> now. > >Labels are also used by fsck_ffs. > >First, they are used to get the sector size so that it can be used to >misconvert block numbers in the search for the superblock. The sectorsize should be discovered with DIOCGSECTORSIZE if there is no BSD label. >Second, they are used to determine the location of alternate superblocks >if reading the main superblock fails and fsck_ffs is not invoked with >-p or -b. Not finding a label is fatal in this case. This case was >broken from 1995 to 1998 by axing newfs's support for it. This is just too bad. If there is no BSD label there is no BSD label. Other label formats may be able to hold the same information, or they may not. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message