mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 21:18:59 +00:00
Mount the disks we install on async, we might as well.
Saves a lot of time.
This commit is contained in:
parent
337def8963
commit
e717f3d8e9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13428
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user