mdconfig2 (f5dfe75da5ba2937f8766792f625f32fc3ef4757) mdconfig2 (b11974c250671368e1eb869ca8ce2ed70622917f)
1#!/bin/sh
2#
3# Copyright (c) 2006 The FreeBSD Project
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

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

118 err 3 "${_file} doesn't exist"
119 continue
120 fi
121 # First pass: create md(4) vnode devices from files stored on
122 # non-root partition. Swap and malloc md(4) devices have already
123 # been created.
124 if [ "${_type}" = "vnode" -a "${_fs}" != "/" ]; then
125 if [ "${_file}" != "${_file%.uzip}" ]; then
1#!/bin/sh
2#
3# Copyright (c) 2006 The FreeBSD Project
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

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

118 err 3 "${_file} doesn't exist"
119 continue
120 fi
121 # First pass: create md(4) vnode devices from files stored on
122 # non-root partition. Swap and malloc md(4) devices have already
123 # been created.
124 if [ "${_type}" = "vnode" -a "${_fs}" != "/" ]; then
125 if [ "${_file}" != "${_file%.uzip}" ]; then
126 load_kld geom_uzip || return 3
126 load_kld -m g_uzip geom_uzip || return 3
127 fi
128 if is_readonly ${_fs}; then
129 warn "${_fs} is mounted read-only, skipping ${_md}."
130 continue
131 fi
132 if mdconfig -l -u ${_md} >/dev/null 2>&1; then
133 err 3 "${_md} already exists"
134 fi

--- 93 unchanged lines hidden ---
127 fi
128 if is_readonly ${_fs}; then
129 warn "${_fs} is mounted read-only, skipping ${_md}."
130 continue
131 fi
132 if mdconfig -l -u ${_md} >/dev/null 2>&1; then
133 err 3 "${_md} already exists"
134 fi

--- 93 unchanged lines hidden ---