Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2003 03:10:49 -0800 (PST)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 24884 for review
Message-ID:  <200302091110.h19BAnwk083472@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.subdir.mk>

==== //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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302091110.h19BAnwk083472>