summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* o consistently check strlcpy resultsam2007-02-271-2/+10
| | | | o warn when we skip an interface because it's name is too long
* correct type to silence const complaintsam2007-02-271-1/+2
|
* unbreak create operation, must copy argument to global namesam2007-02-271-0/+1
| | | | Spotted by: des
* Call the multipath device with its real name.ale2007-02-271-1/+1
|
* First cleanup pass: new sentence -> new line, typos fixed, some markupbrueffer2007-02-271-26/+41
| | | | errors fixed.
* Add a man page.mjacob2007-02-272-2/+250
|
* Fix an error in dumping large sparse files containing extended attributes.mckusick2007-02-271-2/+2
|
* First cut at GEOM based multipath. This is an active/passive{/passive...}mjacob2007-02-273-0/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arrangement that has no intrinsic internal knowledge of whether devices it is given are truly multipath devices. As such, this is a simplistic approach, but still a useful one. The basic approach is to (at present- this will change soon) use camcontrol to find likely identical devices and and label the trailing sector of the first one. This label contains both a full UUID and a name. The name is what is presented in /dev/multipath, but the UUID is used as a true distinguishor at g_taste time, thus making sure we don't have chaos on a shared SAN where everyone names their data multipath as "Fred". The first of N identical devices (and N *may* be 1!) becomes the active path until a BIO request is failed with EIO or ENXIO. When this occurs, the active disk is ripped away and the next in a list is picked to (retry and) continue with. During g_taste events new disks that meet the match criteria for existing multipath geoms get added to the tail end of the list. Thus, this active/passive setup actually does work for devices which go away and come back, as do (now) mpt(4) and isp(4) SAN based disks. There is still a lot to do to improve this- like about 5 of the 12 recommendations I've received about it, but it's been functional enough for a while that it deserves a broader test base. Reviewed by: pjd Sponsored by: IronPort Systems MFC: 2 months
* Update the dump program to save extended attributes. Updatemckusick2007-02-266-46/+514
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | the restore program to restore all dumped extended attributes. If the restore is running as root, it will always be able to restore all extended attributes. If it is not running as root, it makes a best effort to set them. Using the -v command line flag or the `verbose' command in interactive mode will display all the extended attributes being set on files (and at the end on directories) that are being restored. It will note any extended attributes that could not be set. The extended attributes are placed on the dump image immediately following each file's data. Older versions of restore can work with the newer dump images. Old versions of restore will correctly restore the file data and then (silently) skip over the extended attribute data and proceed to the next file. This resolves PR 93085 which will be closed once the code has been MFC'ed. Note that this code will not compile until these header files have been updated: <protocols/dumprestore.h> and <sys/extattr.h>. PR: bin/93085 Comments from: Poul-Henning Kamp and Robert Watson MFC after: 3 weeks
* use getifaddrs from libc instead of private codesam2007-02-247-195/+116
| | | | | Reviewed by: bms MFC after: 1 month
* Correct typo.pjd2007-02-221-1/+1
| | | | Spotted by: Tomasz Dudzisz
* Kris suggested that swap is a better choice as a default than malloc.n_hibma2007-02-202-4/+4
| | | | MFC: 1 week
* [Found the original diff I made, see previous commit for other part]n_hibma2007-02-202-4/+23
| | | | | | | | Assume '-a' and '-t malloc' flags for '-s <size>' (malloc ramdisk) if not specified. Reviewed by: phk (some time ago) MFC: 1 week
* Make attach the default for -f. That wayn_hibma2007-02-202-3/+11
| | | | | | | | | mdconfig -f image works like a charm. Reviewed by: phk (some time ago) MFC: 1 week
* correct type definition of option routine callbacksam2007-02-171-1/+1
|
* remove (now) duplicate definition of IEEE80211_IS_CHAN_PASSIVEsam2007-02-171-3/+0
|
* Grammar nits.ceri2007-02-151-2/+2
|
* Add examples for configuring and mounting geom_uzip(4) based disks'matteo2007-02-151-0/+20
| | | | | image and sliced/partitioned memory disks. MFC after: 1 week
* Correct -c and -d description.matteo2007-02-152-16/+16
| | | | | | | Other requests made in the PR were already solved in the past. PR: bin/66763 MFC after: 1 week
* Mention the nat command in the synopsis and in the action section.piso2007-02-151-0/+13
| | | | Approved by: glebius (mentor)
* Enhances mdmfs(8) to mount md-based device such as uzip.matteo2007-02-151-4/+9
| | | | | | | Examples of use can be found in the PR text. PR: 103501 MFC after: 1 week
* Default output to stdout as the man page suggests.brian2007-02-141-3/+1
|
* Only go through our cylinder group and inode info when we need to.brian2007-02-141-45/+49
| | | | This allows ``ffsinfo -o - -l1 /tmp'' to run a lot quicker.
* Re-indent main() in preparation for further changes.brian2007-02-141-126/+87
|
* Mark up lkm with .Nm, since lkm is name of an api.brueffer2007-02-133-3/+3
| | | | Submitted by: ru
* Raise WARNS level to 6.rodrigc2007-02-132-2/+3
|
* Forgot to hook up gjournal manual page to the build.pjd2007-02-101-1/+0
| | | | Reminded by: simon, piso
* Don't reference lkm(4), it doesn't exist.brueffer2007-02-103-3/+3
| | | | | PR: 108980 Submitted by: Yonatan
* Implement RFC3442, the Classless Static Route option.emaste2007-02-096-4/+137
| | | | | | | | | | | The original DHCP specification includes a route option but it supports only class-based routes. RFC3442 adds support for specifying the netmask width for each static route. A variable length encoding is used to minimize the size of this option. PR: bin/99534 Submitted by: Andrey V. Elsukov <bu7cher@yandex.ru> Reviewed by: brooks
* Add a $FreeBSD$ tag missing after the original import. Note that thisemaste2007-02-091-0/+2
| | | | file isn't actually installed; the one in src/etc is.
* Print warning that "-t msdos" is deprecated and being converted torodrigc2007-02-061-1/+4
| | | | | | | | | "-t msdosfs". The conversion has been happening since 1.43, but no equivalent conversion happens in "umount -t", which led to some confusion with some users. PR: 79296 Submitted by: Nobuhiro Yasutomi <nobuhiro yasutomi nifty ne jp>
* Be explicit in examples about the correct grammar for 'alias' andbms2007-02-041-12/+27
| | | | | | | | | | | | | '-alias', and that 'add' and 'delete are in fact synonyms for these in the ifconfig(8) grammar. Use network prefixes explicitly specified in IETF RFCs for documentation purposes. (bz) PR: 102701 MFC after: 1 day See also: RFC 3330, RFC 3849 Submitted by: bz
* If two files systems, /a and /b are marked as having quotas enabledmpp2007-02-041-6/+17
| | | | | | | | | | | | | in fstab and they are normally mounted as /a/b, if /b is not mounted, the various quota utilities will incorrectly operate with the quotas on /a (silently) when operations are attemted on /b. Sync up all the hasquota() routines between all the different quota utilities and change it to detect if the file system we are attempting to perform quota operations on is not currently mounted and warn the user accordingly. PR: bin/38918
* Patches to allow one to allow one to specify a directory to chroot to.imp2007-02-041-63/+139
| | | | | | | | | | This includes support for running a script to setup that directory. The kenv variables init_chroot and init_script control this behavior, and are documented in loader(8) that's about to be committed (along with the other variables like init_path...). Submitted by: Oliver Fromme Reviewed by: myself, jhb (earlier versions)
* Do not touch the block or i-node grace times for id 0.mpp2007-02-031-2/+2
| | | | | These are used to indicate the default grace period for the file system, and should not be touched by quotacheck.
* Fix quotqcheck to correctly use the curinode count, and not thempp2007-02-031-2/+2
| | | | | curblock count when checking if the inode soft limit has been crossed.
* Backout revision 1.4; it is not verified as the correct fix for the PR.bms2007-02-031-1/+1
| | | | | | | A more correct fix has been committed to ifconfig(8). Submitted by: bz PR: 102701
* Add an EXAMPLES section to ifconfig(8), clearly showing how to configurebms2007-02-031-1/+42
| | | | | | | | | | IPv6 addresses in FreeBSD. See also: http://www.telscom.ch/index.php/downloads/configure_ipv6_features MFC after: 1 week PR: 102701 Obtained from: OpenBSD (partly, with edits)
* Use pidfile(3) API to restart mountd(8) on success mount.pjd2007-02-022-10/+28
| | | | | This why we won't kill random process if there is a stale PID in /var/run/mountd.pid.
* Remove, since code has been merged into mount_nfs,rodrigc2007-02-013-952/+0
| | | | and mount_nfs Makefile builds mount_nfs and creates a mount_nfs4 link to it.
* Add gjournal(8) manual page. Documentation of kern.geom.journal.* sysctlspjd2007-01-291-0/+238
| | | | | | is still missing, ehh. Reviewed by: trhodes
* Actually implement rev 1.12 for host names and NIS domain names. Webrooks2007-01-291-1/+0
| | | | | | were removing the invalid option, but still rejecting the lease. Reported by: Yoshihiko Sarumaru <mistral at imasy dot or dot jp>
* Pass "errmsg" to nmount(), so that if nmount() fails, we can getrodrigc2007-01-291-1/+3
| | | | strings provided by vfs_mount_error().
* typo: s/tranport layer/transport layer/wilko2007-01-281-2/+2
| | | | MFC after: 1 week
* Convert mount_ext2fs to a simple program which passes "-o option" to nmount().rodrigc2007-01-281-33/+31
|
* Remove unused reference to objformat.hpeter2007-01-251-1/+0
|
* Bump .Dd.mpp2007-01-251-1/+1
|
* Add a BUGS section that shows that ids that appear to bempp2007-01-251-0/+12
| | | | | | | | negative are now ignored by the quota system and that extremely large ids may make quotacheck run for a very long time. Also mention that "options QUOTA" is required for the kernel to provide quota support.
* When the following conditions are meet:pjd2007-01-251-1/+13
| | | | | | | | | | | | | | | | - First configured key is based only on keyfile (no passphrase). - Device is attached. - User changes first key (setkey) from keyfile to passphrase and doesn't specify number of iterations (with -i option). ...geli(8) won't store calculated number of iterations in metadata. This result in device beeing unaccesable after detach. One can recover from this situation by guessing number of iterations generated, storing it in metadata and trying to attach device. Recovery procedure isn't nice, but one's data is not lost. Reported by: Thomas Nickl <T.Nickl@gmx.net> MFC after: 1 week
* Implement gctl_change_param() function, which changes value of existingpjd2007-01-252-0/+28
| | | | | | parameter. MFC after: 1 week
OpenPOWER on IntegriCloud