summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Pass a char buffer parameter with name "errmsg" to nmount().rodrigc2006-12-071-1/+4
| | | | | | | For filesystems which use vfs_mount_error() to log an error, this char buffer will be populated with a string error message. If nmount() fails, in addition to printing out strerror(errno), print out the "errmsg" populated by vfs_mount_error().
* Add a "-D" flag to restore which puts it into "degraded" mode. Thisdwmalone2006-12-055-22/+104
| | | | | | | | | | | | | | | | | | makes restore less efficient, but it makes a bigger effore to read corrupted dumps. Specifiacally, when in degreded mode: 1) Restore shifts the input by 1 byte if it sees a problem, rather than one tape block. 2) It doesn't assume the inodes are stored in ascending order. 3) It turns some panics into warning printfs. We also verify some fields more carefully than before. There's probably more a degreded mode could do, but this seems to help a lot. Approved by: imp, iedowse, mckusick MFC after: 3 weeks
* o Correct a function prototype.maxim2006-12-041-1/+1
|
* It's confusing to say that "Command Queueing Supported" just basedmjacob2006-12-031-3/+2
| | | | | upon the scsi flag validity field. Instead, just say "Command Queueing Enabled" when it is- otherwise remain mute.
* Many, many thanks to Masanori OZAWA <ozawa@ongs.co.jp>rodrigc2006-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)
* Pass a string buffer named "errmsg" to nmount().rodrigc2006-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
* Deduce the "fstype" parameter to pass to nmount() by looking atrodrigc2006-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
* - Revert signedness type changes to "struct vmtotal"; by makingru2006-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
* Add descriptions for p2p and autop2p.thompsa2006-11-271-0/+20
|
* Bump .Dd for r1.127.ceri2006-11-271-1/+1
|
* Show the MAC address cache size and timeout.thompsa2006-11-271-14/+22
|
* Keep the command name the same as the values display name in ifconfig.thompsa2006-11-272-2/+2
|
* Sync with the OpenBSD port of RSTPthompsa2006-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>
* - When building world WITHOUT_LIBPTHREAD, link libthr to libpthread.ru2006-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.
* Fix the format specifier suitable for uintmax_t.ru2006-11-231-5/+5
|
* Detach mount_devfs, mount_ext2fs, mount_fdescfs, mount_procfs,rodrigc2006-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".
* Cross-reference nextboot(8).jkoshy2006-11-222-0/+2
| | | | MFC after: 3 days
* Increase WARNS to 3.rodrigc2006-11-211-1/+1
|
* Fix last element of nc_protos[] array to appease GCC.rodrigc2006-11-211-1/+1
|
* Convert mount_nfs from old mount(2) API to new nmount(2) API.rodrigc2006-11-211-1/+11
| | | | Reviewed by: mohans
* - Fix types of "struct vmmeter" members so they are unsigned.ru2006-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.)
* Fix debugging output of '-d', to more accurately reflect ifrodrigc2006-11-141-1/+4
| | | | | | | we exec an external mount program, or just call nmount() to mount a filesystem. Noticed by: kris
* Add a new address cache type called sticky. On an interface marked sticky anythompsa2006-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.
* Document the -l option.ceri2006-11-072-2/+16
| | | | | Reviewed by: brd Approved by: ru (mentor)
* - I forgot to bump a date.danger2006-11-051-1/+1
| | | | Approved by: keramida (mentor), trhodes (mentor) (implicit)
* - add some files to FILES section and provide their descriptiondanger2006-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
* Sync up with rhyolite routed 2.31 which fixes the handling of varargs.trhodes2006-11-051-12/+15
| | | | | | | Remove -p from usage, it's gone completely now. PR: 83387 Submited by: arved
* Remove the -C option as it does more harm than good. To be fullyru2006-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
* Bump .Dd for -f|-F.ceri2006-11-022-2/+2
|
* 2nd and final commit that moves us to CAM_NEW_TRAN_CODEmjacob2006-11-021-93/+143
| | | | | | as the default. Reviewed by multitudes.
* Now, that we have gjournal in the tree add possibility to configurepjd2006-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.
* G_TYPE_NONE was replaced with G_TYPE_BOOL.pjd2006-11-011-2/+2
|
* Fix -fstrict-aliasing warning.ru2006-11-011-1/+3
|
* Fix powerpc build.pjd2006-11-011-0/+1
| | | | Reported by: Peter Grehan <grehan@freebsd.org>
* Bring in support for the Rapid Spanning Tree Protocol (802.1w).thompsa2006-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
* Whitespace and style nits.jhb2006-10-311-4/+3
|
* Hook up gjournal bits to the build.pjd2006-10-311-0/+1
| | | | Sponsored by: home.pl
* Forgot to add file with gjournal specific fsck code.pjd2006-10-311-0/+774
| | | | Sponsored by: home.pl
* Update after function renames.pjd2006-10-312-4/+3
| | | | Sponsored by: home.pl
* Implements gjournal support. If file system has gjournal support enabledpjd2006-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
* Teach about new fields (cg_unrefs and fs_unrefs) and new FS_GJOURNAL flag.pjd2006-10-312-5/+12
| | | | Sponsored by: home.pl
* Teach mount(8) about MNT_GJOURNAL flag.pjd2006-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
* Add -J flag to both newfs(8) and tunefs(8) which allows to enable gjournalpjd2006-10-316-9/+56
| | | | | | | | support. I left -j flag for UFS journal implementation which we may gain at some point. Sponsored by: home.pl
* Add userland control utility for gjournal GEOM class.pjd2006-10-314-0/+465
| | | | Sponsored by: home.pl
* - Handle timeouts from recv(2) properly.pjd2006-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
* Two tiny style fixes.ru2006-10-241-3/+3
|
* Revert rev. 1.86 by jmallett@ as it breaks "ro" mounts specifiedru2006-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
* Fix the description of "media-type".ru2006-10-241-3/+14
|
* If not compiled for debugging, redirect standard input/output/errorru2006-10-231-1/+7
| | | | to /dev/null before becoming a daemon.
* Revise the markup, sort sections, fix some grammar bugs.ru2006-10-211-116/+119
| | | | Not fixed: the description of media-type is completely bogus.
OpenPOWER on IntegriCloud