Deleted Added
full compact
vfs_mount.c (69793) vfs_mount.c (72200)
1/*-
2 * Copyright (c) 1999 Michael Smith
3 * All rights reserved.
4 * Copyright (c) 1999 Poul-Henning Kamp
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1999 Michael Smith
3 * All rights reserved.
4 * Copyright (c) 1999 Poul-Henning Kamp
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/kern/vfs_mount.c 69793 2000-12-09 09:35:55Z obrien $
28 * $FreeBSD: head/sys/kern/vfs_mount.c 72200 2001-02-09 06:11:45Z bmilekic $
29 */
30
31/*
32 * Locate and mount the root filesystem.
33 *
34 * The root filesystem is detailed in the kernel environment variable
35 * vfs.root.mountfrom, which is expected to be in the general format
36 *

--- 188 unchanged lines hidden (view full) ---

225 if (mp != NULL) {
226 vfs_unbusy(mp, curproc);
227 free(mp, M_MOUNT);
228 }
229 printf("Root mount failed: %d\n", error);
230 } else {
231
232 /* register with list of mounted filesystems */
29 */
30
31/*
32 * Locate and mount the root filesystem.
33 *
34 * The root filesystem is detailed in the kernel environment variable
35 * vfs.root.mountfrom, which is expected to be in the general format
36 *

--- 188 unchanged lines hidden (view full) ---

225 if (mp != NULL) {
226 vfs_unbusy(mp, curproc);
227 free(mp, M_MOUNT);
228 }
229 printf("Root mount failed: %d\n", error);
230 } else {
231
232 /* register with list of mounted filesystems */
233 mtx_enter(&mountlist_mtx, MTX_DEF);
233 mtx_lock(&mountlist_mtx);
234 TAILQ_INSERT_HEAD(&mountlist, mp, mnt_list);
234 TAILQ_INSERT_HEAD(&mountlist, mp, mnt_list);
235 mtx_exit(&mountlist_mtx, MTX_DEF);
235 mtx_unlock(&mountlist_mtx);
236
237 /* sanity check system clock against root filesystem timestamp */
238 inittodr(mp->mnt_time);
239 vfs_unbusy(mp, curproc);
240 }
241 return(error);
242}
243

--- 125 unchanged lines hidden ---
236
237 /* sanity check system clock against root filesystem timestamp */
238 inittodr(mp->mnt_time);
239 vfs_unbusy(mp, curproc);
240 }
241 return(error);
242}
243

--- 125 unchanged lines hidden ---