aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add support for multiple attributes. This is required for theMarcel Moolenaar2008-10-201-6/+13
| | | | | | | PC98 scheme. Notes: svn path=/head/; revision=184070
* Tiny wording nits.Giorgos Keramidas2008-10-191-4/+5
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=184057
* Support the remaining options listed in dhcp-options(5) and RFC 2132.Brooks Davis2008-10-173-5/+31
| | | | | | | | | PR: bin/127076 Submitted by: jkim MFC after: 1 week Notes: svn path=/head/; revision=183974
* o Remove a debug code and restore an accidentally deleted codeMaxim Konovalov2008-10-141-1/+8
| | | | | | | in a previous commit. Notes: svn path=/head/; revision=183890
* o Do nothing in show_nat() for a test mode (-n). This preventsMaxim Konovalov2008-10-141-8/+4
| | | | | | | | | | | show_nat() from endless loop and makes work ipfw -n nat <...>. PR: bin/128064 Submitted by: sem MFC after: 1 month Notes: svn path=/head/; revision=183889
* Background fsck applies twice some summary totals changes. The nextKonstantin Belousov2008-10-131-4/+11
| | | | | | | | | | | | | | background fsck on the same file system might then print negative numbers for reclaimed directories/files/fragments. Address the issue in a limited degree, by using old summary data for cg when bgfsck is performed. Submitted by: tegge MFC after: 1 week Notes: svn path=/head/; revision=183821
* check_maps() in /usr/src/sbin/fsck_ffs/pass5.c seems to be limited to fileKonstantin Belousov2008-10-131-15/+27
| | | | | | | | | | | | | | systems less than 1 TB, due to using 32-bits integers for file system block numbers. This also causes incorrect error reporting for foreground fsck. Convert it to use ufs2_daddr_t for block numbers. PR: kern/127951 Submitted by: tegge MFC after: 1 week Notes: svn path=/head/; revision=183820
* Add some examples to demostrate gpart(8).Xin LI2008-10-091-1/+36
| | | | | | | --此行及以下内容将会被忽略-- Notes: svn path=/head/; revision=183718
* o Typo fixes.Maxim Konovalov2008-10-051-2/+2
| | | | | | | | PR: docs/127866 Submitted by: Marius Korsmo Notes: svn path=/head/; revision=183616
* add duplicate cmd entries for vlan and vlandev that are marked !cloneSam Leffler2008-10-021-0/+3
| | | | | | | | | so they can be used when not doing a create operation Reviewed by: ed Notes: svn path=/head/; revision=183554
* - A call to close(2) might overwrite errno and thus give a wrong error messageUlf Lilleengen2008-09-301-1/+2
| | | | | | | | | | on g_providername failure. Suggested by: pjd Approved by: pjd (mentor) Notes: svn path=/head/; revision=183496
* - Improve error message given on g_providername call failure.Ulf Lilleengen2008-09-302-2/+2
| | | | | | | | | - While there, make error messages consistent with the rest. Approved by: kib (mentor) Notes: svn path=/head/; revision=183487
* Distinguish between cmd/parameters used for clone operations andSam Leffler2008-09-291-33/+43
| | | | | | | | | | | | | | all others. Use this to disambiguate cmd line arguments that can be either clone params or regular parameters so, in particular, "bssid" again works as a regular parameter. While here leverage the above to improve the logic for flushing clone operations on the first !clone cmd line parameter. Reviewed by: jhay Notes: svn path=/head/; revision=183466
* o Add missed dot.Maxim Konovalov2008-09-291-1/+1
| | | | Notes: svn path=/head/; revision=183456
* Fix the build.Roman Kurakin2008-09-271-1/+1
| | | | | | | Noted by: ganbold@ Notes: svn path=/head/; revision=183415
* * add all keyword for table list & flush actions.Roman Kurakin2008-09-271-3/+14
| | | | | | | | | | * add tables_max sysctl. * add default_rule sysctl. PR: 127058 (partially) Notes: svn path=/head/; revision=183408
* Add keyword all in addtion to the table number for the 'list' and theRoman Kurakin2008-09-271-8/+29
| | | | | | | | | | 'flush' actions on tables. Part of PR: 127058. PR: 127058 (based on) MFC after: 1 month Notes: svn path=/head/; revision=183407
* Static-ify procedures in init(8).Xin LI2008-09-271-80/+80
| | | | Notes: svn path=/head/; revision=183391
* Add missing library dependencies.Ruslan Ermilov2008-09-232-4/+4
| | | | | | | | PR: bin/127573 Submitted by: Eygene Ryabinkin Notes: svn path=/head/; revision=183296
* Unbreak the build.Giorgos Keramidas2008-09-221-1/+1
| | | | Notes: svn path=/head/; revision=183263
* MIMO power save and RIFS; while here also update per-node state/flags for ampduSam Leffler2008-09-222-1/+72
| | | | Notes: svn path=/head/; revision=183261
* "ampdudensity -" is too subtle; use "NA" for any and accept it as a parameterSam Leffler2008-09-221-2/+2
| | | | Notes: svn path=/head/; revision=183260
* check for undefined identifiersSam Leffler2008-09-211-12/+59
| | | | Notes: svn path=/head/; revision=183244
* add new build knobs and jigger some existing controls to improveSam Leffler2008-09-211-5/+22
| | | | | | | | | | | control over the result of buildworld and installworld; this especially helps packaging systems such as nanobsd Reviewed by: various (posted to arch) MFC after: 1 month Notes: svn path=/head/; revision=183242
* Add the check of the table number.Roman Kurakin2008-09-211-0/+17
| | | | Notes: svn path=/head/; revision=183241
* Move table list to a separate function.Roman Kurakin2008-09-211-35/+44
| | | | Notes: svn path=/head/; revision=183228
* Free allocated memory.Roman Kurakin2008-09-201-0/+1
| | | | Notes: svn path=/head/; revision=183209
* Remove some unused variables.Roman Kurakin2008-09-201-4/+3
| | | | Notes: svn path=/head/; revision=183208
* Style(9) the show_nat() function.Roman Kurakin2008-09-201-1/+2
| | | | Notes: svn path=/head/; revision=183206
* Do not do the useless job for an empty table.Roman Kurakin2008-09-201-0/+5
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=183205
* Use the version of the kernel returned by getosreldate()Craig Rodrigues2008-09-191-6/+16
| | | | | | | | | | to determine whether to call the fallback_mount() backwards compatibility function or not. Reviewed by: dfr Notes: svn path=/head/; revision=183182
* - Make bsdlabel use libgeom to determine provider name, device path, the mediaUlf Lilleengen2008-09-181-22/+40
| | | | | | | | | | | | size and the sector size. - Fix a bug where bsdlabel would try to read a regular file using the geom_bsd class. Quick review by: phk Approved by: pjd (mentor) Notes: svn path=/head/; revision=183143
* Document the -F 's return statement.Remko Lodder2008-09-171-0/+6
| | | | | | | | | | | | | If the application returns succesfully the return code is 7 (which means the filesystem is clean). PR: 127432 Submitted by: edwin MFC after: 3 days Notes: svn path=/head/; revision=183110
* Instead of building up a "struct nfs_args" to pass to the kernelCraig Rodrigues2008-09-132-473/+622
| | | | | | | | | | | | | | | | | | via nmount(), build up an iovec where each iovec member is an NFS mount option, and pass the iovec down to the kernel via nmount(). These options are then parsed in the kernel. This should make it easier to add new NFS mount options in future. Many, many thanks to Doug Rabson for taking my initial patches, and cleaning them up. In addition, Doug added a fallback_mount() function so that the newer mount_nfs program will work against older kernels, to facilitate upgrading/downgrading scenarios. Doug also re-wrote the mount_nfs.8 man page. Reviewed by: dfr Notes: svn path=/head/; revision=183008
* Bring a paragraph in this manual page a bit closer to the present date.Tom Rhodes2008-09-071-2/+2
| | | | | | | Discussed with: des Notes: svn path=/head/; revision=182847
* - Make use of the new and g_device_path utility function in libgeom to avoidUlf Lilleengen2008-09-071-49/+30
| | | | | | | | | | | | duplication of code in fdisk and boot0cfg. Also make use of g_providername to fix an issue with fdisk and boot0cfg not using the correct provider when writing the MBR. Reviewed by: phk Approved by: pjd (mentor) Notes: svn path=/head/; revision=182844
* Check rule numbers against maximum value to avoid rules cleanup dueRoman Kurakin2008-09-061-0/+24
| | | | | | | | | to overflow. MFC after: 5 days. Notes: svn path=/head/; revision=182825
* Use IPFW_DEFAULT_RULE instead of hardcoded value since now it isRoman Kurakin2008-09-061-8/+9
| | | | | | | | | available. MFC after: 5 days. Notes: svn path=/head/; revision=182823
* Use RUSAGE_SELF for the current process instead of hardcoded valueKevin Lo2008-09-021-2/+2
| | | | Notes: svn path=/head/; revision=182672
* Don't return always 0. Return what we get from exec_mountprog orMatteo Riondato2008-08-311-1/+1
| | | | | | | | | | mount_fs. PR: bin/125154 MFC after: 1 day Notes: svn path=/head/; revision=182570
* By default backup geli metadata to a file. It is quite critical 512 bytes,Pawel Jakub Dawidek2008-08-292-17/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | once it is lost, all data is gone. Option '-B none' can by used to prevent backup. Option '-B path' can be used to backup metadata to a different file than the default, which is /var/backups/<prov>.eli. The 'geli init' command also prints backup file location and gives short procedure how to restore metadata. The 'geli setkey' command now warns that even after passphrase change or keys update there could be version of the master key encrypted with old keys/passphrase in the backup file. Add regression tests to verify that new functionality works as expected. Update other regression tests so they don't create backup files. Reviewed by: keramida, rink Dedicated to: a friend who lost 400GB of his live by accidentally overwritting geli metadata MFC after: 2 weeks Notes: svn path=/head/; revision=182452
* - Give algorithms recommendation.Pawel Jakub Dawidek2008-08-291-13/+15
| | | | | | | - Keep options in alphabetical order. Notes: svn path=/head/; revision=182451
* Add support in ifconfig to control the vlan hardware filter feature.Jack F Vogel2008-08-283-5/+10
| | | | | | | | Reviewed by: EvilSam and moi MFC after:1 week Notes: svn path=/head/; revision=182414
* Trivial typo fix.Ivan Voras2008-08-271-1/+1
| | | | | | | Approved by: gnn (mentor) Notes: svn path=/head/; revision=182277
* Implement -R support, similar to ping(8)'s -A.Matteo Riondato2008-08-272-14/+34
| | | | | | | | | | | | | ping(8)'s -a was mapped to -e, but -E was already taken in ping6 (old option) so rename -e to -r. Now: ping -a => ping6 -r ping -A => ping6 -R MFC after: 2 days Notes: svn path=/head/; revision=182276
* Add -e to usage()Matteo Riondato2008-08-271-1/+1
| | | | | | | MFC after: 2 days Notes: svn path=/head/; revision=182269
* Fix typo.Rui Paulo2008-08-271-2/+2
| | | | Notes: svn path=/head/; revision=182263
* Implement audible support similar to ping(8) -a option. Since -a was already ↵Matteo Riondato2008-08-262-3/+16
| | | | | | | | | | taken, I chose -e (no real argument for this) but I'm willing to change to a different character if needed/desired. PR: bin/123752 (inspired by) MFC after: 2 days Notes: svn path=/head/; revision=182195
* Instead of passing MNT_UPDATE, MNT_SNAPSHOT, MNT_RELOAD fromCraig Rodrigues2008-08-231-2/+3
| | | | | | | | | | | userspace to kernel via nmount(), pass in the strings "update", "snapshot", "reload". We want to move away from passing MNT_ flags from userspace -> kernel via nmount(), and instead favor passing the string options. Notes: svn path=/head/; revision=182027
* Fix channel parsing which was broken in r179958, the channel number may beAndrew Thompson2008-08-141-2/+4
| | | | | | | suffixed with :flag and /width. Notes: svn path=/head/; revision=181722