summaryrefslogtreecommitdiffstats
path: root/sbin/newfs/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Convert sbin/ to LIBADDbapt2014-11-251-2/+1
| | | | Reduce overlinking
* Use expand_number(3) from libutil instead of home-grown function to parsesobomax2010-03-031-2/+2
| | | | | | | human-friendly power-of-two numbers (i.e. 2k, 5M etc). Suggested by: many MFC after: 1 week
* Raise WARNS for various tools where possible.ed2010-01-171-1/+1
| | | | Submitted by: Marius NĂ¼nnerich <marius@nuenneri.ch>
* Enable operation of newfs on plain files, which is useful when youluigi2008-12-031-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Convert newfs to libufs (really). Solves one real issue with previousjmallett2003-02-111-0/+2
| | | | | | | 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.
* Back out conversion to libufs, for now. It seems to cause problems.jmallett2003-01-291-2/+0
| | | | Reported by: phk
* Convert newfs to use libufs. I've tested this on md filesystems, as hasjmallett2003-01-271-0/+2
| | | | keramida, and all seems well.
* Add the undocumented -R option to disable randomness for regression-testing.phk2002-03-191-0/+6
| | | | | | | | 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.
* The FSIRAND code is always compiled in, and it is unlikely thatiedowse2002-03-191-1/+0
| | | | | | 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().
* Removed vestiges of mount_mfs. Sorted the Makefile a bit.bde2002-03-181-7/+3
|
* Fixed 2 layers of breakage of WARNS. Setting WARNS unconditionally tobde2002-03-181-1/+1
| | | | 0 was bad and setting it unconditionally to 2 was worse.
* Remove __P() and register.phk2002-03-171-1/+1
| | | | | | | | Set WARNS=2 This is the beginning of a pre-UFS2 cleanup of newfs. Sponsored by: DARPA, NAI Labs
* Default to WARNS=2.obrien2001-12-041-0/+2
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* Don't link ${BINDIR}/newfs to nowhere.bde2001-05-301-3/+1
| | | | | Don't clutter this Makefile (not to mention the error output) with $(BDECFLAGS}.
* Remove -DMFS from CFLAGS.dd2001-05-291-1/+1
|
* A more complete removal of MFS related code.phk2001-05-291-1/+1
| | | | XXX: This program badly needs a style(9) + BDECFLAGS treatment.
* Initial cleanout of MFS from newfs. More complete wash needed.phk2001-05-291-2/+1
|
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+0
|
* Turn dkcksum() into an __inline function.phk2000-09-161-2/+3
| | | | Change its type to u_int_16_t.
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowbde1998-01-201-1/+0
| | | | the default.
* Add generation number randomization. Newly created filesystems wil nowguido1997-03-231-1/+1
| | | | | | | | | 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
* Merge from Lite2:peter1997-03-111-0/+1
| | | | | | - use new getvfsbyname() and mount(2) interface (mount_mfs) - use new fs include files - updated inode / cg layout calculations (?)
* man page link tmpfs.8 -> mfs.8 for former SunOS userswosch1996-02-021-1/+1
|
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-1/+1
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+14
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud