summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix horrible, embarrassing breakage which caused occasional panics andgrog2000-02-291-181/+177
| | | | | | | | | | | | data corruption. It's a wonder it worked at all. Led-on-the-right-path-by: dillon revive_block: Add treatment for RAID-4. Add function parityrebuild, called by revive_block and parityops. Approved-by: jkh
* launch_requests: If too many requests are active, include PCATCH ingrog2000-02-291-28/+21
| | | | | | | | | | | | | | | the tsleep call flags. Submitted-by: Bernd Walter <ticso@cicely.de> Remove references to vnode pointers, including debug output. Vinum now talks directly to the device driver. bre: Add case for RAID-4. sdio: Don't try to write to a down drive. Set the sd state instead. Approved-by: jkh
* Add support for RAID-4. This is the only change which is needed forgrog2000-02-291-3/+6
| | | | | | | RAID-4 support: the rest is just configuration management. Requested-by: peter Approved-by: jkh
* Malloc: Save the caller's file name in the correct entry.grog2000-02-291-2/+2
|
* Add keywords 'partition' and 'raid4'.grog2000-02-291-0/+2
| | | | Approved-by: jkh
* Modify comments to indicate that RAID-5 functions also apply togrog2000-02-292-8/+6
| | | | | | RAID-4. Approved-by: jkh
* open_drive: open drives directly rather than going via namei andgrog2000-02-291-198/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vn_open. This is necessary in order to be able to open drives before the root file system is mounted. This also involves restructuring the drive struct, which no longer contains a vnode pointer. Instead, open_drive sets an open flag. It's a horrible kludge, and I'll gladly borrow a Danish axe and hack it in little pieces when devfs comes. read_drive, write_drive, drive_io_done: Replace with driveio. The function names are now macros. driveio: Fix horrible, embarrassing breakage which was the reason why read_drive and write_drive existed in the first place. Code-torn-to-shreds-by: dillon format_config: Don't save config of objects in referenced state. They get rebuilt automatically. Change checks for striped or RAID-5 plexes to a macro 'isstriped', which now also includes RAID-4. Change checks for RAID-5 plexes to a macro 'isparity', which now also includes RAID-4. Replace the preprocessor variable names BDEV_MAJOR and CDEV_MAJOR with VINUM_BDEV_MAJOR and VINUM_CDEV_MAJOR respectively. vinum_scandisk: Don't free memory twice on error, once is enough. Approved-by: jkh
* Remove references to vnode pointers, including debug output. Vinumgrog2000-02-291-14/+2
| | | | | | now talks directly to the device driver. Approved-by: jkh
* Remove declarations of read_drive and write_drive and replace themgrog2000-02-291-2/+6
| | | | | | | | with macros. Add declaration for parityrebuild, a new function. Approved-by: jkh
* Add support for RAID-4, even though it is inferior in almost every waygrog2000-02-291-51/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to RAID-5. peter claims that it might be faster for sequential reading, since the drive caches don't trip over the parity blocks. I have seen no evidence to support this, but it's a trivial change. Requested-by: peter Change checks for striped or RAID-5 plexes to a macro 'isstriped', which now also includes RAID-4. Change checks for RAID-5 plexes to a macro 'isparity', which now also includes RAID-4. atoi(): Remove, nobody was talking to it. give_sd_to_drive: If no space is available, make the subdisk down, don't delete it. Change the manner in which the subdisk count was maintained to avoid cases where the count was not adjusted correctly. config_drive: Check if we have subdisks referencing us, and add them if so. This fixes problems which arose when a drive is replaced in a running system. config_sd: Add support for a keyword 'partition', whose meaning will be revealed in the fullness of time. Cosmetic: Shorten some console messages. Approved-by: jkh
* Change the startup sequence of the vinum volume from SI_SUB_DRIVERSgrog2000-02-291-5/+10
| | | | | | | | | | | | | | | to SI_SUB_VINUM, thus making it possible for Vinum to access I/O devices and start. Replace the preprocessor variable names BDEV_MAJOR and CDEV_MAJOR with VINUM_BDEV_MAJOR and VINUM_CDEV_MAJOR respectively. Style fixes: replace NULL with 0 where appropriate. Submitted-by: Charlie Root <root@sms-1.follo.net> (yup, that's all I have to go on). Approved-by: jkh
* Cosmetic changes.grog2000-02-292-6/+7
| | | | Approved-by: jkh
* Add in mailbox return codes for failed fabric logins (port_id_used,mjacob2000-02-291-0/+23
| | | | | | | | loop_id_used, etc...) Do a more precise structure for Get All Next name server responses. Approved: jkh
* Minor non-FreeBSD changes (keeping source sync'd).mjacob2000-02-291-8/+19
| | | | Approved: jkh
* Prettier print of fabric devices being attached- say what kind ofmjacob2000-02-291-9/+59
| | | | | | port they are (e.g., F_Port vs. N_Port). Approved: jkh
* Slightly cleaner fabric support (whiter whites! redder reds!).. No,mjacob2000-02-291-124/+138
| | | | | | | | | | | seriously- only attempt to logout a previously logged in fabric device. Fix a longstanding bug for aborting overtime commands- handle halves have always been reversed. Clean up some error messages to indicate channel number. Approved:jkh
* Clean up defines for correct 12160/1080 exclusion. Final 4.0.mjacob2000-02-292-6/+6
| | | | approved: JKH
* Add NODESCRYPTLINKS knob to prevent spamming of libcrypt -> libscryptkris2000-02-291-0/+2
| | | | | | | symlinks. The name is against my better judgement, but I defer to ancient tradition here because I'm a nice guy. Reviewed by: -current
* Some minor fixing - final for 4.0. Debugging messages toned down a bit.mjacob2000-02-291-21/+15
| | | | Approved: jkh
* Update SES userland examples to something out of the toy stage.mjacob2000-02-2921-134/+788
| | | | Approved: jkh
* Add SI_SUB_VINUM startup sequence for Vinum. This is part of Vinumgrog2000-02-291-0/+1
| | | | | | root file system support. Approved-by: jkh
* correct wording in BUGS section; it's not possible to dismount swapgsutter2000-02-281-2/+2
| | | | | | | devices, but it's certainly possible to make use of them. PR: 17013 Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>
* underline "pattern" in the synopsis.gsutter2000-02-281-1/+1
| | | | | PR: 17042 Submitted by: Edwin Groothuis <mavetju@chello.nl>
* Limit the maximum permissible TCP window size to 65535 octets ifps2000-02-282-2/+8
| | | | | | | | | window scaling is disabled. PR: kern/16914 Submitted by: Jayanth Vijayaraghavan <jayanth@yahoo-inc.com> Reviewed by: wollman Approved by: jkh
* A lot of tools need to be built before compilation proper can happen.markm2000-02-281-2/+3
|
* Don't try to build k5 PAM; it ain't ready yet.markm2000-02-282-2/+2
|
* Yesterday I had to fix a badly broken disk, and found that fsck kept dying:mckusick2000-02-289-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DIR I=64512 CONNECTED. PARENT WAS I=4032 fsck: cannot find inode 995904 fsdb found the inodes with no problem: fsdb (inum: 64512)> inode 995904 current inode: directory I=995904 MODE=40777 SIZE=512 MTIME=Feb 14 15:27:07 2000 [0 nsec] CTIME=Feb 14 15:27:07 2000 [0 nsec] ATIME=Feb 24 10:31:58 2000 [0 nsec] OWNER=nobody GRP=nobody LINKCNT=4 FLAGS=0 BLKCNT=2 GEN=38a41386 Direct blocks: 8094568 0 0 0 0 0 0 0 0 0 0 0 Indirect blocks: 0 0 0 The problem turns out to be a program logic error in fsck. It stores directory inodes internally in hash lists, using the number of directories to form the hash key: inpp = &inphead[inumber % numdirs]; Elsewhere, however, it increments numdirs when it finds unattached directories. I've made the following fix, which solved the problem in the case in hand. Submitted by: Greg Lehey <grog@lemis.com> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Approved by: Kirk McKusick <mckusick@mckusick.com>
* Get the order of things right; the keys need to be generatedmarkm2000-02-288-28/+9
| | | | | early to allow entropy to replenish. sshd must start late to catch the full effects of ldconfig.
* Reset the hardware debug registers when exec'ing a new image.bsd2000-02-282-0/+44
| | | | | Reviewed by: bde,jlemon Approved by: jkh
* This fixes a problem where the SIOCGIFCONF ioctl goes wrong. Thisguido2000-02-281-1/+9
| | | | | | | | | | | | is triggered when qmail is used with INET6 enabled. The bug manifests itself in that the space variable can become negative and that in the comparison in the guards of the 2 loops, this was not noticed because sizeof() returns an unsigned and thus the signed variable gets promoted to unsigned. I decided not to make space unsigned because I think we should guard against this from happening. Thus panic() in case space becomes negative. Approved by: jkh
* New distribution names.markm2000-02-283-4/+11
|
* New distribution name.markm2000-02-281-1/+1
|
* Generate new sshd host key when necessary. I'm tired ofjkh2000-02-287-7/+49
| | | | waiting for someone to commit this. :)
* Remove largescale evidence of crack-smoking.markm2000-02-2829-148/+62
| | | | | | | Where a k4 applet has a k5 namesake, rename the k5 version from k<app> to k5<app>. (Repo copy done). Do some repairs to dependancies to support make world properly.
* 1) Add kerberos5 functionality.markm2000-02-2812-171/+1041
| | | | | | by Daniel Kouril <kouril@informatics.muni.cz> 2) Add full LOGIN_CAP capability by Andrey Chernov
* Fix accept(2) behavior in that accepted sockets don't inherit themarcel2000-02-282-2/+40
| | | | | | | | | | | | parents flags. Note on the PR: The PR contains another patch that's not being committed without further background information. The PR stays open for now. PR: 16946 (Victor A. Salaman <salaman@teknos.com>) Prompted by: msmith Indirect/implicit approval: jkh (shoot me if I'm wrong :-)
* Don't put truncated hostnames in utmpbrian2000-02-281-1/+1
| | | | Approved by: jkh
* Print scope id for scoped addrs.shin2000-02-281-0/+4
| | | | Approved by: jkh
* Previous fix was incomplete and has problem in reverse lookup failed dest,shin2000-02-281-3/+2
| | | | | | | | so fix it. Approved by: jkh Submitted by: Ian West <ian@niw.com.au>
* Fix a serious bug in syslogd regarding the handling of pipes. The bugjoerg2000-02-281-35/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | would cause syslogd to eventually kill innocent processes in the system over time (note: not `could' but `would'). Many thanks to my colleague Mirko for digging into the kernel structures and providing me with the debugging framework to find out about the nature of this bug (and to isolate that syslogd was the culprit) in a rather large set of distributed machines at client sites where this happened occasionally. Whenever a child process was no longer responsive, or when syslogd receives a SIGHUP so it closes all its logging file descriptors, for any descriptor that refers to a pipe syslogd enters the data about the old logging child process into a `dead queue', where it is being removed from (and the status of the dead kitten being fetched) upon receipt of a SIGCHLD. However, there's a high probability that the SIGCHLD already arrives before the child's data are actually entered into the dead queue inside the SIGHUP handler, so the SIGCHLD handler has nothing to fetch and remove and simply continues. Whenever this happens, the process'es data remain on the dead queue forever, and since domark() tried to get rid of totally unresponsive children by first sending a SIGTERM and later a SIGKILL, it was only a matter of time until the system had recycled enough PIDs so an innocent process got shot to death. Fix the race by masking SIGHUP and SIGCHLD from both handlers mutually. Add additional bandaids ``just in case'', i. e. don't enter a process into the dead queue if we can't signal it (this should only happen in case it is already dead by that time so we can fetch the status immediately instead of deferring this to the SIGCHLD handler); for the kill(2) inside domark(), check for an error status (/* Can't happen */ :) and remove it from the dead queue in this case (which if it would have been there in the first place would have reduced the problem to a statistically minimal likelihood so i certainly would never have noticed the bug at all :). Mirko also reviewed the fix in priciple (mutual blocking of both signals inside the handlers), but not the actual code. Reviewed by: Mirko Kaffka <mirko@interface-business.de> Approved by: jkh
* A huge rewrite of the manual page (mostly -mdoc related).ru2000-02-281-546/+653
| | | | Reviewed by: luigi, sheldonh
* Fixed configuration of fast interrupts for the pci cy driver. They werebde2000-02-281-1/+1
| | | | | | | an early newbus casualty. The fix in rev.1.28 didn't work because the most important part of it used a wrong macro name. Approved by: jkh
* Fixed configuration of fast interrupts for the isa cy driver. They werebde2000-02-281-1/+1
| | | | | | | an early newbus casualty. The isa compatibility cruft turned out to be well suited for this fix. Approved by: jkh
* Update the description of NOCRYPT and NOSECURE to match reality.kris2000-02-282-4/+4
|
* Update a comment in elf_coredump to reflect that if you madviseps2000-02-281-2/+3
| | | | | | | with MADV_NOCORE, its address space is also excluded from a core file. Pointed out by: alc
* Add MAP_NOCORE to mmap(2), and MADV_NOCORE and MADV_CORE to madvise(2).ps2000-02-287-21/+60
| | | | | | | | | | | | This This feature allows you to specify if mmap'd data is included in an application's corefile. Change the type of eflags in struct vm_map_entry from u_char to vm_eflags_t (an unsigned int). Reviewed by: dillon,jdp,alfred Approved by: jkh
* Fix a repetition typo about the settings the settings.green2000-02-281-1/+1
| | | | Submitted by: Kris Dow <kris@vilnya.demon.co.uk>
* Add OpenSSH blurb and some other minor changes.kris2000-02-282-4/+30
|
* Fix diagnostic printing test condition (was always true)ache2000-02-281-1/+1
| | | | Approved by: jkh
* Fix a typo, so that the Aironet 4500 really does have an entry here.steve2000-02-282-2/+2
| | | | | | PR: 17028 Submitted by: David Malone <dwmalone@maths.tcd.ie> Approved by: jkh
OpenPOWER on IntegriCloud