History log of /freebsd-current/sbin/newfs/Makefile
Revision Date Author Comments
# 51e16cb8 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

sbin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# a7ffc948 22-Jul-2022 Emmanuel Vadot <manu@FreeBSD.org>

pkgbase: Put ufs related tools and lib in their own package

It's not really useful in a jail or in a mdroot or even if a users
wants to do a full zfs machine.

Reviewed by: mckusick
Differential Revision: https://reviews.freebsd.org/D36227


# 22289a8c 04-Mar-2017 Enji Cooper <ngie@FreeBSD.org>

sbin: normalize paths using SRCTOP-relative paths or :H when possible

This simplifies make logic/output

MFC after: 1 month
Sponsored by: Dell EMC Isilon


# 13eb765f 25-Nov-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Convert sbin/ to LIBADD
Reduce overlinking


# 478290db 30-Sep-2014 Enji Cooper <ngie@FreeBSD.org>

Check in first src/tests snapshot from NetBSD anoncvs

Sources were obtained like so:

% export CVSROOT="anoncvs@anoncvs.NetBSD.org:/cvsroot"
% cvs -z9 co -D "09/30/2014 20:45" -P src/tests
% mv src/tests/* tests/dist/.

'*CVS*' has been added to svn:ignore to ease updating periodically from
upstream

Some line ending issues had to be resolved with test outputs and scripts
via dos2unix and by deleting the eol-style property set in usr.bin/sort

Discussed with: rpaulo
Sponsored by: EMC / Isilon Storage Division


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 32bdc2b6 03-Mar-2010 Maxim Sobolev <sobomax@FreeBSD.org>

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


# f6d189a9 17-Jan-2010 Ed Schouten <ed@FreeBSD.org>

Raise WARNS for various tools where possible.

Submitted by: Marius NĂ¼nnerich <marius@nuenneri.ch>


# 64c8fef5 03-Dec-2008 Luigi Rizzo <luigi@FreeBSD.org>

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


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# fc903aa5 10-Feb-2003 Juli Mallett <jmallett@FreeBSD.org>

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.


# 5a29754e 29-Jan-2003 Juli Mallett <jmallett@FreeBSD.org>

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

Reported by: phk


# 9d492cdd 27-Jan-2003 Juli Mallett <jmallett@FreeBSD.org>

Convert newfs to use libufs. I've tested this on md filesystems, as has
keramida, and all seems well.


# 89fb8ee7 19-Mar-2002 Poul-Henning Kamp <phk@FreeBSD.org>

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.


# f7b48c89 19-Mar-2002 Ian Dowse <iedowse@FreeBSD.org>

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().


# 3ac7f112 17-Mar-2002 Bruce Evans <bde@FreeBSD.org>

Removed vestiges of mount_mfs. Sorted the Makefile a bit.


# 3f305db0 17-Mar-2002 Bruce Evans <bde@FreeBSD.org>

Fixed 2 layers of breakage of WARNS. Setting WARNS unconditionally to
0 was bad and setting it unconditionally to 2 was worse.


# 345b78a3 17-Mar-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Remove __P() and register.
Set WARNS=2

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

Sponsored by: DARPA, NAI Labs


# 2d68bf45 03-Dec-2001 David E. O'Brien <obrien@FreeBSD.org>

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

Reviewed by: mike


# e38c0bd6 30-May-2001 Bruce Evans <bde@FreeBSD.org>

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

Don't clutter this Makefile (not to mention the error output) with
$(BDECFLAGS}.


# f628a4b1 29-May-2001 Dima Dorfman <dd@FreeBSD.org>

Remove -DMFS from CFLAGS.


# 80f86e52 29-May-2001 Poul-Henning Kamp <phk@FreeBSD.org>

A more complete removal of MFS related code.

XXX: This program badly needs a style(9) + BDECFLAGS treatment.


# a383ba34 29-May-2001 Poul-Henning Kamp <phk@FreeBSD.org>

Initial cleanout of MFS from newfs. More complete wash needed.


# 0a5779d4 26-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


# fe655281 20-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

Set the default manual section for sbin/ to 8.


# fc87418b 16-Sep-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Turn dkcksum() into an __inline function.

Change its type to u_int_16_t.


# 87f01287 20-Jan-1998 Bruce Evans <bde@FreeBSD.org>

Removed definition of _NEW_VFSCONF. The new vfsconf interface is now
the default.


# 8f89943e 23-Mar-1997 Guido van Rooij <guido@FreeBSD.org>

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


# 75e29411 10-Mar-1997 Peter Wemm <peter@FreeBSD.org>

Merge from Lite2:
- use new getvfsbyname() and mount(2) interface (mount_mfs)
- use new fs include files
- updated inode / cg layout calculations (?)


# 7a5ab50d 01-Feb-1996 Wolfram Schneider <wosch@FreeBSD.org>

man page link tmpfs.8 -> mfs.8 for former SunOS users


# 404c1a5f 04-Aug-1994 Garrett Wollman <wollman@FreeBSD.org>

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.


# 8fae3551 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite sbin Sources

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