diff options
author | jkh <jkh@FreeBSD.org> | 1998-01-16 15:07:55 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-01-16 15:07:55 +0000 |
commit | ca3cb4105e9b072852ae3d77968513c0193473c2 (patch) | |
tree | 617eedcec7cfd322bf97ee2cb15b9c0da5445b6f /usr.sbin/sysinstall | |
parent | 6e4ebaa163f65a90fb9b89ee4e940b2960b921ac (diff) | |
download | FreeBSD-src-ca3cb4105e9b072852ae3d77968513c0193473c2.zip FreeBSD-src-ca3cb4105e9b072852ae3d77968513c0193473c2.tar.gz |
Adapt to new mount(2) argument syntax.
Submitted by: bde
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r-- | usr.sbin/sysinstall/cdrom.c | 4 | ||||
-rw-r--r-- | usr.sbin/sysinstall/floppy.c | 6 | ||||
-rw-r--r-- | usr.sbin/sysinstall/install.c | 6 | ||||
-rw-r--r-- | usr.sbin/sysinstall/misc.c | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/sysinstall/cdrom.c b/usr.sbin/sysinstall/cdrom.c index ad5460e..8dd9148 100644 --- a/usr.sbin/sysinstall/cdrom.c +++ b/usr.sbin/sysinstall/cdrom.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: cdrom.c,v 1.38 1997/02/22 14:11:12 peter Exp $ + * $Id: cdrom.c,v 1.39 1997/04/03 13:44:56 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -75,7 +75,7 @@ mediaInitCDROM(Device *dev) Mkdir(mountpoint); - if (mount(MOUNT_CD9660, mountpoint, MNT_RDONLY, (caddr_t) &args) == -1) { + if (mount("cd9660", mountpoint, MNT_RDONLY, (caddr_t) &args) == -1) { if (errno == EINVAL) { msgConfirm("The CD in your drive looks more like an Audio CD than a FreeBSD release."); return FALSE; diff --git a/usr.sbin/sysinstall/floppy.c b/usr.sbin/sysinstall/floppy.c index d5c5c59..f0f51d2 100644 --- a/usr.sbin/sysinstall/floppy.c +++ b/usr.sbin/sysinstall/floppy.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: floppy.c,v 1.24 1997/03/19 10:09:16 jkh Exp $ + * $Id: floppy.c,v 1.25 1997/04/03 13:44:57 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -143,8 +143,8 @@ mediaInitFloppy(Device *dev) memset(&u_args, 0, sizeof(u_args)); u_args.fspec = dev->devname; - if (mount(MOUNT_MSDOS, mountpoint, MNT_RDONLY, (caddr_t)&dosargs) == -1) { - if (mount(MOUNT_UFS, mountpoint, MNT_RDONLY, (caddr_t)&u_args) == -1) { + if (mount("msdos", mountpoint, MNT_RDONLY, (caddr_t)&dosargs) == -1) { + if (mount("ufs", mountpoint, MNT_RDONLY, (caddr_t)&u_args) == -1) { msgConfirm("Error mounting floppy %s (%s) on %s : %s", dev->name, dev->devname, mountpoint, strerror(errno)); return FALSE; diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index 392ad96..2a7d183 100644 --- a/usr.sbin/sysinstall/install.c +++ b/usr.sbin/sysinstall/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.202 1997/10/13 17:32:29 jkh Exp $ + * $Id: install.c,v 1.203 1997/12/29 20:07:17 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -344,11 +344,11 @@ installFixitFloppy(dialogMenuItem *self) while (1) { msgConfirm("Please insert a writable fixit floppy and press return"); - if (mount(MOUNT_UFS, "/mnt2", 0, (caddr_t)&args) != -1) + if (mount("ufs", "/mnt2", 0, (caddr_t)&args) != -1) break; msgConfirm("An attempt to mount the fixit floppy failed, maybe the filesystem\n" "is unclean. Trying a forcible mount as a last resort..."); - if (mount(MOUNT_UFS, "/mnt2", MNT_FORCE, (caddr_t)&args) != -1) + if (mount("ufs", "/mnt2", MNT_FORCE, (caddr_t)&args) != -1) break; if (msgYesNo("Unable to mount the fixit floppy - do you want to try again?") != 0) return DITEM_FAILURE; diff --git a/usr.sbin/sysinstall/misc.c b/usr.sbin/sysinstall/misc.c index d3d67a7..48df7f4 100644 --- a/usr.sbin/sysinstall/misc.c +++ b/usr.sbin/sysinstall/misc.c @@ -1,7 +1,7 @@ /* * Miscellaneous support routines.. * - * $Id: misc.c,v 1.35 1997/06/13 07:11:56 jkh Exp $ + * $Id: misc.c,v 1.36 1997/11/05 06:11:30 obrien Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -338,7 +338,7 @@ Mount(char *mountp, void *dev) msgDebug("mount %s %s\n", device, mountpoint); ufsargs.fspec = device; - if (mount(MOUNT_UFS, mountpoint, RunningAsInit ? MNT_ASYNC : 0, + if (mount("ufs", mountpoint, RunningAsInit ? MNT_ASYNC : 0, (caddr_t)&ufsargs) == -1) { msgConfirm("Error mounting %s on %s : %s", device, mountpoint, strerror(errno)); return DITEM_FAILURE; |