From owner-p4-projects Sun Feb 9 3:10:59 2003 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7494037B405; Sun, 9 Feb 2003 03:10:56 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 117D137B407 for ; Sun, 9 Feb 2003 03:10:56 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED25F43F93 for ; Sun, 9 Feb 2003 03:10:49 -0800 (PST) (envelope-from jmallett@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 h19BAnbv083485 for ; Sun, 9 Feb 2003 03:10:49 -0800 (PST) (envelope-from jmallett@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h19BAnwk083472 for perforce@freebsd.org; Sun, 9 Feb 2003 03:10:49 -0800 (PST) Date: Sun, 9 Feb 2003 03:10:49 -0800 (PST) Message-Id: <200302091110.h19BAnwk083472@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmallett@freebsd.org using -f From: Juli Mallett Subject: PERFORCE change 24884 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://perforce.freebsd.org/chv.cgi?CH=24884 Change 24884 by jmallett@jmallett_dalek on 2003/02/09 03:10:42 Add a skeleton program that will eventually turn into something like a combination of SGI's fx(1M) and our disklabel(8). Now it just prints out bits of the FX label. Also make the number of files in the volume header a define'd constant, so we can make use of it in fxlabel for printing the directory listing. Affected files ... .. //depot/projects/mips/sbin/Makefile#4 edit .. //depot/projects/mips/sbin/fxlabel/Makefile#1 add .. //depot/projects/mips/sbin/fxlabel/fxlabel.c#1 add .. //depot/projects/mips/sys/sys/diskfx.h#2 edit Differences ... ==== //depot/projects/mips/sbin/Makefile#4 (text+ko) ==== @@ -109,4 +109,8 @@ SUBDIR+=disklabel .endif +.if ${MACHINE_ARCH} == "mips" +SUBDIR+=fxlabel +.endif + .include ==== //depot/projects/mips/sys/sys/diskfx.h#2 (text+ko) ==== @@ -29,6 +29,7 @@ #define _SYS_DISKFX_H_ #define FX_LABEL_MAGIC 0xbe5a941 +#define FX_DIRSIZE 15 #define FX_NPARTS 16 static const char *fx_typename[] = { @@ -92,7 +93,7 @@ int16_t vh_swap; char vh_kernel[16]; struct dparms vh_dp; - struct voldir vh_dir[15]; + struct voldir vh_dir[FX_DIRSIZE]; struct volpart vh_part[FX_NPARTS]; int32_t vh_csum; int32_t vh_unused; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message