From owner-cvs-all@FreeBSD.ORG Sun Apr 13 14:57: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 27D1E37B401; Sun, 13 Apr 2003 14:57:09 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE2ED43F93; Sun, 13 Apr 2003 14:57: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 h3DLv80U022539; Sun, 13 Apr 2003 14:57: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 h3DLv8Wf022538; Sun, 13 Apr 2003 14:57:08 -0700 (PDT) Message-Id: <200304132157.h3DLv8Wf022538@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sun, 13 Apr 2003 14:57: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/fdisk fdisk.c runtest.sh 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: Sun, 13 Apr 2003 21:57:09 -0000 phk 2003/04/13 14:57:08 PDT FreeBSD src repository Modified files: sbin/fdisk fdisk.c runtest.sh Log: Use symbolic constants from instead of local constants. Always set the magic sequence when we write, rather than trusting the previously read boot code to do so. Use explicit encoding/decoding of little endian disk image. Remove a comment which was OBE. Change the test vector for "fdisk -I" to reflect that there is a magic sequence in the result now. Add test case for "fdisk" which reads the image back. At least for the two test-cases this program now gives the same result on sparc64 as on i386. The lack of an installed /boot/mbr on sparc64 raises an (un)interesting question. Revision Changes Path 1.70 +15 -13 src/sbin/fdisk/fdisk.c 1.2 +8 -2 src/sbin/fdisk/runtest.sh