summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* The recomputation of file system summary at mount time can be adelphij2005-02-202-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | very slow process, especially for large file systems that is just recovered from a crash. Since the summary is already re-sync'ed every 30 second, we will not lag behind too much after a crash. With this consideration in mind, it is more reasonable to transfer the responsibility to background fsck, to reduce the delay after a crash. Add a new sysctl variable, vfs.ffs.compute_summary_at_mount, to control this behavior. When set to nonzero, we will get the "old" behavior, that the summary is computed immediately at mount time. Add five new sysctl variables to adjust ndir, nbfree, nifree, nffree and numclusters respectively. Teach fsck_ffs about these API, however, intentionally not to check the existence, since kernels without these sysctls must have recomputed the summary and hence no adjustments are necessary. This change has eliminated the usual tens of minutes of delay of mounting large dirty volumes. Reviewed by: mckusick MFC After: 1 week
* When creating a new FFS file system, the block size will indirectlydelphij2005-02-201-0/+10
| | | | | | | | | | | | | affect the largest file size that is allowed by the file system. On the other hand, when creating a snapshot, the snapshot file will appear as it is as big as the file system itself. Hence we will not be able to create a file system on large file systems with small block sizes. Add a warning about this, and gives some hints to correct the issue. Reviewed by: mckusick MFC After: 1 week
* Fix year in copyrights.pjd2005-02-162-2/+2
|
* va_list style tweaksobrien2005-02-161-1/+2
|
* Fix grammar error.obrien2005-02-151-1/+1
|
* Expand contractions.ru2005-02-132-3/+3
|
* Expand *n't contractions.ru2005-02-1312-32/+32
|
* Reword a sentence to conform with our mdoc(7) style.trhodes2005-02-121-3/+4
| | | | | | | Modify wording in a sentence to avoid a run on within (). Remove a contraction. Submitted by: Joel Dahl <joel@automatvapen.se> (original version)
* - Fixed description of the "destroy" command options.ru2005-02-122-28/+45
| | | | | - Document the "nuke" command. - Mention which commands correspond to which functions.
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-102-3/+5
|
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-1046-150/+135
|
* - Correctly spell MOD_QUIESCEglebius2005-02-091-1/+3
| | | | | | - use .Dv for it MFC after: 3 days
* Fixed the misplaced $FreeBSD$.ru2005-02-095-7/+7
|
* Sort SEE ALSO.glebius2005-02-071-1/+1
| | | | Submitted by: ru
* Document how interaction with ng_ipfw node is configured.glebius2005-02-051-2/+23
|
* Add a ng_ipfw node, implementing a quick and simple interface betweenglebius2005-02-051-0/+22
| | | | | | ipfw(4) and netgraph(4) facilities. Reviewed by: andre, brooks, julian
* - Sort options.pjd2005-02-031-8/+9
| | | | - Put 'break' into separate line.
* Fix whitespace.pjd2005-02-031-6/+5
|
* - Remove bogus O_CREAT flag. We really don't want to create a file here.pjd2005-02-031-7/+7
| | | | | | | | | | PR: bin/67793 Submitted by: Amir Shalem <amir@boom.org.il> - Sync usage with manual page. Approved by: phk MFC after: 1 week
* Remove unsigned casts.ssouhlal2005-01-311-4/+8
| | | | | Discussed with: delphij, stefanf Approved by: grehan (mentor)
* Document -f in usage().ru2005-01-301-2/+2
|
* Let bsd.prog.mk set SRCS and MAN to their default values.ru2005-01-284-6/+0
|
* Change the ifr_media operation to only get its value and only setambrisko2005-01-271-79/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | its value once per ifconfig run. Use Sam's new callback operation to set it when everything is done. The purpose for this is that if you did something like ifconfig bge0 media 100baseTX mediaopt full-duplex multiple times it would end up causing the PHY to re-sync since it would send the IOCTLs: ifconfig bge0 media 100baseTX -mediaopt full-duplex ifconfig bge0 media 100baseTX mediaopt full-duplex This would cause the PHY to be updated twice even though there really wasn't any change since the check in sys/net/if_media.c would always fail. Caveat is that this doesn't fix the case of: ifconfig bge0 media autoselect etc. since in sys/net/if_media.c it forces an autoselect to go through the entire process in ifmedia_ioctl :-( : /* * If no change, we're done. * XXX Automedia may invole software intervention. * Keep going in case the the connected media changed. * Similarly, if best match changed (kernel debugger?). */ if ((IFM_SUBTYPE(newmedia) != IFM_AUTO) && (newmedia == ifm->ifm_media) && (match == ifm->ifm_cur)) return 0; Briefly looked at by: sam
* Get rid of a NULL dereference when oid is too long.ssouhlal2005-01-251-1/+2
| | | | | | Reviewed by: keramida Approved by: grehan (mentor) MFC after: 1 week
* - Make WARNS?= 6 cleanssouhlal2005-01-252-2/+4
| | | | | | - Add WARNS?= 6 Approved by: stefanf, grehan (mentor)
* Use new style declarations instead of K&R ones.delphij2005-01-251-10/+5
|
* Use modern style defination for main() and move a externdelphij2005-01-252-4/+6
| | | | | | declaration to global section. Bump WARNS?= to 6
* Code style tweaks: Use static and const where suitable.delphij2005-01-251-7/+6
|
* The kernel specified in main() of reboot(8) will be initializeddelphij2005-01-252-5/+5
| | | | | | | | | | | | | with -k option and never be used without kflag. This confuses gcc because we set "kflag" at the same time with "kernel", but the logic is not that apparant for gcc. Since we can initialize "kernel" to NULL then know if "k" option is set through determining whether it is still NULL, don't try to have gcc to guess why we are connecting "kflag" with "kernel" and use "kernel" directly in place of kflag. Bump WARNS?= from 2 to 6
* spell "file system" correctlycharnier2005-01-241-1/+1
| | | | Approved by: ru
* Bring back WARNS to 3 for arm until I figure out how to make gcc happy.cognet2005-01-241-0/+4
|
* Allow to specify device size in bytes.pjd2005-01-222-2/+4
| | | | MFC after: 1 week
* Document -l and -n options in usage().ru2005-01-221-0/+2
|
* Polish previous revision:ru2005-01-221-6/+12
| | | | | | - Bump document date. - Spell "file system" properly. - Add missing markup bits.
* Add an option to suppress the creation of the .snap directory inwes2005-01-214-32/+60
| | | | | | | | the new filesystem. This is intended for memory and vnode filesystems that will never be fsck'ed or dumped. Obtained from: St. Bernard Software RAPID MFC after: 2 weeks
* Improved error checking for existence of a .snap directory towes2005-01-212-18/+29
| | | | | | | | generate snapshots in when -L is requested. If the .snap directory does not exist, or is not a directory, issue a warning and revert to the non- live behavior. Obtained from: St. Bernard Software RAPID
* Fixed xrefs.ru2005-01-211-2/+2
|
* Use the standard section name.ru2005-01-181-3/+3
|
* Don't print extra " via ", if we have already printed one. While here,glebius2005-01-181-4/+6
| | | | | | | slightly style brackets. PR: misc/75297 MFC after: 1 week
* Sort sections.ru2005-01-1843-345/+345
|
* Oops... Remove the line leaked in the last commit which is notdelphij2005-01-171-1/+0
| | | | intended to be there...
* WARNS=6 cleanup:delphij2005-01-172-17/+18
| | | | | | | - Initialize everything in the struct array, not only the mentioned ones - Unconditionally initialize hs to 0 to avoid repeatly doing so - Cast to unsigned int when comparing to unsigned variables.
* WARNS=6 cleanup:delphij2005-01-172-4/+9
| | | | | | | - signed/unsigned conform. - Better initialization of nlist[]. I think we should have something like NLIST_NULL instead of the current (ugly) form...
* Added the EXIT STATUS section where appropriate.ru2005-01-1723-36/+27
|
* Remove \n at the end of err(3) stringscharnier2005-01-161-7/+5
|
* Fix arguments syntax.pjd2005-01-1514-123/+81
| | | | | Manual pages fixes by: ru MFC after: 3 days
* Eliminate macro calls inside literal displays.ru2005-01-151-3/+3
|
* Fixed display type.ru2005-01-151-1/+1
|
* Fixed display types.ru2005-01-151-5/+5
|
* Markup nits.ru2005-01-151-16/+14
|
OpenPOWER on IntegriCloud