summaryrefslogtreecommitdiffstats
path: root/sbin/tunefs/tunefs.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Don't pledge before opendev. Just leave pledge "stdio" righttb2016-05-281-9/+1
| | | | | | afterwards. deraadt agrees
* add braces to correct pledge logicjsg2015-12-091-3/+3
| | | | ok deraadt@
* Use pledge "disklabel" as needed. The theory here is these tools become morederaadt2015-11-231-1/+9
| | | | | resistant against memory correctup, if a corrupt filesystem is given to them. ok krw
* tunefs can pledge to only use "stdio", after it has opened the device.deraadt2015-10-121-1/+5
| | | | ok doug
* When getopt processing flags, many should be flag=1 instead of flag++deraadt2015-02-071-4/+4
| | | | ok tedu miod
* Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orderaadt2015-01-201-2/+2
| | | | | delete <sys/param.h> if now possible ok guenther
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+4
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* As suggested by guenther@ and millert@, replace seek+[read|write] withkrw2014-05-201-16/+7
| | | | | | | | | p[read|write]. Makes the code much clearer by eliminating extra error checking and verbiage. No intentional functional change. Tweaks by and ok guenther@
* No need for a dev_bsize variable that is always set to 512,krw2014-05-121-7/+5
| | | | | | a.k.a. DEV_BSIZE. So just use DEV_BSIZE. Confirmed to still work on 4k-byte sector disks by David Vasek.
* final removal of daddr64_t. daddr_t has been 64 bit for a long enoughderaadt2013-06-111-5/+5
| | | | | test period; i think 3 years ago the last bugs fell out. ok otto beck others
* Use opendev() not opendisk() so we get duid support. OK oga@millert2011-05-051-16/+11
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-15/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* fix rcs ids. ok sthen@martynas2009-06-211-2/+2
|
* daddr_t -> daddr64_totto2007-06-101-4/+4
|
* convert to standard usage(); ok millert ottojmc2007-05-021-7/+7
|
* use strtonum(3) and usage nit; ok millert@otto2007-05-021-18/+14
|
* remove #ifdef TUNEFS_SOFTDEP code, requested by millert@otto2007-05-021-39/+1
|
* FFS2 savvy tunefs from NetBSD. Some cleanup will be done after this.otto2007-05-021-257/+298
| | | | ok millert@ and jmc@ for the man page.
* add missing includesdavid2003-07-101-2/+3
| | | | ok deraadt@ millert@ tedu@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* ansideraadt2002-07-031-19/+8
|
* rm trailing whitespacetodd2002-06-091-3/+3
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-4/+4
|
* while im here; clean -Wall.fgsch2002-02-121-3/+4
|
* _PATH_DEV already includes the trailing '/'; no need for it.fgsch2002-02-121-3/+3
|
* do not open the device for writing if not needed to; millert@ ok & helpmickey2001-12-041-9/+21
|
* kill more registers;mpech2001-11-051-3/+3
| | | | millert@ ok
* document missing options. ok deraadt@jakob2001-10-051-2/+3
|
* treat two exits for a returnmickey2001-05-181-4/+4
|
* Remove softdep and add avgfilesize/avgfpdir in printfs().gluk2001-04-131-4/+6
| | | | | | Pointed out by fgs@. deraadt@ ok.
* Remove soft updates. Warn users about how to enable softdep.gluk2001-04-081-21/+6
| | | | art, deraadt ok.
* Replace FFS directory preference algorithm(dirpref) by new one.gluk2001-04-061-2/+32
| | | | | | | | | | | | It allocates directory inode in the same cylinder group as a parent directory in. This speedup file/directory intensive operations on a big file systems in times. Don't forget to recompile fsck_ffs with updated fs.h or you will get "VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST ALTERNATE" at the next boot. In any case you can ignore this error safely. Requested by deraadt@
* sprintf -> snprintfgluk2001-03-221-3/+4
|
* indentderaadt1997-11-071-20/+19
|
* Added support for enabling soft updates.csapuntz1997-11-061-4/+26
|
* back out vfs lite2 till after 2.2deraadt1997-10-061-25/+3
|
* VFS Lite2 Changescsapuntz1997-10-061-3/+25
|
* use err()/warn()/__progname where appropriate, consolidate string, some -Wallmickey1997-09-041-11/+14
|
* add -p option to show current values; this information is available fromderaadt1996-08-021-2/+29
| | | | dumpfs but not readily obvious. from freebsd by peter@haywire.dialix.com
* update rcsidderaadt1996-06-231-1/+2
|
* initial import of NetBSD treederaadt1995-10-181-0/+289