summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/nfs.c
Commit message (Collapse)AuthorAgeFilesLines
* Farewall, sysinstall! You served us well for many years, but 10.0 is onenwhitehorn2011-10-031-101/+0
| | | | | | | | digit beyond your time. Various sysinstall dependencies (e.g. libftpio, libdisk, libodialog, etc.) will be cleaned up in coming days. Some will take longer than others due to a few other consumers (tzsetup and sade).
* Various NFS-related bug fixes (mostly related to using variable_get()des2003-10-191-3/+7
| | | | | | instead of variable_cmp() to test boolean rc.conf variables). Submitted by: hmp
* debugMsg() should end with "\n".kuriyama2002-11-011-1/+1
|
* Do not include <sys/syslimits.h> directly; it is not intended for generalwollman2002-10-271-1/+2
| | | | consumption.
* Introduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros. As thedd2001-07-021-2/+2
| | | | | | | | | names suggest, they perform methods on Device's. In addition, they check that the pointer passed to them is valid; if it isn't, they pretend that the action failed. This fixes some crashes due to NULL dereferences (e.g., PR 26509). Approved by: jkh (some time ago)
* In retrospect, msgNotify() should leave its contents on the screenjkh1999-12-171-1/+4
| | | | | longer to give the user something to look at while things are happening. Change it to do so and insert the appropriate screen saves elsewhere.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Collapse the "get" code substantially by combining common functions.jkh1998-12-221-23/+6
| | | | | Also make mountpoint for each media type easier to change. Also reshuffled some menus for easier usage.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* OK, I've got two ideas to file in the "really seemed like a good ideajkh1997-01-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | at the time, but on further reflection..." bucket with these changes. 1. Checking the media before frobbing the disks was a fine idea, and I wish it could have worked, but that leads to a rather difficult situation when you need to mount the media someplace and you're about to: a) Chroot away from your present root. b) Newfs the root to be. You're basically screwed since there's no place to stick the mount point where it will be found following the newfs/chroot (and eliminating the chroot in favor of just using the "root bias" feature would work great for the distributions but not the pkg_add calls done by the package installer). 2. Automatic timeout handling. I don't know why, but alarm() frequently returns no residual even when the alarm didn't go off, which defies the man page but hey, since when was that so unusual? Take out timeouts but retain the code which temporarily replaces the SIGINT handler in favor of a more media-specific handler. This way, at least, if it's hanging you can at least whap it. I think the timeout code would have been losing over *really slow* links anyway, so it's probably best that it go. This should fix NFS, tape & CDROM installs again (serves me right for getting complacent and using just the FTP installs in my testing).
* Argh! Moving the media initialization to before the disk scribblingjkh1997-01-221-8/+11
| | | | | | | | section was a good thing, since it made it possible to detect media problems *before* the installation started, but it also caused various things to be mounted BEFORE the chroot() call, which definitely messes things up. Fix this by detecting the pre-chroot() case and mounting into a subdir.
* Fix a variety of problems with my timeout handling, make it morejkh1997-01-181-2/+2
| | | | | configurable (you can now set the timeout interval), fix a crash-bug when no network device was attached.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* 1. Correct bogon in cdromInit when running multi-user which took cdrom offlinejkh1997-01-011-2/+2
| | | | | | | | | | if wrong version. 2. Make sure network device is initialized in ftpInit 3. Eliminate bogus size values in the menus. For now, we'll have to admit that nobody's added it up yet. In the future, these menus should be build dynamically anyway, not declared static. 4. Add more debugging to networking code to chase the mystery ppp device problem.
* Do a few things I've been threatening to do for a long time:jkh1996-12-111-6/+6
| | | | | | | | | | | | | | | | 1. Don't use the MSDOSFS code for accessing FreeBSD distribution data. Use Robert Nordier's stand-alone DOS I/O library for the purpose. It this works as well as Robert says it does, it should drastically reduce (or even eliminate) our "I can't install from my DOS partition!" calls. 2. As a result of the above, go to stdio file descriptors for all media types. 3. Taking advantage of #2, start using libftpio for FTP transfers instead of maintaining our own parallel version of the FTP transfer code. Yay! I ripped something out for a change! #1 Submitted-By: Robert Nordier <rnordier@iafrica.com>
* Conditionalize some annoying debug statements, update the docs.jkh1996-08-231-2/+3
|
* Whoops! Now that I'm decompressing docs into /tmp, it's important tojkh1996-07-081-2/+2
| | | | | make sure that /tmp is there first! :-) While I'm at it, clean up the somewhat inexplicably bogus Mkdir() function.
* Bring this into sync.jkh1996-04-231-5/+2
| | | | | | | | | | I still have a _very very annoying_ display bug which occurs when a menu item causes a submenu to be displayed - the screen repaints for the original menu (which is restored upon return from the submenu) are off by about 4 characters. I've tried restoring the screen, the cursor position, you name it - same deal. Grrrr! This commit is my first step in trying to get someone else to help me look into this one since I'm just tearing my hair out at this point!
* 1. Update all the copyrights to delete useless clauses 3 and 4.jkh1996-04-131-8/+1
| | | | | 2. Change more of the menu code over to new system. 3. Streamline label editor.
* Miscellaneous cleanup before big round of menu restructuring (to use newjkh1996-03-021-2/+2
| | | | libdialog features).
* Update the -current sources from the 2.1 branch.peter1995-12-071-18/+31
| | | | Approved (in spirit) by: jkh
* Merge RELENG_2_0_5 into HEADrgrimes1995-06-111-13/+9
|
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* NFS installation was broken - try to fix it.jkh1995-05-301-3/+13
|
* Sync up my work for the night. This should implement ALL possiblejkh1995-05-291-16/+92
| | | | | | installation methods and provide a fairly robust set of menu options. This should also fix a few more bugs on Poul-Henning's latest gripe list.
* Things were getting seriously hard to find. Do a quick reorg pass overjkh1995-05-271-0/+21
the code and split things into more logical groupings.
OpenPOWER on IntegriCloud