From owner-cvs-all@FreeBSD.ORG Fri May 2 12:58:09 2003 Return-Path: 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 4854837B401; Fri, 2 May 2003 12:58:09 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D944843FCB; Fri, 2 May 2003 12:58:08 -0700 (PDT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h42Jw80U040035; Fri, 2 May 2003 12:58:08 -0700 (PDT) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h42Jw87Q040034; Fri, 2 May 2003 12:58:08 -0700 (PDT) Message-Id: <200305021958.h42Jw87Q040034@repoman.freebsd.org> From: Poul-Henning Kamp Date: Fri, 2 May 2003 12:58:08 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/bsdlabel bsdlabel.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2003 19:58:09 -0000 phk 2003/05/02 12:58:08 PDT FreeBSD src repository Modified files: sbin/bsdlabel bsdlabel.c Log: Add three global variables which contain the location, size and a flag for the alpha checksum, and set them depending on the specified architecture Don't look for disklabels every 16 bytes, look the only place they should be for the current architecture. Always read the label from the raw disk and decode it into struct disklabel rather than trust a cast from random addresses. When writing to the raw disk, encode the label properly. Revision Changes Path 1.83 +20 -37 src/sbin/bsdlabel/bsdlabel.c