summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Correct order of arguments given to checkparity and rebuildparity.le2004-02-061-4/+7
| | | | Approved by: joerg (mentor)
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-055-10/+10
|
* Don't print the oldest line in the message buffer if the buffer isiedowse2004-02-051-51/+54
| | | | | | | | | | full, since that line is almost always incomplete. Make the parsing of <%d> lines more strict. Also simplify the logic a little: - Start off by making the buffer linear so that we don't have to deal with it wrapping around (suggested by bde). - Process line by line rather than byte at a time.
* Fixed operation of -f to match its documentation and fsck_ffs. Itbde2004-02-053-7/+6
| | | | | | | | | has now has no effect except in combination with -p, and plain fsck checks all file systems instead of skipping clean ones for msdosfs only. Renamed the force flag to skipclean and inverted its logic as in fsck_ffs.
* Fixed some bugs in checkdirty(). The check for the clean bit wasbde2004-02-051-9/+27
| | | | | | | | | | | | | | | | | | | combined with the the signature check in a wrong way (basically (dirty:= signature_recognised() && !clean) instead of (mightbedirty:= !signature_recognized || !clean), so file systems with unrecognized signatures were considered clean. Many of the don't-care and reserved bits were not ignored, so some file systems with valid signatures were unrecognized. One of my FAT32 file systems has a signature of f8,ff,ff,ff,ff,ff,ff,f7 when dirty, but only f8,ff,ff,0f,ff,ff,ff,07 was recognised as dirty for FAT32, so the fail-unsafeness made my file system always considered clean. Check the i/o non-error bit in checkdirty(). Its absence would give an unrecognized signature in code that is unaware of it, but we now mask it out of the signature so we have to check it explicitly. This combines naturally with the check of the clean bit. Reviewed by: rnordier (except for final details)
* Don't create a template file if we're not going to let the user edit it.des2004-02-051-19/+28
|
* Fixed some non-critical memory leaks and one temporary file leakpjd2004-02-051-1/+6
| | | | | | (theoretical). Approved by: phk, scottl (mentor)
* Document the dirty flag and other bits in the first 2 FAT entriesbde2004-02-051-0/+18
| | | | | | | | | | | | better. There is a related I/O error flag which we don't support in the kernel but must support here. (Support for bits that we don't understand here is mostly automatic by fail-safeness, but checkdirty() has fail-unsafeness.) There are some reserved and don't-care bits that weren't fully documented and aren't always masked properly. The comment about the bits in readfat() will be removed when the masking is fixed. Submitted by: rnordier
* Prepare to fix checkdirty() by moving it from check.c to fat.c. It isbde2004-02-052-43/+43
| | | | | identical to a subset of readfat(), so it belongs near readfat() if not in it.
* Add ifconfig support for network interface renaming. In the process,brooks2004-02-042-3/+49
| | | | | | | | reorganize the printing of the interface name when using wildcard cloning so it is not printed if it we either immediately rename or destroy the interface. Reviewed by: ru
* Mechanical whitespace cleanup. Also, note that previous commit wasdes2004-02-031-12/+12
| | | | Sponsored by: Teleplan AS
* Remove newline characters from error strings.des2004-02-031-2/+2
|
* Correct a typo and unbreak the build.nectar2004-02-031-1/+1
| | | | Pointy hat to: pjd
* Made use of MNT_USER flag and inform about user responsible for mountpjd2004-02-021-1/+5
| | | | | | | | | | | | | | | | | | | in those cases: 1. File system was mounted by an unprivileged user. 2. File system was mounted by an unprivileged root user. 3. File system was mounted by a privileged non-root user. Point 1 is when file system was mounted by unprivileged user (sysctl vfs.usermount was equal to 1 then). Point 2 is when file system was mounted by root, while sysctl security.bsd.suser_enabled is set to 0 and sysctl vfs.usermount is set to 1. Point 3 is because we want to be ready for capabilities. Reviewed by: rwatson Approved by: scottl (mentor)
* Spell "disklabel" correctly.ceri2004-02-011-1/+1
| | | | Approved by: ru
* Use memcpy plus a manual NUL termination when copying the interface namebrooks2004-01-311-3/+5
| | | | | | | from the sdl because strlcpy requires that the source string be NUL-terminated unlike strncpy. Submitted by: Peter Jeremy <PeterJeremy at optushome dot com dot au>
* Install a 'disklable' alias.obrien2004-01-311-0/+5
| | | | Technical Reviewed by: ru
* Sync with bsdlabel/Makefile.obrien2004-01-291-5/+9
|
* Add a very basic manpage.obrien2004-01-292-1/+71
|
* Style(9) option sortingguido2004-01-292-2/+2
| | | | Submitted by: Ruslan Ermilov <ru@FreeBSD.org>
* Fix manpage and usage() to reflect that -a can be used in combinationguido2004-01-292-1/+2
| | | | | | | with -o Submitted by: Ruslan Ermilov <ru@FreeBSD.org> Pointed out by: Ceri Davies <ceri@submonkey.net
* Removed duplicate $FreeBSD$ tag.ru2004-01-291-1/+0
|
* Unbreak -o fstab and -o current in combination with -aguido2004-01-291-0/+2
| | | | MFC after: 2 weeks
* This has been disconnected from the build since May 2003. GC it, asobrien2004-01-285-3134/+0
| | | | bsdlabel and sunlabel are what we use now.
* Style nit in previous commit.des2004-01-271-1/+1
|
* Preserve acls option on mounts when taking a snapshot.mckusick2004-01-271-1/+5
| | | | Submitted by: Wiktor Niesiobedzki <freebsd-lists@w.evip.pl>
* Use IFNAMSIZ instead of a magic value for the length of an interfacebrooks2004-01-272-4/+5
| | | | | | | | name. Prevent the kernel from potentially overflowing the interface name variable. The size argument of strlcpy is complex because the name is not null-terminated in sdl_data.
* Avoid dereferencing null pointers in fsck_ffs. (pfatal may return,cperciva2004-01-262-2/+7
| | | | | | | so it isn't a safe way of handling [mc]alloc failures.) PR: misc/61800 Approved by: rwatson (mentor)
* Add support for virtual interfaces. These have no phy chip and, hence, weharti2004-01-262-17/+60
| | | | need to handle interfaces without phy specially.
* o Pass a correct argument to errx(3).maxim2004-01-241-1/+1
| | | | | | PR: bin/61846 Submitted by: Eugene Grosbein MFC after: 1 week
* Fix bogus "ffsinfo -c 0" example with "ffsinfo -g 0 -l 4".blackend2004-01-231-1/+2
| | | | | | PR: bin/61472 Submitted by: Alex Popa <razor@ldc.ro> MFC after: 1 week
* grammarmtm2004-01-231-6/+6
|
* Clarify behaviour of ffsinfo: It appends to outfile withoutcperciva2004-01-231-1/+1
| | | | | | | | | removing any existing contents. PR: bin/61473 Submitted by: Alex Popa <razon@ldc.ro> MFC after: 7 days Approved by: rwatson (mentor)
* Userland signed char fixes for PPC build. Problems were using a chargrehan2004-01-226-11/+13
| | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe
* Cosmeticssos2004-01-211-1/+1
|
* Mark this manpage as i386-only.ru2004-01-212-1/+2
|
* Fixed spacing in previous revision.ru2004-01-171-1/+1
|
* - Build things in pure dictionary order (see sort(1)).ru2004-01-161-23/+38
| | | | | | | | | | - Unify the conditional assignments section so that architectural exclusions come first, then options and !options, sorted by the option name, also in directory order, then architecture specific sections, sorted by the architecture name, with i386 being a traditional exception. Prodded by: bde
* 802.11 mode bits are now masks; convert to suitsam2004-01-151-1/+1
|
* o -c (compact) flag is ipfw2 feature.maxim2004-01-151-0/+2
| | | | | PR: bin/56328 MFC after: 3 days
* o -f (force) in conjunction with -p (preprocessor) is ipfw2 feature.maxim2004-01-151-0/+3
| | | | MFC after: 3 days
* Add RSH to the list of enviroment variables.alex2004-01-151-0/+3
|
* -DSMALL will remove the need of dump.c (for rtsol)ume2004-01-141-2/+2
| | | | Obtained from: KAME
* Note that geometry can also be specified on vnode backed deviecs.phk2004-01-121-1/+1
|
* '-DPC98' is not needed.nyan2004-01-111-4/+0
|
* Add manual page links from fsck_ufs.8 and fsck_4.2bsd.8 to fsck_ffs.8,simon2004-01-101-0/+1
| | | | | | since there are already the same links for the program binary. Suggested by: mat
* Correct an instance of an erroneous "it's".ceri2004-01-071-1/+1
| | | | | | PR: docs/59937 Submitted by: Ada Lim <ada@bsd.org> MFC After: 1 day
* Allow trailing slashes for MNT_UPDATE case (mount -u), too.anholt2004-01-071-1/+1
| | | | | PR: bin/59144 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
* Hook mount_nfs4 to the build.alfred2004-01-061-0/+1
| | | | Noticed by: rwatson
* Define _PATH_MKSNAP_FFS and use it in dump(8) instead of assumingiedowse2004-01-041-2/+2
| | | | | | that mksnap_ffs(8) can be found using the current $PATH. Reviewed by: mckusick
OpenPOWER on IntegriCloud