head	1.26;
access;
symbols
	RELENG_8_4:1.26.0.2
	RELENG_9_1_0_RELEASE:1.25.2.1.4.2
	RELENG_9_1:1.25.2.1.0.4
	RELENG_9_1_BP:1.25.2.1
	RELENG_8_3_0_RELEASE:1.23.2.1.8.1
	RELENG_8_3:1.23.2.1.0.8
	RELENG_8_3_BP:1.23.2.1
	RELENG_9_0_0_RELEASE:1.25.2.1.2.1
	RELENG_9_0:1.25.2.1.0.2
	RELENG_9_0_BP:1.25.2.1
	RELENG_9:1.25.0.2
	RELENG_9_BP:1.25
	RELENG_7_4_0_RELEASE:1.22.36.1
	RELENG_8_2_0_RELEASE:1.23.2.1.6.1
	RELENG_7_4:1.22.0.36
	RELENG_7_4_BP:1.22
	RELENG_8_2:1.23.2.1.0.6
	RELENG_8_2_BP:1.23.2.1
	RELENG_8_1_0_RELEASE:1.23.2.1.4.1
	RELENG_8_1:1.23.2.1.0.4
	RELENG_8_1_BP:1.23.2.1
	RELENG_7_3_0_RELEASE:1.22.34.1
	RELENG_7_3:1.22.0.34
	RELENG_7_3_BP:1.22
	RELENG_8_0_0_RELEASE:1.23.2.1.2.1
	RELENG_8_0:1.23.2.1.0.2
	RELENG_8_0_BP:1.23.2.1
	RELENG_8:1.23.0.2
	RELENG_8_BP:1.23
	RELENG_7_2_0_RELEASE:1.22.32.1
	RELENG_7_2:1.22.0.32
	RELENG_7_2_BP:1.22
	RELENG_7_1_0_RELEASE:1.22.30.1
	RELENG_6_4_0_RELEASE:1.22.28.1
	RELENG_7_1:1.22.0.30
	RELENG_7_1_BP:1.22
	RELENG_6_4:1.22.0.28
	RELENG_6_4_BP:1.22
	RELENG_7_0_0_RELEASE:1.22
	RELENG_6_3_0_RELEASE:1.22
	RELENG_7_0:1.22.0.26
	RELENG_7_0_BP:1.22
	RELENG_6_3:1.22.0.24
	RELENG_6_3_BP:1.22
	RELENG_7:1.22.0.22
	RELENG_7_BP:1.22
	RELENG_6_2_0_RELEASE:1.22
	RELENG_6_2:1.22.0.20
	RELENG_6_2_BP:1.22
	RELENG_5_5_0_RELEASE:1.22
	RELENG_5_5:1.22.0.18
	RELENG_5_5_BP:1.22
	RELENG_6_1_0_RELEASE:1.22
	RELENG_6_1:1.22.0.16
	RELENG_6_1_BP:1.22
	RELENG_6_0_0_RELEASE:1.22
	RELENG_6_0:1.22.0.14
	RELENG_6_0_BP:1.22
	RELENG_6:1.22.0.12
	RELENG_6_BP:1.22
	RELENG_5_4_0_RELEASE:1.22
	RELENG_5_4:1.22.0.10
	RELENG_5_4_BP:1.22
	RELENG_4_11_0_RELEASE:1.6.6.2
	RELENG_4_11:1.6.6.2.0.16
	RELENG_4_11_BP:1.6.6.2
	RELENG_5_3_0_RELEASE:1.22
	RELENG_5_3:1.22.0.8
	RELENG_5_3_BP:1.22
	RELENG_5:1.22.0.6
	RELENG_5_BP:1.22
	RELENG_4_10_0_RELEASE:1.6.6.2
	RELENG_4_10:1.6.6.2.0.14
	RELENG_4_10_BP:1.6.6.2
	RELENG_5_2_1_RELEASE:1.22
	RELENG_5_2_0_RELEASE:1.22
	RELENG_5_2:1.22.0.4
	RELENG_5_2_BP:1.22
	RELENG_4_9_0_RELEASE:1.6.6.2
	RELENG_4_9:1.6.6.2.0.12
	RELENG_4_9_BP:1.6.6.2
	RELENG_5_1_0_RELEASE:1.22
	RELENG_5_1:1.22.0.2
	RELENG_5_1_BP:1.22
	RELENG_4_8_0_RELEASE:1.6.6.2
	RELENG_4_8:1.6.6.2.0.10
	RELENG_4_8_BP:1.6.6.2
	RELENG_5_0_0_RELEASE:1.19
	RELENG_5_0:1.19.0.2
	RELENG_5_0_BP:1.19
	RELENG_4_7_0_RELEASE:1.6.6.2
	RELENG_4_7:1.6.6.2.0.8
	RELENG_4_7_BP:1.6.6.2
	RELENG_4_6_2_RELEASE:1.6.6.2
	RELENG_4_6_1_RELEASE:1.6.6.2
	RELENG_4_6_0_RELEASE:1.6.6.2
	RELENG_4_6:1.6.6.2.0.6
	RELENG_4_6_BP:1.6.6.2
	RELENG_4_5_0_RELEASE:1.6.6.2
	RELENG_4_5:1.6.6.2.0.4
	RELENG_4_5_BP:1.6.6.2
	RELENG_4_4_0_RELEASE:1.6.6.2
	RELENG_4_4:1.6.6.2.0.2
	RELENG_4_4_BP:1.6.6.2
	RELENG_4_3_0_RELEASE:1.6.6.1
	RELENG_4_3:1.6.6.1.0.2
	RELENG_4_3_BP:1.6.6.1
	RELENG_4_2_0_RELEASE:1.6
	RELENG_4_1_1_RELEASE:1.6
	PRE_SMPNG:1.6
	RELENG_4_1_0_RELEASE:1.6
	RELENG_3_5_0_RELEASE:1.6
	RELENG_4_0_0_RELEASE:1.6
	RELENG_4:1.6.0.6
	RELENG_4_BP:1.6
	RELENG_3_4_0_RELEASE:1.6
	RELENG_3_3_0_RELEASE:1.6
	RELENG_3_2_PAO:1.6.0.4
	RELENG_3_2_PAO_BP:1.6
	RELENG_3_2_0_RELEASE:1.6
	RELENG_3_1_0_RELEASE:1.6
	RELENG_3:1.6.0.2
	RELENG_3_BP:1.6
	RELENG_2_2_8_RELEASE:1.3.2.1
	RELENG_3_0_0_RELEASE:1.6
	RELENG_2_2_7_RELEASE:1.3.2.1
	RELENG_2_2_6_RELEASE:1.3.2.1
	RELENG_2_2_5_RELEASE:1.3.2.1
	RELENG_2_2_2_RELEASE:1.3.2.1
	RELENG_2_2_1_RELEASE:1.3
	RELENG_2_2_0_RELEASE:1.3
	RELENG_2_1_7_RELEASE:1.2
	RELENG_2_1_6_1_RELEASE:1.2
	RELENG_2_1_6_RELEASE:1.2
	RELENG_2_2:1.3.0.2
	RELENG_2_2_BP:1.3
	bsd_44_lite_2:1.1.1.1
	RELENG_2_1_5_RELEASE:1.2
	RELENG_2_1_0_RELEASE:1.2
	RELENG_2_1_0:1.2.0.6
	RELENG_2_1_0_BP:1.2
	RELENG_2_0_5_RELEASE:1.2
	RELENG_2_0_5:1.2.0.4
	RELENG_2_0_5_BP:1.2
	RELENG_2_0_5_ALPHA:1.2
	RELEASE_2_0:1.2
	BETA_2_0:1.2
	ALPHA_2_0:1.2.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.26
date	2012.11.17.01.50.24;	author svnexp;	state Exp;
branches
	1.26.2.1;
next	1.25;

1.25
date	2010.03.03.19.25.28;	author sobomax;	state Exp;
branches
	1.25.2.1;
next	1.24;

1.24
date	2010.01.17.21.56.27;	author ed;	state Exp;
branches;
next	1.23;

1.23
date	2008.12.03.18.36.59;	author luigi;	state Exp;
branches
	1.23.2.1;
next	1.22;

1.22
date	2003.02.11.03.06.45;	author jmallett;	state Exp;
branches
	1.22.12.1
	1.22.22.1
	1.22.28.1
	1.22.30.1
	1.22.32.1
	1.22.34.1
	1.22.36.1;
next	1.21;

1.21
date	2003.01.29.22.52.27;	author jmallett;	state Exp;
branches;
next	1.20;

1.20
date	2003.01.27.07.24.32;	author jmallett;	state Exp;
branches;
next	1.19;

1.19
date	2002.03.19.21.05.29;	author phk;	state Exp;
branches;
next	1.18;

1.18
date	2002.03.19.17.03.14;	author iedowse;	state Exp;
branches;
next	1.17;

1.17
date	2002.03.18.02.23.43;	author bde;	state Exp;
branches;
next	1.16;

1.16
date	2002.03.18.02.13.38;	author bde;	state Exp;
branches;
next	1.15;

1.15
date	2002.03.17.09.01.41;	author phk;	state Exp;
branches;
next	1.14;

1.14
date	2001.12.04.02.19.54;	author obrien;	state Exp;
branches;
next	1.13;

1.13
date	2001.05.30.09.31.24;	author bde;	state Exp;
branches;
next	1.12;

1.12
date	2001.05.29.23.57.23;	author dd;	state Exp;
branches;
next	1.11;

1.11
date	2001.05.29.19.40.39;	author phk;	state Exp;
branches;
next	1.10;

1.10
date	2001.05.29.18.52.39;	author phk;	state Exp;
branches;
next	1.9;

1.9
date	2001.03.26.14.33.17;	author ru;	state Exp;
branches;
next	1.8;

1.8
date	2001.03.20.18.13.23;	author ru;	state Exp;
branches;
next	1.7;

1.7
date	2000.09.16.13.42.58;	author phk;	state Exp;
branches;
next	1.6;

1.6
date	98.01.20.10.40.09;	author bde;	state Exp;
branches
	1.6.6.1;
next	1.5;

1.5
date	97.03.23.20.08.01;	author guido;	state Exp;
branches;
next	1.4;

1.4
date	97.03.11.12.48.11;	author peter;	state Exp;
branches;
next	1.3;

1.3
date	96.02.02.06.31.57;	author wosch;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	94.08.05.02.42.19;	author wollman;	state Exp;
branches
	1.2.6.1;
next	1.1;

1.1
date	94.05.26.06.34.41;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.26.2.1
date	2012.11.17.01.50.24;	author svnexp;	state dead;
branches;
next	1.26.2.2;

1.26.2.2
date	2013.03.28.13.03.35;	author svnexp;	state Exp;
branches;
next	;

1.25.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.25.2.1.2.1
	1.25.2.1.4.1;
next	1.25.2.2;

1.25.2.2
date	2012.11.17.11.36.32;	author svnexp;	state Exp;
branches;
next	;

1.25.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.25.2.1.2.2;

1.25.2.1.2.2
date	2012.11.17.08.36.32;	author svnexp;	state Exp;
branches;
next	;

1.25.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.25.2.1.4.2;

1.25.2.1.4.2
date	2012.11.17.08.47.22;	author svnexp;	state Exp;
branches;
next	;

1.23.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.23.2.1.2.1
	1.23.2.1.4.1
	1.23.2.1.6.1
	1.23.2.1.8.1;
next	1.23.2.2;

1.23.2.2
date	2012.11.17.10.36.16;	author svnexp;	state Exp;
branches;
next	;

1.23.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.23.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.23.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.23.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.23.2.1.8.2;

1.23.2.1.8.2
date	2012.11.17.08.24.57;	author svnexp;	state Exp;
branches;
next	;

1.22.12.1
date	2012.11.17.07.41.21;	author svnexp;	state Exp;
branches;
next	;

1.22.22.1
date	2012.11.17.08.03.40;	author svnexp;	state Exp;
branches;
next	;

1.22.28.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.22.30.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.22.32.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.22.34.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.22.36.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.22.36.2;

1.22.36.2
date	2012.11.17.08.16.55;	author svnexp;	state Exp;
branches;
next	;

1.6.6.1
date	2001.03.05.03.15.09;	author obrien;	state Exp;
branches;
next	1.6.6.2;

1.6.6.2
date	2001.04.25.10.58.41;	author ru;	state Exp;
branches;
next	1.6.6.3;

1.6.6.3
date	2012.11.17.07.24.34;	author svnexp;	state Exp;
branches;
next	;

1.3.2.1
date	97.03.26.20.05.36;	author guido;	state Exp;
branches;
next	;

1.2.6.1
date	97.03.26.20.29.06;	author guido;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.26.06.34.42;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.26
log
@Switching exporter and resync
@
text
@#	@@(#)Makefile	8.2 (Berkeley) 3/27/94
# $FreeBSD: head/sbin/newfs/Makefile 204654 2010-03-03 19:25:28Z sobomax $

.PATH: ${.CURDIR}/../../sys/geom

PROG=	newfs
DPADD=	${LIBUFS} ${LIBUTIL}
LDADD=	-lufs -lutil
SRCS=	newfs.c mkfs.c geom_bsd_enc.c

WARNS?=	3
MAN=	newfs.8

.include <bsd.prog.mk>

test:	${PROG}
	sh ${.CURDIR}/runtest01.sh 
	sh ${.CURDIR}/runtest00.sh | tee _.test
	diff --ignore-matching-lines=FreeBSD _.test ${.CURDIR}/ref.test
	echo All Tests Passed
@


1.26.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:03:35 +0000
@
text
@d1 20
@


1.26.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 20
#	@@(#)Makefile	8.2 (Berkeley) 3/27/94
# $FreeBSD: releng/8.4/sbin/newfs/Makefile 185588 2008-12-03 18:36:59Z luigi $

.PATH: ${.CURDIR}/../../sys/geom

PROG=	newfs
DPADD=	${LIBUFS}
LDADD=	-lufs
SRCS=	newfs.c mkfs.c geom_bsd_enc.c

WARNS?=	2
MAN=	newfs.8

.include <bsd.prog.mk>

test:	${PROG}
	sh ${.CURDIR}/runtest01.sh 
	sh ${.CURDIR}/runtest00.sh | tee _.test
	diff --ignore-matching-lines=FreeBSD _.test ${.CURDIR}/ref.test
	echo All Tests Passed
@


1.25
log
@SVN rev 204654 on 2010-03-03 19:25:28Z by sobomax

Use expand_number(3) from libutil instead of home-grown function to parse
human-friendly power-of-two numbers (i.e. 2k, 5M etc).

Suggested by:	many
MFC after:	1 week
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.25.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.25.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/9/sbin/newfs/Makefile 204654 2010-03-03 19:25:28Z sobomax $
@


1.25.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.25.2.1.4.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.1/sbin/newfs/Makefile 204654 2010-03-03 19:25:28Z sobomax $
@


1.25.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.25.2.1.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.0/sbin/newfs/Makefile 204654 2010-03-03 19:25:28Z sobomax $
@


1.24
log
@SVN rev 202532 on 2010-01-17 21:56:27Z by ed

Raise WARNS for various tools where possible.

Submitted by:	Marius Nünnerich <marius@@nuenneri.ch>
@
text
@d7 2
a8 2
DPADD=	${LIBUFS}
LDADD=	-lufs
@


1.23
log
@SVN rev 185588 on 2008-12-03 18:36:59Z by luigi

Enable operation of newfs on plain files, which is useful when you
want to prepare disk images for emulators (though 'makefs' in port
can do something similar).

This relies on:
+ minor changes to pass the consistency checks even when working on a file;

+ an additional option, '-p partition' , to specify the disk partition to
  initialize;

+ some changes on the I/O routines to deal with partition offsets.

The latter was a bit tricky to implement, see the details in newfs.h:
in newfs, I/O is done through libufs which assumes that the file
descriptor refers to the whole partition. Introducing support for
the offset in libufs would require a non-backward compatible change
in the library, to be dealt with a version bump or with symbol
versioning.

I felt both approaches to be overkill for this specific application,
especially because there might be other changes to libufs that might
become necessary in the near future.

So I used the following trick:
- read access is always done by calling bread() directly, so we just add
  the offset in the (few) places that call bread();
- write access is done through bwrite() and sbwrite(), which in turn
  calls bwrite(). To avoid rewriting sbwrite(), we supply our own version
  of bwrite() here, which takes precedence over the version in libufs.

MFC after:	4 weeks
@
text
@d11 1
a11 1
WARNS?=	2
@


1.23.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.23.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/8/sbin/newfs/Makefile 185588 2008-12-03 18:36:59Z luigi $
@


1.23.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.23.2.1.8.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/8.3/sbin/newfs/Makefile 185588 2008-12-03 18:36:59Z luigi $
@


1.23.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.23.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.23.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.22
log
@Convert newfs to libufs (really).  Solves one real issue with previous
version of such.  Differences in filesystems generated were found to be
from 1) sbwrite with the "all" parameter 2) removal of writecache.  The
sbwrite call was made to perform as the original version, and otherwise
this was checked against a version of newfs with the write cache removed.
@
text
@d4 2
d9 2
a10 1
SRCS=	newfs.c mkfs.c
@


1.22.22.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/sbin/newfs/Makefile 110671 2003-02-11 03:06:45Z jmallett $
@


1.22.12.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/sbin/newfs/Makefile 110671 2003-02-11 03:06:45Z jmallett $
@


1.22.36.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.22.36.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/sbin/newfs/Makefile 110671 2003-02-11 03:06:45Z jmallett $
@


1.22.34.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.22.32.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.22.30.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.22.28.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.21
log
@Back out conversion to libufs, for now.  It seems to cause problems.

Reported by: phk
@
text
@d5 2
@


1.20
log
@Convert newfs to use libufs.  I've tested this on md filesystems, as has
keramida, and all seems well.
@
text
@a4 2
DPADD=	${LIBUFS}
LDADD=	-lufs
@


1.19
log
@Add the undocumented -R option to disable randomness for regression-testing.

Add a couple of simple regression tests accessible with "make test", they
depend on the md(4) driver.

FYI I have also tried running the test against a week old newfs and it
passed.
@
text
@d5 2
@


1.18
log
@The FSIRAND code is always compiled in, and it is unlikely that
anyone needs a newfs without it. Remove the #ifdef's from around
the code and the -DFSIRAND from the Makefile. Also remove redundant
declarations of random() and srandomdev().
@
text
@d10 6
@


1.17
log
@Removed vestiges of mount_mfs.  Sorted the Makefile a bit.
@
text
@a5 1
CFLAGS+=-DFSIRAND
@


1.16
log
@Fixed 2 layers of breakage of WARNS.  Setting WARNS unconditionally to
0 was bad and setting it unconditionally to 2 was worse.
@
text
@d5 3
a7 1
SRCS=	getmntopts.c newfs.c mkfs.c
a8 6

MOUNT=	${.CURDIR}/../mount
CFLAGS+=-DFSIRAND -I${MOUNT}
WARNS?=	2

.PATH:	${MOUNT}
@


1.15
log
@Remove __P() and register.
Set WARNS=2

This is the beginning of a pre-UFS2 cleanup of newfs.

Sponsored by:	DARPA, NAI Labs
@
text
@d10 1
a10 1
WARNS=	2
@


1.14
log
@Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by:	mike
@
text
@d10 1
a10 1
WARNS=	0
@


1.13
log
@Don't link ${BINDIR}/newfs to nowhere.

Don't clutter this Makefile (not to mention the error output) with
$(BDECFLAGS}.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/newfs/Makefile,v 1.12 2001/05/29 23:57:23 dd Exp $
d10 2
@


1.12
log
@Remove -DMFS from CFLAGS.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/newfs/Makefile,v 1.11 2001/05/29 19:40:39 phk Exp $
d9 1
a9 1
CFLAGS+=-DFSIRAND -I${MOUNT} ${BDECFLAGS}
a10 2

LINKS=	${BINDIR}/newfs
@


1.11
log
@A more complete removal of MFS related code.

XXX: This program badly needs a style(9) + BDECFLAGS treatment.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/newfs/Makefile,v 1.10 2001/05/29 18:52:39 phk Exp $
d9 1
a9 1
CFLAGS+=-DMFS -DFSIRAND -I${MOUNT} ${BDECFLAGS}
@


1.10
log
@Initial cleanout of MFS from newfs.  More complete wash needed.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/newfs/Makefile,v 1.9 2001/03/26 14:33:17 ru Exp $
d9 1
a9 1
CFLAGS+=-DMFS -DFSIRAND -I${MOUNT}
@


1.9
log
@- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/newfs/Makefile,v 1.8 2001/03/20 18:13:23 ru Exp $
d12 1
a12 2
LINKS=	${BINDIR}/newfs ${BINDIR}/mount_mfs
MLINKS=	newfs.8 mount_mfs.8 newfs.8 mfs.8 newfs.8 tmpfs.8
@


1.8
log
@Set the default manual section for sbin/ to 8.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/newfs/Makefile,v 1.7 2000/09/16 13:42:58 phk Exp $
d6 1
@


1.7
log
@Turn dkcksum() into an __inline function.

Change its type to u_int_16_t.
@
text
@d2 1
a2 1
# $FreeBSD$
a5 1
MAN8=	newfs.8
@


1.6
log
@Removed definition of _NEW_VFSCONF.  The new vfsconf interface is now
the default.
@
text
@d2 1
d5 1
a5 1
SRCS=	dkcksum.c getmntopts.c newfs.c mkfs.c
d10 1
a10 1
.PATH:	${MOUNT} ${.CURDIR}/../disklabel
@


1.6.6.1
log
@MFC: (turn dkcksum() into an __inline function)
@
text
@a1 1
# $FreeBSD$
d4 1
a4 1
SRCS=	getmntopts.c newfs.c mkfs.c
d9 1
a9 1
.PATH:	${MOUNT}
@


1.6.6.2
log
@MFC: MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/newfs/Makefile,v 1.6.6.1 2001/03/05 03:15:09 obrien Exp $
d6 1
a6 1
MAN=	newfs.8
@


1.6.6.3
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/sbin/newfs/Makefile 75953 2001-04-25 10:58:55Z ru $
@


1.5
log
@Add generation number randomization. Newly created filesystems wil now
automatically have random generation numbers. The kenel way of handling those
also changed. Further it is advised to run fsirand on all your nfs exported
filesystems. the code is mostly copied from OpenBSD, with the randomization
chanegd to use /dev/urandom
Reviewed by:	Garrett
Obtained from: OpenBSD
@
text
@a7 1
CFLAGS+= -D_NEW_VFSCONF
@


1.4
log
@Merge from Lite2:
 - use new getvfsbyname() and mount(2) interface (mount_mfs)
 - use new fs include files
 - updated inode / cg layout calculations (?)
@
text
@d9 1
a9 1
CFLAGS+=-DMFS -I${MOUNT}
@


1.3
log
@man page link tmpfs.8 -> mfs.8 for former SunOS users
@
text
@d8 1
@


1.3.2.1
log
@Backport of the fsirand stuff to 2.2. I'm sorry this is too late for 2.2.1
@
text
@d8 1
a8 1
CFLAGS+=-DMFS -DFSIRAND -I${MOUNT}
@


1.2
log
@Convert to our man installation style.  Also fixed long-standing bug
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
@
text
@d12 1
a12 1
MLINKS=	newfs.8 mount_mfs.8 newfs.8 mfs.8
@


1.2.6.1
log
@Get in the fsirand stuff.
@
text
@d8 1
a8 1
CFLAGS+=-DMFS -DFSIRAND -I${MOUNT}
@


1.1
log
@Initial revision
@
text
@d5 1
a5 1
MAN8=	newfs.0
@


1.1.1.1
log
@BSD 4.4 Lite sbin Sources

Note:  XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
@
text
@@
