<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sbin/newfs/Makefile, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2017-03-04T11:33:01Z</updated>
<entry>
<title>sbin: normalize paths using SRCTOP-relative paths or :H when possible</title>
<updated>2017-03-04T11:33:01Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-03-04T11:33:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=22289a8c3d45efcf5671750a0ceffb1296455bab'/>
<id>urn:sha1:22289a8c3d45efcf5671750a0ceffb1296455bab</id>
<content type='text'>
This simplifies make logic/output

MFC after:	1 month
Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>Convert sbin/ to LIBADD</title>
<updated>2014-11-25T11:23:12Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2014-11-25T11:23:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=13eb765f2d1a7497df9f56f5ca95950e04cb4c01'/>
<id>urn:sha1:13eb765f2d1a7497df9f56f5ca95950e04cb4c01</id>
<content type='text'>
Reduce overlinking
</content>
</entry>
<entry>
<title>Use expand_number(3) from libutil instead of home-grown function to parse</title>
<updated>2010-03-03T19:25:28Z</updated>
<author>
<name>Maxim Sobolev</name>
<email>sobomax@FreeBSD.org</email>
</author>
<published>2010-03-03T19:25:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=32bdc2b685082c7ecb402cbaecce8f64a2bf7899'/>
<id>urn:sha1:32bdc2b685082c7ecb402cbaecce8f64a2bf7899</id>
<content type='text'>
human-friendly power-of-two numbers (i.e. 2k, 5M etc).

Suggested by:	many
MFC after:	1 week
</content>
</entry>
<entry>
<title>Raise WARNS for various tools where possible.</title>
<updated>2010-01-17T21:56:27Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2010-01-17T21:56:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=f6d189a9e4c4c50d95884b4b1ae13e5a03cd7e94'/>
<id>urn:sha1:f6d189a9e4c4c50d95884b4b1ae13e5a03cd7e94</id>
<content type='text'>
Submitted by:	Marius Nünnerich &lt;marius@nuenneri.ch&gt;
</content>
</entry>
<entry>
<title>Enable operation of newfs on plain files, which is useful when you</title>
<updated>2008-12-03T18:36:59Z</updated>
<author>
<name>Luigi Rizzo</name>
<email>luigi@FreeBSD.org</email>
</author>
<published>2008-12-03T18:36:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=64c8fef580df8cb8a9dbab10ad04b8e427609f0d'/>
<id>urn:sha1:64c8fef580df8cb8a9dbab10ad04b8e427609f0d</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Convert newfs to libufs (really).  Solves one real issue with previous</title>
<updated>2003-02-11T03:06:45Z</updated>
<author>
<name>Juli Mallett</name>
<email>jmallett@FreeBSD.org</email>
</author>
<published>2003-02-11T03:06:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=fc903aa52589c6fc86a5532ebd7fa0507b0c5a40'/>
<id>urn:sha1:fc903aa52589c6fc86a5532ebd7fa0507b0c5a40</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Back out conversion to libufs, for now.  It seems to cause problems.</title>
<updated>2003-01-29T22:52:27Z</updated>
<author>
<name>Juli Mallett</name>
<email>jmallett@FreeBSD.org</email>
</author>
<published>2003-01-29T22:52:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=5a29754e3f2b408d8df01c00b9e32675f0757778'/>
<id>urn:sha1:5a29754e3f2b408d8df01c00b9e32675f0757778</id>
<content type='text'>
Reported by: phk
</content>
</entry>
<entry>
<title>Convert newfs to use libufs.  I've tested this on md filesystems, as has</title>
<updated>2003-01-27T07:24:32Z</updated>
<author>
<name>Juli Mallett</name>
<email>jmallett@FreeBSD.org</email>
</author>
<published>2003-01-27T07:24:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=9d492cddacc7b1afd53f410dee5c0711b5c98ce9'/>
<id>urn:sha1:9d492cddacc7b1afd53f410dee5c0711b5c98ce9</id>
<content type='text'>
keramida, and all seems well.
</content>
</entry>
<entry>
<title>Add the undocumented -R option to disable randomness for regression-testing.</title>
<updated>2002-03-19T21:05:29Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2002-03-19T21:05:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=89fb8ee796263407b2396378b7076c0350b9e5cc'/>
<id>urn:sha1:89fb8ee796263407b2396378b7076c0350b9e5cc</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>The FSIRAND code is always compiled in, and it is unlikely that</title>
<updated>2002-03-19T17:03:14Z</updated>
<author>
<name>Ian Dowse</name>
<email>iedowse@FreeBSD.org</email>
</author>
<published>2002-03-19T17:03:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=f7b48c89c8276b823c3f2c575107e79d28b17d4c'/>
<id>urn:sha1:f7b48c89c8276b823c3f2c575107e79d28b17d4c</id>
<content type='text'>
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().
</content>
</entry>
</feed>
