diff options
author | jkh <jkh@FreeBSD.org> | 1996-12-11 09:35:06 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-12-11 09:35:06 +0000 |
commit | 3727883bddbc2a8ead72a97011cf4763fe5c7ede (patch) | |
tree | 3e96d1a8c70e76ad8e35ec46e4c61b3f0ab3295c /release/sysinstall/ufs.c | |
parent | 90d182874d165b16fcb0758a86668941f1ddda01 (diff) | |
download | FreeBSD-src-3727883bddbc2a8ead72a97011cf4763fe5c7ede.zip FreeBSD-src-3727883bddbc2a8ead72a97011cf4763fe5c7ede.tar.gz |
Do a few things I've been threatening to do for a long time:
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>
Diffstat (limited to 'release/sysinstall/ufs.c')
-rw-r--r-- | release/sysinstall/ufs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/release/sysinstall/ufs.c b/release/sysinstall/ufs.c index 9a70070..9bbea03 100644 --- a/release/sysinstall/ufs.c +++ b/release/sysinstall/ufs.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: ufs.c,v 1.8 1996/04/13 13:32:14 jkh Exp $ + * $Id: ufs.c,v 1.9 1996/08/23 07:56:01 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -42,7 +42,7 @@ /* No init or shutdown routines necessary - all done in mediaSetUFS() */ -int +FILE * mediaGetUFS(Device *dev, char *file, Boolean probe) { char buf[PATH_MAX]; @@ -51,13 +51,13 @@ mediaGetUFS(Device *dev, char *file, Boolean probe) msgDebug("Request for %s from UFS\n", file); snprintf(buf, PATH_MAX, "%s/%s", dev->private, file); if (file_readable(buf)) - return open(buf, O_RDONLY); + return fopen(buf, "r"); snprintf(buf, PATH_MAX, "%s/dists/%s", dev->private, file); if (file_readable(buf)) - return open(buf, O_RDONLY); + return fopen(buf, "r"); snprintf(buf, PATH_MAX, "%s/%s/%s", dev->private, variable_get(VAR_RELNAME), file); if (file_readable(buf)) - return open(buf, O_RDONLY); + return fopen(buf, "r"); snprintf(buf, PATH_MAX, "%s/%s/dists/%s", dev->private, variable_get(VAR_RELNAME), file); - return open(buf, O_RDONLY); + return fopen(buf, "r"); } |