From e717f3d8e91cadf13dcf8129cacf91507131ff7c Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 14 Jan 1996 21:48:57 +0000 Subject: [PATCH] Mount the disks we install on async, we might as well. Saves a lot of time. --- release/sysinstall/misc.c | 6 +++--- usr.sbin/sade/misc.c | 6 +++--- usr.sbin/sysinstall/misc.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/release/sysinstall/misc.c b/release/sysinstall/misc.c index b4dd63b23890..6d3730a60eb2 100644 --- a/release/sysinstall/misc.c +++ b/release/sysinstall/misc.c @@ -1,7 +1,7 @@ /* * Miscellaneous support routines.. * - * $Id: misc.c,v 1.12.2.8 1995/11/04 15:08:21 jkh Exp $ + * $Id: misc.c,v 1.13 1995/12/07 10:34:07 peter Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -301,9 +301,9 @@ Mount(char *mountp, void *dev) } if (isDebug()) msgDebug("mount %s %s\n", device, mountpoint); - bzero(&ufsargs, sizeof(ufsargs)); + ufsargs.fspec = device; - if (mount(MOUNT_UFS, mountpoint, 0, (caddr_t)&ufsargs) == -1) { + if (mount(MOUNT_UFS, mountpoint, MNT_ASYNC, (caddr_t)&ufsargs) == -1) { dialog_clear(); msgConfirm("Error mounting %s on %s : %s", device, mountpoint, strerror(errno)); return RET_FAIL; diff --git a/usr.sbin/sade/misc.c b/usr.sbin/sade/misc.c index b4dd63b23890..6d3730a60eb2 100644 --- a/usr.sbin/sade/misc.c +++ b/usr.sbin/sade/misc.c @@ -1,7 +1,7 @@ /* * Miscellaneous support routines.. * - * $Id: misc.c,v 1.12.2.8 1995/11/04 15:08:21 jkh Exp $ + * $Id: misc.c,v 1.13 1995/12/07 10:34:07 peter Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -301,9 +301,9 @@ Mount(char *mountp, void *dev) } if (isDebug()) msgDebug("mount %s %s\n", device, mountpoint); - bzero(&ufsargs, sizeof(ufsargs)); + ufsargs.fspec = device; - if (mount(MOUNT_UFS, mountpoint, 0, (caddr_t)&ufsargs) == -1) { + if (mount(MOUNT_UFS, mountpoint, MNT_ASYNC, (caddr_t)&ufsargs) == -1) { dialog_clear(); msgConfirm("Error mounting %s on %s : %s", device, mountpoint, strerror(errno)); return RET_FAIL; diff --git a/usr.sbin/sysinstall/misc.c b/usr.sbin/sysinstall/misc.c index b4dd63b23890..6d3730a60eb2 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.12.2.8 1995/11/04 15:08:21 jkh Exp $ + * $Id: misc.c,v 1.13 1995/12/07 10:34:07 peter Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -301,9 +301,9 @@ Mount(char *mountp, void *dev) } if (isDebug()) msgDebug("mount %s %s\n", device, mountpoint); - bzero(&ufsargs, sizeof(ufsargs)); + ufsargs.fspec = device; - if (mount(MOUNT_UFS, mountpoint, 0, (caddr_t)&ufsargs) == -1) { + if (mount(MOUNT_UFS, mountpoint, MNT_ASYNC, (caddr_t)&ufsargs) == -1) { dialog_clear(); msgConfirm("Error mounting %s on %s : %s", device, mountpoint, strerror(errno)); return RET_FAIL;