summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix a type mismatch between a scanf format string and thejdp1998-03-082-6/+6
| | | | corresponding argument.
* Make this compile again.steve1998-03-082-6/+6
| | | | | PR: 5948 Submitted by: Brian Feldman
* If we are mounting the root filesystem, and we're accessing it throughmsmith1998-03-084-6/+76
| | | | | | | | | | | | | | something that might refer to the compatability slice rather than the correct slice entry, try all the possible slice entries first. This is a compatability hack to deal with the case where the kernel has correctly mounted the root filesystem out of its slice, but the user has not updated their /etc/fstab file to reflect this. A diagnostic is emitted if the mount succeeds, indicating that the file should be updated. This is a prelude to fixing the kernel to behave as alluded to above. Reviewed by: (discussed with) julian, phk
* Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)julian1998-03-0831-149/+491
| | | | | Submitted by: Kirk McKusick (mcKusick@mckusick.com) Obtained from: WHistle development tree
* Oops, merge back 32bit fat description from -stable.ache1998-03-072-2/+2
| | | | It was added to -stable but not to -current, strange.
* Add primary fat-32ache1998-03-072-0/+2
|
* If numdirs is zero, print a helpful message instead of divding by zero later.phk1998-03-043-0/+12
|
* Don't assume sigset_t and int are equivalent.jraynard1998-03-021-2/+2
|
* Andreas Klemm reported that 2 hours are too few to format a 9 GBjoerg1998-03-011-2/+2
| | | | Barracuda. Bump the timeout to 3 hours.
* Add more info about special characters in dos2unix/unix2dos tablesache1998-03-013-9/+33
|
* Minimize clock drift between getting and setting timeache1998-02-251-9/+26
| | | | Submitted by: bde
* Fixed annoying warning for unused sccsid.bde1998-02-242-4/+8
|
* Add more info about -W optionache1998-02-233-6/+12
|
* Note that default local charset assumed as ISO 8859-1ache1998-02-233-3/+9
|
* Implement loadable DOS<->local conversion tables for DOS namesache1998-02-2313-79/+276
| | | | Additionly load toupper table to create DOS names always in uppercase
* Implement loadable upper->lower local conversion tableache1998-02-236-21/+90
| | | | Recently introduced -w renamed to -W
* Add missing DESTDIRache1998-02-233-6/+6
|
* Add loadable local<->Unicode conversion support for Win95 namesache1998-02-2210-15/+193
| | | | Note: DOS names still not work and require similar changes
* Remove the casts on signal() returns and compare the returned valuejb1998-02-201-5/+5
| | | | | | with SIG_ERR to detect the error case. Suggested by: bde.
* Support for FAT32 partitions.jkh1998-02-186-78/+258
| | | | | Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Obtained from: NetBSD
* Converted putfsent() to Lite2 mount interface - don't use numericbde1998-02-132-4/+4
| | | | filesystem types.
* Alter ipfw's behavior with respect to fragmented packets when the packetalex1998-02-122-2/+27
| | | | | | | | | | | | | | | | | | | offset is non-zero: - Do not match fragmented packets if the rule specifies a port or TCP flags - Match fragmented packets if the rule does not specify a port and TCP flags Since ipfw cannot examine port numbers or TCP flags for such packets, it is now illegal to specify the 'frag' option with either ports or tcpflags. Both kernel and ipfw userland utility will reject rules containing a combination of these options. BEWARE: packets that were previously passed may now be rejected, and vice versa. Reviewed by: Archie Cobbs <archie@whistle.com>
* Document the enhanced behaviour of the '-c' flag.msmith1998-02-101-2/+5
|
* opt_diagnostic.h isn't needed anymore.jhay1998-02-064-29/+9
|
* fsdb and fsck use the ffs code which needs opt_diagnostic.h.jhay1998-02-054-9/+29
|
* Fixed the previous fix. The original path was annulled when itbde1998-02-031-3/+4
| | | | | was a directory, so the error message for attempting to unmount an unmounted-on directory was more broken than before.
* Don't define KERNEL before including <nfs/nfs.h>. It is no longerbde1998-02-011-3/+1
| | | | | necessary. This fixes warnings about missing forward declarations for structs in kernel-only prototypes.
* Spell 'implements' correctly.steve1998-02-011-2/+2
| | | | | PR: 5614 Submitted by: Dag-Erling Coidan Smorgrav <dag-erli@ifi.uio.no>
* Revert last commit and SEE ALSO pstat(8) instead.steve1998-02-011-2/+2
| | | | Submitted by: Bruce Evans
* Retire dumplfs, mount_lfs and newlfsphk1998-01-3016-2674/+0
|
* Retire dumplfs mount_lfs newlfsphk1998-01-301-3/+3
|
* Make it clear that aliasing is done on the public interface, notbrian1998-01-291-2/+21
| | | | the private one.
* SEE ALSO swapinfo(8).steve1998-01-251-1/+2
| | | | | PR: 5447 Submitted by: Craig Leres <leres@ee.lbl.gov>
* signal() returns an pointer, so must be cast to long, not int beforejb1998-01-251-5/+5
| | | | comparing < 0.
* read() and write() return ssize_t not int, so the first arg to atomic()jb1998-01-251-2/+3
| | | | should be ssize_t too.
* Converted to Lite2 mount interface - use vfc_typenum from thebde1998-01-201-9/+3
| | | | | already looked up vfsconf struct for nfs instead of MOUNT_NFS. Removed related FreeBSD ifdefs.
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowbde1998-01-2024-34/+10
| | | | the default.
* mount(8) only uses realpath() for the mountpoint, so don't look up thebde1998-01-191-6/+6
| | | | | | | | | | | | real path here for the mount device (or path). This fixes difficulties unmounting devices that are actually symlinks to real devices. Also, print the original path instead of the real path in early error messages. nfs path handling and later error messages may still be wrong, probably only in silly cases where the original path is both a symlink and a remote path. PR: 5208
* Don't create superblocks with size larger than SBSIZE (8192). Thebde1998-01-191-0/+4
| | | | | | | size was rounded up to a multiple of the fragment size, but this gave invalid file systems when the fragment size was > SBSIZE (fsck aborts early on them). Now a fragment size of 32768 seems to work (too-simple tests with fsck and iozone worked).
* Guard against a block size of 0 in the label. When the firstbde1998-01-193-0/+15
| | | | | | | | | | | | | | | | | superblock is invalid, fsck looks at the label to help guess where the next superblock should be. If the partition type is 4.2BSD, fsck assumed that the block size was valid and divided by it, so it dumped core if the size was 0. Initialization of the label was broken almost 3 years ago in rev.1.9 of newfs/newfs.c. Newfs does not change the label at all, so there is no problem (except the breakage of the automatic search for backup superblocks) unless something else sets the partition type to 4.2BSD. However, it is too easy to set partition types to 4.2.BSD by copying an old label or by using a disktab entry to create the label. PR: 2537
* Removed most unused includes of <net/if_var.h> outside the kernel.bde1998-01-161-2/+1
|
* Fixed some spelling errors.bde1998-01-161-2/+2
|
* Use err(3). Change exit(-1). Remove unused #include.charnier1998-01-141-35/+27
|
* Use err(3). Change exit(-1), and make exit values equal to 1 when errors.charnier1998-01-121-84/+52
| | | | Remove unused #includes.
* change s_port to ntohs(s_port) for printf in DEBUG.darrenr1998-01-112-4/+4
|
* Pass an actual empty environment to execle() as per POSIX rather thanalex1998-01-101-10/+28
| | | | | | | | | | | rely on undocumented behavior. The following fixes were obtained from OpenBSD: o -Wall fixes to tlist array initialization and assignment used as truth value. o Use a restricted environment. o Improved error message when shutdown fails to exec reboot or halt.
* Added environment parameter to execle calls.alex1998-01-081-3/+3
| | | | Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD
* Bump up packet and byte counters to 64-bit unsigned ints. As aalex1998-01-081-14/+32
| | | | | | | | | | | | | consequence, ipfw's list command now adjusts its output at runtime based on the largest packet/byte counter values. NOTE: o The ipfw struct has changed requiring a recompile of both kernel and userland ipfw utility. o This probably should not be brought into 2.2. PR: 3738
* Correct a comment from my last commit.alex1998-01-081-2/+2
|
* Allow 'shutdown datespec' to work into the next century. Handle datesalex1998-01-081-1/+12
| | | | | in the 22nd century and beyond even though it's irrelevant with a 32-bit time_t which expires in the year 2038.
OpenPOWER on IntegriCloud