Mount the disks we install on async, we might as well.

Saves a lot of time.
This commit is contained in:
Poul-Henning Kamp 1996-01-14 21:48:57 +00:00
parent 337def8963
commit e717f3d8e9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13428
3 changed files with 9 additions and 9 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;