aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Many, many thanks to Masanori OZAWA <ozawa@ongs.co.jp>Craig Rodrigues2006-12-023-96/+290
| | | | | | | | | | | | | | | | and Daichi GOTO <daichi@FreeBSD.org> for submitting this major rewrite of unionfs. This rewrite was done to try to solve many of the longstanding crashing and locking issues in the existing unionfs implementation. This implementation also adds a 'MASQUERADE mode', which allows the user to set different user, group, and file permission modes in the upper layer. Submitted by: daichi, Masanori OZAWA Reviewed by: rodrigc (modified for minor style issues) Notes: svn path=/head/; revision=164829
* Pass a string buffer named "errmsg" to nmount().Craig Rodrigues2006-11-291-2/+4
| | | | | | | | | | | This will allow the NFS mount code to return a string error message in addition to returning an error integer value. Reviewed by: mohans MFC after: 1 month Notes: svn path=/head/; revision=164733
* Deduce the "fstype" parameter to pass to nmount() by looking atCraig Rodrigues2006-11-291-2/+8
| | | | | | | | | | | the "_nfs" part of argv[0]. This should facilitate unifying mount_nfs and mount_nfs4 into one binary. MFC after: 1 month Reviewed by: mohans Notes: svn path=/head/; revision=164732
* - Revert signedness type changes to "struct vmtotal"; by makingRuslan Ermilov2006-11-281-15/+11
| | | | | | | | | | | | | | | | | them unsigned I made the possible overflows hard to detect, and it only saved 1 bit which isn't principal, even less now that the underlying issue with the total of virtual memory has been fixed. (For the record, it will overflow with >=2T of VM total, with 32-bit ints used to keep counters in pages.) - While here, fix printing of other "struct vmtotal" members such as t_rq, t_dw, t_pw, and t_sw as they are also signed. Reviewed by: bde MFC after: 3 days Notes: svn path=/head/; revision=164718
* Add descriptions for p2p and autop2p.Andrew Thompson2006-11-271-0/+20
| | | | Notes: svn path=/head/; revision=164698
* Bump .Dd for r1.127.Ceri Davies2006-11-271-1/+1
| | | | Notes: svn path=/head/; revision=164697
* Show the MAC address cache size and timeout.Andrew Thompson2006-11-271-14/+22
| | | | Notes: svn path=/head/; revision=164691
* Keep the command name the same as the values display name in ifconfig.Andrew Thompson2006-11-272-2/+2
| | | | Notes: svn path=/head/; revision=164688
* Sync with the OpenBSD port of RSTPAndrew Thompson2006-11-271-39/+53
| | | | | | | | | | | | - use flags rather than sperate ioctls for edge, p2p - implement p2p and autop2p flags - define large pathcost constant as ULL - show bridgeid and rootid in ifconfig Obtained from: Reyk Floeter <reyk@openbsd.org> Notes: svn path=/head/; revision=164653
* - When building world WITHOUT_LIBPTHREAD, link libthr to libpthread.Ruslan Ermilov2006-11-261-6/+2
| | | | | | | | - Don't build ngctl(8) and cached(8) if threading libs aren't built. - Fix various issues in a cached(8) makefile. Notes: svn path=/head/; revision=164616
* Fix the format specifier suitable for uintmax_t.Ruslan Ermilov2006-11-231-5/+5
| | | | Notes: svn path=/head/; revision=164557
* Detach mount_devfs, mount_ext2fs, mount_fdescfs, mount_procfs,Craig Rodrigues2006-11-221-2/+0
| | | | | | | | mount_linprocfs, and mount_std from the build. They are no longer used, and can be replaced with "mount -t fstype". Notes: svn path=/head/; revision=164527
* Cross-reference nextboot(8).Joseph Koshy2006-11-222-0/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=164509
* Increase WARNS to 3.Craig Rodrigues2006-11-211-1/+1
| | | | Notes: svn path=/head/; revision=164459
* Fix last element of nc_protos[] array to appease GCC.Craig Rodrigues2006-11-211-1/+1
| | | | Notes: svn path=/head/; revision=164458
* Convert mount_nfs from old mount(2) API to new nmount(2) API.Craig Rodrigues2006-11-211-1/+11
| | | | | | | Reviewed by: mohans Notes: svn path=/head/; revision=164457
* - Fix types of "struct vmmeter" members so they are unsigned.Ruslan Ermilov2006-11-201-12/+13
| | | | | | | | | | - Fix overflow bugs in sysctl(8), systat(1), and vmstat(8) when printing values of "struct vmmeter" in kilobytes as they don't necessarily fit into 32 bits. (Fix sysctl(8) reporting of a total virtual memory; it's in pages too.) Notes: svn path=/head/; revision=164443
* Fix debugging output of '-d', to more accurately reflect ifCraig Rodrigues2006-11-141-1/+4
| | | | | | | | | | we exec an external mount program, or just call nmount() to mount a filesystem. Noticed by: kris Notes: svn path=/head/; revision=164266
* Add a new address cache type called sticky. On an interface marked sticky anyAndrew Thompson2006-11-092-0/+28
| | | | | | | | | | | address learned by the bridge is made permanent, the address will not age out and most importantly will not migrate to another interface. This can be used to stop mac address poisoning or clients roaming in much the same way as static entries without the hassle of preloading the table. Notes: svn path=/head/; revision=164112
* Document the -l option.Ceri Davies2006-11-072-2/+16
| | | | | | | | Reviewed by: brd Approved by: ru (mentor) Notes: svn path=/head/; revision=164071
* - I forgot to bump a date.Daniel Gerzo2006-11-051-1/+1
| | | | | | | Approved by: keramida (mentor), trhodes (mentor) (implicit) Notes: svn path=/head/; revision=164008
* - add some files to FILES section and provide their descriptionDaniel Gerzo2006-11-051-0/+16
| | | | | | | | | | | - reference devfs.conf and devfs.rules in SEE ALSO section Approved by: keramida (mentor), trhodes (mentor) PR: docs/103347 MFC-after: 3 days Notes: svn path=/head/; revision=164006
* Sync up with rhyolite routed 2.31 which fixes the handling of varargs.Tom Rhodes2006-11-051-12/+15
| | | | | | | | | | Remove -p from usage, it's gone completely now. PR: 83387 Submited by: arved Notes: svn path=/head/; revision=163999
* Remove the -C option as it does more harm than good. To be fullyRuslan Ermilov2006-11-032-80/+15
| | | | | | | | | | | | | | | | | | | | | | | compatible, it would have to (at least): - support the "compat-compat" -T option, - *not* support the -l, -O, and -v options, - default to soft updates being disabled. Worse, the compatibility mode makes it impossible to mount_mfs(8) a file system from fstab(5) with soft updates disabled (-S). [1] Now, the only difference when called as "mount_mfs" or "mfs" (as opposed to "mdmfs") is that the file mode of the mount point is set by default to 01777. All options available to mdmfs(8) are also available to mount_mfs(8); the -C option is still recognized but ignored for backward compatibility. PR: bin/98860 [1] MFC after: 2 weeks Notes: svn path=/head/; revision=163952
* Bump .Dd for -f|-F.Ceri Davies2006-11-022-2/+2
| | | | Notes: svn path=/head/; revision=163908
* 2nd and final commit that moves us to CAM_NEW_TRAN_CODEMatt Jacob2006-11-021-93/+143
| | | | | | | | | as the default. Reviewed by multitudes. Notes: svn path=/head/; revision=163896
* Now, that we have gjournal in the tree add possibility to configurePawel Jakub Dawidek2006-11-014-14/+39
| | | | | | | | | gmirror and graid3 in a way that it is not resynchronized after a power failure or system crash. It is safe when gjournal is running on top of gmirror/graid3. Notes: svn path=/head/; revision=163888
* G_TYPE_NONE was replaced with G_TYPE_BOOL.Pawel Jakub Dawidek2006-11-011-2/+2
| | | | Notes: svn path=/head/; revision=163887
* Fix -fstrict-aliasing warning.Ruslan Ermilov2006-11-011-1/+3
| | | | Notes: svn path=/head/; revision=163866
* Fix powerpc build.Pawel Jakub Dawidek2006-11-011-0/+1
| | | | | | | Reported by: Peter Grehan <grehan@freebsd.org> Notes: svn path=/head/; revision=163864
* Bring in support for the Rapid Spanning Tree Protocol (802.1w).Andrew Thompson2006-11-012-35/+181
| | | | | | | | | | | | | RSTP provides faster spanning tree convergence, the protocol will exchange information with neighboring switches to quickly transition to forwarding without creating loops. The code will default to RSTP mode but will downgrade any port connected to a legacy STP network so is fully backward compatible. Reviewed by: syrinx Tested by: syrinx Notes: svn path=/head/; revision=163863
* Whitespace and style nits.John Baldwin2006-10-311-4/+3
| | | | Notes: svn path=/head/; revision=163852
* Hook up gjournal bits to the build.Pawel Jakub Dawidek2006-10-311-0/+1
| | | | | | | Sponsored by: home.pl Notes: svn path=/head/; revision=163851
* Forgot to add file with gjournal specific fsck code.Pawel Jakub Dawidek2006-10-311-0/+774
| | | | | | | Sponsored by: home.pl Notes: svn path=/head/; revision=163849
* Update after function renames.Pawel Jakub Dawidek2006-10-312-4/+3
| | | | | | | Sponsored by: home.pl Notes: svn path=/head/; revision=163846
* Implements gjournal support. If file system has gjournal support enabledPawel Jakub Dawidek2006-10-317-14/+41
| | | | | | | | | | | | | and -p flag was given perform fast file system checking (bascially only garbage collecting of orphaned objects). Rename bread() to blread() and bwrite() to blwrite() as we now link to the libufs library, which also implement functions with that names. Sponsored by: home.pl Notes: svn path=/head/; revision=163845
* Teach about new fields (cg_unrefs and fs_unrefs) and new FS_GJOURNAL flag.Pawel Jakub Dawidek2006-10-312-5/+12
| | | | | | | Sponsored by: home.pl Notes: svn path=/head/; revision=163844
* Teach mount(8) about MNT_GJOURNAL flag.Pawel Jakub Dawidek2006-10-311-0/+2
| | | | | | | | | | MNT_GJOURNAL flag is not a mount-time flag, but it is needed to show 'gjournal' option in mount(8) output. Sponsored by: home.pl Notes: svn path=/head/; revision=163843
* Add -J flag to both newfs(8) and tunefs(8) which allows to enable gjournalPawel Jakub Dawidek2006-10-316-9/+56
| | | | | | | | | | | support. I left -j flag for UFS journal implementation which we may gain at some point. Sponsored by: home.pl Notes: svn path=/head/; revision=163842
* Add userland control utility for gjournal GEOM class.Pawel Jakub Dawidek2006-10-314-0/+465
| | | | | | | Sponsored by: home.pl Notes: svn path=/head/; revision=163838
* - Handle timeouts from recv(2) properly.Pawel Jakub Dawidek2006-10-301-2/+6
| | | | | | | | | | | | - Increase timeout to 8 seconds (should be made configurable). Reported by: Ulrich Spoerlein <uspoerlein@gmail.com> Reported by: Christian Laursen <xi@borderworlds.dk> PR: kern/104829 MFC after: 1 week Notes: svn path=/head/; revision=163804
* Two tiny style fixes.Ruslan Ermilov2006-10-241-3/+3
| | | | Notes: svn path=/head/; revision=163672
* Revert rev. 1.86 by jmallett@ as it breaks "ro" mounts specifiedRuslan Ermilov2006-10-241-6/+32
| | | | | | | | | | | | | | | | in /etc/fstab. This has been happening due to the priority inversion; options specified on the command line should take precedence over options from fstab over default "noro" option, but since both the default "noro" and options specified on the command line (-w, -r, -o ...) were put into the same "options" variable, "noro" took precedence over fstab "ro" (this is easily visible with "mount -d"). PR: bin/100164 Notes: svn path=/head/; revision=163671
* Fix the description of "media-type".Ruslan Ermilov2006-10-241-3/+14
| | | | Notes: svn path=/head/; revision=163667
* If not compiled for debugging, redirect standard input/output/errorRuslan Ermilov2006-10-231-1/+7
| | | | | | | to /dev/null before becoming a daemon. Notes: svn path=/head/; revision=163628
* Revise the markup, sort sections, fix some grammar bugs.Ruslan Ermilov2006-10-211-116/+119
| | | | | | | Not fixed: the description of media-type is completely bogus. Notes: svn path=/head/; revision=163581
* Fix .Dd arguments.Ruslan Ermilov2006-10-211-1/+1
| | | | Notes: svn path=/head/; revision=163576
* o '-s' flag was killed in rev. 1.75. Clean getopt(3).Maxim Konovalov2006-10-201-1/+1
| | | | | | | | | PR: bin/104616 Submitted by: Oliver Fromme MFC after: 1 week Notes: svn path=/head/; revision=163539
* Hook up idmapd to the build, as the NFS4 client is not much use withoutCeri Davies2006-10-151-0/+1
| | | | | | | it. Notes: svn path=/head/; revision=163377
* .PATH isn't necessary here.Ceri Davies2006-10-151-3/+1
| | | | | | | Remove hardcoded path to /usr/src/sys. Notes: svn path=/head/; revision=163376